[Version]
Signature="$Windows NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider = Risintech Inc.
DriverVer = 07/04/2024,1.0.1.4
CatalogFile=serhidtp.cat
PnpLockDown=1

[SourceDisksFiles]
serhidtp.sys = 99
ritphid.sys = 99
WdfCoInstaller01009.dll = 99

[SourceDisksNames]
99 = %DISK_NAME%,,,""

[DestinationDirs]
CopyFunctionDriver = 12      
CopyFilterDriver = 12      
serhidtp.Inst_CoInstaller_CopyFiles = 11

[Manufacturer]
%VENDOR%=Vendor, NTamd64

; For winxp and later
[Vendor.NTamd64]
%serhidtp%    = serhidtp.Inst.NT, root\serhidtp

[serhidtp.Inst.NT]
CopyFiles = CopyFunctionDriver, CopyFilterDriver

[serhidtp.Inst.NT.HW]
AddReg = serhidtp_Parameters.AddReg 

;
; ritphid is the function driver and serhidtp is the lower filter
;
[serhidtp.Inst.NT.Services]
AddService = ritphid,,ritphid_Service_Inst,
AddService = serhidtp,0x00000002, serhidtp_Service_Inst

[CopyFilterDriver]
ritphid.sys

[serhidtp_Parameters.AddReg]
HKR,,"UpperFilters",0x00010000,"ritphid"

[ritphid_Service_Inst]
DisplayName    = %ritphid.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\ritphid.sys
LoadOrderGroup = PNP Filter

;===============================================================
;   Sections common to all OS versions
;===============================================================
[CopyFunctionDriver]
serhidtp.sys

[serhidtp_Service_Inst]
DisplayName    = %serhidtp%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\serhidtp.sys 

;================================================================
;--- WDF Coinstaller installation ------
;
;[DestinationDirs]
;serhidtp.Inst_CoInstaller_CopyFiles = 11

[serhidtp.Inst.NT.CoInstallers]
AddReg=serhidtp.Inst_CoInstaller_AddReg
CopyFiles=serhidtp.Inst_CoInstaller_CopyFiles

[serhidtp.Inst_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[serhidtp.Inst_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll,,,0x00000010    ;COPYFLG_NO_OVERWRITE (for win7)

;[SourceDisksFiles]
;WdfCoInstaller01009.dll=99 ; make sure the number matches with SourceDisksNames

[serhidtp.Inst.NT.Wdf]
KmdfService = serhidtp, serhidtp_wdfsect

[serhidtp_wdfsect]
KmdfLibraryVersion = 1.09

[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "Risintech Inc." 
serhidtp       = "Touchpack Serial HID Touch Device" 
DISK_NAME      = "Touchpack Serial HID Touch Install Disk"
ritphid.SVCDESC= "Touchpack Serial HID Touch Interface"

;  *******Non Localizable Strings******* 

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000

