;/*++
;
;Copyright (c) N-Trig.  All rights reserved.
;
;Module Name:
;
;    NtrigDigi.INF	-	Fujitsu 10.1”    -    32 bit
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=NTRIG_DIGITIZERS
ClassGuid={DAA01345-ED44-42AD-9112-7977051F6077}
Provider=%N-Trig%
DriverVer=12/19/2011,4.8.2101.28
CatalogFile.NTx86  = NtrigDigi86.cat

[ControlFlags]
ExcludeFromSelect = *


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

[DestinationDirs]
HID_Device.NT.Copy=12,UMDF
CoInstallers_CopyFiles=11
;USB_Install.Copy=12
USB_Install_CoInstallers_CopyFiles=11
ClassInstall32_CopyFiles=11
DigitizerClass.Copy=12
NtrigCoIns.copy=11

[SourceDisksNames]
1=%ntrigdigidisk%

[SourceDisksFiles]
NtrigDigi.dll = 1
SensorInterfaceTrackCoreDLL.dll = 1
;NtrigDigitizerUSBLowerFilter.sys=1
WinUSBCoInstaller2.dll=1
NtrigInstaller4.dll=1
;NtrHost.cab=1
;DigitizerClass.sys=1
NtrigInstaller4.cab=1

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

[ClassInstall32]
CopyFiles=ClassInstall32_CopyFiles
CopyFiles=NtrigCoIns.copy
Addreg=MyDeviceClassReg
CopyFiles=DigitizerClass.Copy

[ClassInstall32.Services]
;AddService=DigitizerClass,, DigitizerClass_Service_Inst 

[MyDeviceClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-1
;HKR,,"UpperFilters",0x00010000,"DigitizerClass"
HKR,,Installer32,,"NtrigInstaller4.dll,ClassInstaller"
HKR,,ClassDesc,,%ClassName%

;[DigitizerClass_Service_Inst]
;DisplayName    = %DigitizerClass_Service_Inst%                            
;ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
;StartType      = 3                  ; SERVICE_DEMAND_START
;ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
;ServiceBinary  = %12%\DigitizerClass.sys

[ClassInstall32_CopyFiles]
NtrigInstaller4.dll,,,0x00000010
NtrigInstaller4.cab,,,0x00000010

[DigitizerClass.Copy]
;DigitizerClass.sys

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

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

[Standard.NTx86.6.1.1]
%NtrigComposite%=          HID_Composite,    USB\VID_1B96&PID_0008&REV_1101

%NtrigUSBHIDInterface1%=   HID_SelSus_Ins,   USB\VID_1B96&PID_0008&REV_1101&mi_00
%NtrigHIDCompliant0%=      HID_SelSus_Raw,   HID\VID_1B96&PID_0008&REV_1101&mi_00

%NtrigUSBHIDInterface2%=   HID_SelSus_Ins,   USB\VID_1B96&PID_0008&REV_1101&mi_01
%NtrigHIDCompliant1%=      HID_SelSus_Raw,   HID\VID_1B96&PID_0008&REV_1101&mi_01&col01
%NtrigDevice%=             HID_Device,       HID\VID_1B96&PID_0008&REV_1101&MI_01&Col02
%NtrigHIDCompliant3%=      HID_SelSus_Raw,   HID\VID_1B96&PID_0008&REV_1101&mi_01&col03

%DeviceDesc%  =            USB_Install,      USB\VID_1B96&PID_0008&REV_1101&MI_02

; =================== CoInstallHost ===================
[NtrigCoIns.copy]
;NtrHost.cab
NtrigInstaller4.cab,,,0x00000010

[NtrigCoIns.reg]
;HKR,,"NtrigIns",,"NtrHost"
HKR,,"NtrigIns",,"NtrigInstaller4"

; ===================CoSafeModeInstall ===================
[NtrigSafeM1.reg]
HKR,,"SafeC",,%sClassGuid%
[NtrigSafeM2.reg]
HKR,,"SafeD",,%ClassName%

[NtrigPowerUi]
HKR,,"NoPowerUI",0x00010001,1

; =================== CoWpt ===================
[NtrigWpt.reg]
;HKR,,"NtrigWpt",0x00010001,1

; =================== CoUpdater ===================
[NtrigCoUpdater.reg]
HKR,,"NtrigIns",,"NtrigInstaller4"

;=====================================================================
[HID_Composite.NT]
Include=usb.inf
Needs = Composite.Dev.NT
AddReg = NtrigCoIns.reg
AddReg = NtrigSafeM1.reg
AddReg = NtrigSafeM2.reg
CopyFiles=NtrigCoIns.copy
CopyFiles=ClassInstall32_CopyFiles

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

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

[HID_Composite.AddReg.NT.HW]

;=====================================================================
[HID_SelSus_Ins.NT]
Include=input.inf
Needs = HID_Inst.NT
CopyFiles=ClassInstall32_CopyFiles
AddReg = NtrigCoUpdater.reg
AddReg = NtrigSafeM1.reg
AddReg = NtrigSafeM2.reg

[HID_SelSus_Ins.NT.HW]
Include=input.inf
Needs = HID_Inst.NT.HW
AddReg = NtrigPowerUi

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

;=====================================================================
[HID_SelSus_Raw.NT]
AddReg = HID_SelSus_Raw_AddReg.NT
CopyFiles=ClassInstall32_CopyFiles
AddReg = NtrigWpt.reg
AddReg = NtrigCoUpdater.reg
AddReg = NtrigSafeM1.reg
AddReg = NtrigSafeM2.reg

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

[HID_SelSus_Raw_AddReg.NT]

[HID_SelSus_Raw_AddReg.NT.HW]

;=====================================================================
[USB_Install.NT]
Include=winusb.inf
Needs=WINUSB.NT
;CopyFiles=USB_Install.Copy
CopyFiles=ClassInstall32_CopyFiles
AddReg = NtrigCoUpdater.reg
AddReg = NtrigSafeM1.reg
AddReg = NtrigSafeM2.reg

;[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
;AddReg = NtrigPowerUi

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

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

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

[USB_Install_CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll

;=====================================================================
[HID_Device.NT]
AddReg=HID_Device_add_reg
CopyFiles=HID_Device.NT.Copy
AddReg = NtrigWpt.reg
CopyFiles=ClassInstall32_CopyFiles
AddReg = NtrigCoUpdater.reg
AddReg = NtrigSafeM1.reg
AddReg = NtrigSafeM2.reg

[HID_Device.NT.HW]
AddReg=HID_Device_add_reg.HW
AddReg = NtrigPowerUi

[HID_Device_add_reg]

[HID_Device_add_reg.HW]

[HID_Device.NT.CoInstallers]
AddReg=HID_Device_CoInstaller_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_CopyFiles]

[HID_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WUDFCoInstaller.dll"

[HID_Device.NT.Wdf]
UmdfImpersonationLevel = Impersonation
UmdfService = NtrigDigi, HID_Device_wdfsect
UmdfServiceOrder = NtrigDigi
UmdfMethodNeitherAction = Copy
UmdfKernelModeClientPolicy = AllowKernelModeClients

[HID_Device_wdfsect]
UmdfLibraryVersion=1.9.0
DriverCLSID="{a732f3b7-b7d2-461c-82b3-12d8f56287bb}"
ServiceBinary=%12%\UMDF\NtrigDigi.dll

[HID_Device.NT.Services]
AddService = WUDFRd, 0x000001fa, WUDFRD_Service_Inst

[WUDFRD_Service_Inst]
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\WUDFRd.sys

[HID_Device.NT.Copy]
NtrigDigi.dll
SensorInterfaceTrackCoreDLL.dll

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

[Strings]
ntrigdigidisk="ntrigdigidisk"
N-Trig= "N-Trig"
StdMfg = "N-trig Ltd."

NtrigHIDCompliant0=      "N-trig DuoSense Control HID device"
NtrigHIDCompliant1=      "N-trig DuoSense Pen HID device"
NtrigHIDCompliant3=      "N-trig DuoSense Touch HID device"
NtrigDevice =            "N-trig DuoSense MultiTouch HID device"

NtrigComposite=         "N-trig DuoSense Composite Root interface"
NtrigUSBHIDInterface1=  "N-trig DuoSense Control HID Interface"
NtrigUSBHIDInterface2=  "N-trig DuoSense Touch 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"
sClassGuid="{DAA01345-ED44-42AD-9112-7977051F6077}"
;DigiTizerClass_Service_Inst="DigiTizerClass_Service"
