;/*++
;
;Copyright (c) N-Trig.  All rights reserved.
;
;Module Name:
;
;    NtrigBoot.INF	-	BootLoader
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=NTRIG_DIGITIZERS_BOOT
ClassGuid={AE5B9C2A-0B35-4771-A38F-01C9E2D83191}
Provider=%N-Trig%
DriverVer=07/20/2010,4.2.1.4
CatalogFile.NTAMD64  = NtrigDigiB64.cat

[ControlFlags]
ExcludeFromSelect = *

; ================= Source/Destination Media Section =====================

[DestinationDirs]
CoInstallers_CopyFiles=11
USB_Install.Copy=12

[SourceDisksNames]
1=%ntrigdigidisk%

[SourceDisksFiles]
NtrigDigitizerUSBLowerFilter.sys=1
WinUSBCoInstaller2.dll=1

; ================== Class section ==================

[ClassInstall32]
Addreg=MyDeviceClassReg

[ClassInstall32.Services]

[MyDeviceClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-1

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%StdMfg%=Standard,NTAMD64.6.1.1

[Standard.NTAMD64.6.1.1]
%NtrigComposite%=          HID_Composite,    USB\VID_1B96&PID_0002&REV_0001
%NtrigUSBHIDInterface1%=   HID_SelSus_Ins,   USB\VID_1B96&PID_0002&REV_0001&mi_00
%NtrigHIDCompliant0%=      HID_SelSus_Raw,   HID\VID_1B96&PID_0002&REV_0001&mi_00
%DeviceDesc%  =            USB_Install,      USB\VID_1B96&PID_0002&REV_0001&MI_02

; =================== Installation ===================

[HID_Composite.NT]
Include=usb.inf
Needs = Composite.Dev.NT

[HID_Composite.NT.Services]
Include=usb.inf
Needs = Composite.Dev.NT.Services

[HID_Composite.NT.HW]
AddReg = HID_Composite.AddReg.NT.HW

[HID_Composite.AddReg.NT.HW]

[HID_SelSus_Ins.NT]
Include=input.inf
Needs = HID_SelSus_Inst.NT

[HID_SelSus_Ins.NT.HW]
AddReg = HID_SelSus_Ins.AddReg.NT.HW

[HID_SelSus_Ins.NT.Services]
Include=input.inf
Needs = HID_SelSus_Inst.NT.Services

[HID_SelSus_Ins.AddReg.NT.HW]
HKR,,"SelectiveSuspendOn",0x00010001,1
HKR,,"SelectiveSuspendEnabled",0x00010001,1

[HID_SelSus_Raw.NT]
AddReg = HID_SelSus_Raw_AddReg.NT.HW

[HID_SelSus_Raw.NT.HW]
AddReg = HID_SelSus_Raw_AddReg.NT.HW

[HID_SelSus_Raw_AddReg.NT.HW]

[USB_Install.NT]
Include=winusb.inf
Needs=WINUSB.NT
CopyFiles=USB_Install.Copy

[USB_Install.Copy]
NtrigDigitizerUSBLowerFilter.sys

[USB_Install.NT.Services]
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall
AddService = NtrigDigitizerUSBLowerFilter,, filter_Service_Inst 

[filter_Service_Inst]
DisplayName    = %filter.SvcDesc%                            
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\NtrigDigitizerUSBLowerFilter.sys                            

[WinUSB_ServiceInstall]
DisplayName     = %WinUSB_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

[USB_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
KmdfService = NtrigDigitizerUSBLowerFilter,  NtrigDigitizerUSBLowerFilter_wdfsect

[WinUSB_Install]
KmdfLibraryVersion=1.5

[NtrigDigitizerUSBLowerFilter_wdfsect]
KmdfLibraryVersion = 1.5

[USB_Install.NT.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,"LowerFilters",0x00010000,"NtrigDigitizerUSBLowerFilter"
HKR,,DeviceInterfaceGUIDs,0x10000,"{b35924d6-3e16-4a9e-9782-5524a4b79bac}"
HKR,,"DeviceIdleEnabled",0x00010001,1
HKR,,"DefaultIdleState",0x00010001,1
HKR,,"DefaultIdleTimeout",0x00010001,5000
HKR,,"SystemWakeEnabled",0x00010001,0
HKR,WDF,"IdleInWorkingState",0x00010001,0x1

HKR,,"UserSetDeviceIdleEnabled",0x00010001,0
HKR,WDF,"WakeFromSleepState",0x00010001,0x0

[USB_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000, "WinUSBCoInstaller2.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll

; =================== Strings ===================

[Strings]
ntrigdigidisk="ntrigdigidisk"
N-Trig= "N-Trig"
StdMfg = "N-trig Innovative Technologies"

NtrigHIDCompliant0=     "N-trig DuoSense Control HID device"
NtrigComposite=         "N-trig DuoSense Composite Root interface"
NtrigUSBHIDInterface1=  "N-trig DuoSense Control HID Interface"
DeviceDesc=             "N-trig DuoSense Secondary Interface"

WinUSB_SvcDesc="N-Trig DuoSense Control Interface"
filter.SvcDesc = "N-Trig DuoSense Control Interface Filter Driver"
ClassName="N-trig DuoSense(R) Digitizers Boot"
