;
; NtrigDigitizerUSB.inf - Install the N-trig bulk driver
;

[Version]
Signature="$Windows NT$"
Class=HIDClass
ClassGuid={40E97A09-035B-4418-8D9B-06FD8FF357C7}
Provider=%MSFTUMDF%
DriverVer=07/20/2008,1.26.0.0
CatalogFile=wudf.cat

[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86

[Microsoft.NTx86]
%OsrUsbDeviceName%=OsrUsb_Install, USB\Vid_1b96&Pid_0001&mi_02

[ClassInstall32]
AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]
HKR,,,,%ClassName%
HKR,,Icon,,"-24"

[SourceDisksFiles]
NtrigDigitizerUSBLowerFilter.sys  = 1
NtrigDigitizerUSB.dll=1
WudfUpdate_01007.dll=1
WdfCoInstaller01007.dll=1
WinUsbCoinstaller.dll = 1

[SourceDisksNames]
1 = %MediaDescription%

; =================== UMDF OsrUsb Device ==================================

[OsrUsb_Install.NT]
CopyFiles=UMDriverCopy,KMDriverCopy
Include=WINUSB.INF                      ; Import sections from WINUSB.INF
Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF

[OsrUsb_Install.NT.hw]
AddReg=OsrUsb_Device_AddReg

[OsrUsb_Install.NT.Services]
AddService = NtrigDigitizerUSBLowerFilter,, NtrigDigitizerUSBLowerFilter_Service_Inst 
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.

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


[OsrUsb_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install, NtrigDigitizerUSBLowerFilter_Service_Inst
UmdfDispatcher=WinUsb
UmdfService=NtrigDigitizerUSB, NtrigDigitizerUSB_Install
UmdfServiceOrder=NtrigDigitizerUSB

[NtrigDigitizerUSBLowerFilter_wdfsect]
KmdfLibraryVersion = 1.0

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

[WinUsb_Install]
KmdfLibraryVersion = 1.0

[NtrigDigitizerUSB_Install]
UmdfLibraryVersion=1.5.0
DriverCLSID="{DACA6A6E-CB6F-4851-BAFE-8F75013F66C8}"
ServiceBinary = "%12%\UMDF\NtrigDigitizerUSB.dll"

[OsrUsb_Device_AddReg]
HKR,,"LowerFilters",0x00010008,"WinUsb";,"NtrigDigitizerUSBLowerFilter" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"LowerFilters",0x00010008,"NtrigDigitizerUSBLowerFilter" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"DeviceIdleEnabled",0x00010001,1
HKR,,"DefaultIdleState",0x00010001,1
HKR,,"DefaultIdleTimeout",0x00010001,5000
HKR,,"UserSetDeviceIdleEnabled",0x00010001,1
HKR,,"SystemWakeEnabled",0x00010001,1
HKR,,"SelectiveSuspendEnabled",0x00010001,0x1
HKR,WDF,"IdleInWorkingState",0x00010001,0x1
HKR,WDF,"WakeFromSleepState",0x00010001,0x0
HKR,WUDF,"UpperDriverOK",0x00010001,1

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base


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

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WudfUpdate_01007.dll", "WdfCoInstaller01007.dll,WdfCoInstaller", "WinUsbCoInstaller.dll"

[CoInstallers_CopyFiles]
WudfUpdate_01007.dll
WdfCoInstaller01007.dll
WinUsbCoinstaller.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
KMDriverCopy=12      ; copy to drivers
CoInstallers_CopyFiles=11

[UMDriverCopy]
NtrigDigitizerUSB.dll

[KMDriverCopy]
NtrigDigitizerUSBLowerFilter.sys

; =================== Generic ==================================

[Strings]
MSFTUMDF="N-trig Innovative Technologies"
MediaDescription="N-trig HID Tablet Digitizer - USB Driver Installation Media"
ClassName="Digitizers"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
OsrUsbDeviceName="N-Trig HID Tablet Digitizer" 
WinUsb_SvcDesc="WinUSB Driver"
NtrigDigitizerUSBLowerFilter.SvcDesc = "N-trig HID Tablet Digitizer KMDF Filter Driver"

