; Otd.inf
; Optical Touch device driver.
; Copyright(C) 2012.

[Version]
signature = "$WINDOWS NT$"
Class = HIDClass
ClassGuid = {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider = %Provider%
DriverVer = 11/09/2015, 1.7.5769.30570
CatalogFile = Otd.cat

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames]
99 = windows cd

[SourceDisksFiles]
Otd.sys = 99
hidkmdf.sys = 99
wdfcoinstaller01009.dll = 99

[DestinationDirs]
OtdInst.NT.Copy = 12               ;LDID_DRIVERS
OtdInst.Win7.NT.Copy = 12          ;LDID_DRIVERS
OtdInst.NT.CoInstallers.Copy = 11  ;LDID_SYS

; Drivers
;----------------------------------------------------------
[Manufacturer]
%Manufacture% = Otd, NTAMD64, NTAMD64.6.0

[Otd.NTAMD64]
%Otd.DeviceDesc% = OtdInst, USB\Vid_2621&Pid_2301
%Otd.DeviceDesc% = OtdInst, USB\Vid_2621&Pid_2201
%Otd.DeviceDesc% = OtdInst, USB\Vid_2621&Pid_3401
%Otd.DeviceDesc% = OtdInst, USB\Vid_2621&Pid_4501
%Otd.DeviceDesc% = OtdInst, USB\Vid_26CF&Pid_1941
; %OtdCollection.DeviceDesc% = OtdCollectionInst, HID_DEVICE_UP:FF00_U:0001

[Otd.NTAMD64.6.0]
%Otd.DeviceDesc% = OtdInst.Win7, USB\Vid_2621&Pid_2301
%Otd.DeviceDesc% = OtdInst.Win7, USB\Vid_2621&Pid_2201
%Otd.DeviceDesc% = OtdInst.Win7, USB\Vid_2621&Pid_3401
%Otd.DeviceDesc% = OtdInst.Win7, USB\Vid_2621&Pid_4501
%Otd.DeviceDesc% = OtdInst.Win7, USB\Vid_26CF&Pid_1941
; %OtdCollection.DeviceDesc% = OtdCollectionInst, HID_DEVICE_UP:FF00_U:0001

; Collection
;----------------------------------------------------------
[OtdCollectionInst.NT]
CopyFiles = OtdCollectionInst.NT.Copy
AddReg = OtdCollectionInst.NT.AddReg

[OtdCollectionInst.NT.Copy]
;

[OtdCollectionInst.NT.AddReg]
;

[OtdCollectionInst.NT.Services]
AddService = , 0x00000002

; Drivers NT
;----------------------------------------------------------
[OtdInst.NT]
CopyFiles = OtdInst.NT.Copy

[OtdInst.NT.Copy]
Otd.sys
hidkmdf.sys

[OtdInst.NT.HW]
AddReg = KmdfInst.NT.HW.AddReg

[KmdfInst.NT.HW.AddReg]
HKR, , "UpperFilters", 0x00010000, hidkmdf

[OtdInst.NT.Services]
AddService = ODT, 0x00000002, TouchServiceInst
AddService = hidkmdf, , hidkmdf_Service_Inst

[hidkmdf_Service_Inst]
DisplayName = %hidkmdf.ServiceDesc%
ServiceType = 1         ; SERVICE_KERNEL_DRIVER
StartType = 3           ; SERVICE_DEMAND_START
ErrorControl = 1        ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\hidkmdf.sys
LoadOrderGroup = PNP Filter

; Drivers 7
;----------------------------------------------------------
[OtdInst.Win7.NT]
CopyFiles = OtdInst.Win7.NT.Copy

[OtdInst.Win7.NT.Copy]
Otd.sys

[OtdInst.Win7.NT.HW]
AddReg = KmdfInst.Win7.NT.HW.AddReg

[KmdfInst.Win7.NT.HW.AddReg]
HKR, , "UpperFilters", 0x00010000, mshidkmdf

[OtdInst.Win7.NT.Services]
AddService = ODT, 0x00000002, TouchServiceInst

;----------------------------------------------------------
[TouchServiceInst]
DisplayName = %Otd.ServiceDesc%
ServiceType = 1             ; SERVICE_KERNEL_DRIVER
StartType = 3               ; SERVICE_DEMAND_START
ErrorControl = 1            ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\Otd.sys
LoadOrderGroup = Extended Base

[OtdInst.NT.CoInstallers]
CopyFiles = OtdInst.NT.CoInstallers.Copy
AddReg = OtdInst.NT.CoInstallers.AddReg

[OtdInst.NT.CoInstallers.Copy]
wdfcoinstaller01009.dll

[OtdInst.NT.CoInstallers.AddReg]
HKR, , CoInstallers32, 0x00010000, "wdfcoinstaller01009.dll, WdfCoInstaller"

[OtdInst.NT.Wdf]
KmdfService = ODT, OtdInst.NT.Wdf.wdfsect

[OtdInst.NT.Wdf.wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
Manufacture = "Optical Touch Device Team"
Provider = "Optical Touch Device Team"
hidkmdf.ServiceDesc = "HID Class Shim for KMDF"
Otd.DeviceDesc = "Optical Touch Device"
Otd.ServiceDesc = "Optical Touch Device Driver"
OtdCollection.DeviceDesc = "HID-compliant device"
