[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
DriverVer=07/07/2022,6.1.7600.16385
CatalogFile=orayvhid.cat

[SourceDisksFiles]
orayvhid.sys = 99
orayvhidkmdf.sys = 99

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

[DestinationDirs]
CopyFunctionDriver = 12      

[Manufacturer]
%VENDOR%=Vendor, NTAMD64, NTAMD64.6.1

; For XP and later
[Vendor.NTAMD64]
%orayvhid%    = orayvhid.Inst, oray\OrayVHID

; For Win7 and later so that we can use inbox HID-KMDF mapper
[Vendor.NTAMD64.6.1]
%orayvhid%    = orayvhid.Inst.Win7, oray\OrayVHID

;===============================================================
;   orayvhid for XP thru Vista
;===============================================================
[orayvhid.Inst.NT]
CopyFiles = CopyFunctionDriver

[orayvhid.Inst.NT.HW]
AddReg = orayvhid_Parameters.AddReg 

;
; orayvhid is the function driver and hidkmdf is the WDM HID minidriver
;
[orayvhid.Inst.NT.Services]
AddService = orayvhidkmdf,,orayvhidkmdf_Service_Inst,
AddService = orayvhid,0x00000002, orayvhid_Service_Inst

[CopyFunctionDriver]
orayvhidkmdf.sys
orayvhid.sys


[orayvhid_Parameters.AddReg]
HKR,,"UpperFilters",0x00010000,"orayvhidkmdf"

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


;===============================================================
;   orayvhid for Win7
;   Instead of using orayvhidkmdf.sys as a filter, use the inbox 
;   mshidkmdf.sys as a mapper filter
;===============================================================
[orayvhid.Inst.Win7.NT]
; Just copy the driver. No neeed to copy other system binaries.
CopyFiles = CopyFunctionDriver

[orayvhid.Inst.Win7.NT.HW]
AddReg = orayvhid_Win7_Parameters.AddReg 

;
; orayvhid is the function driver and mshidkmdf is the WDM HID minidriver
;
[orayvhid.Inst.Win7.NT.Services]
AddService = orayvhid,0x00000002, orayvhid_Service_Inst

[orayvhid_Win7_Parameters.AddReg]
HKR,,"UpperFilters",0x00010000,"mshidkmdf"

;===============================================================
;   Sections common to all OS versions
;===============================================================

 

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


[orayvhid.Inst.NT.Wdf]
KmdfService = orayvhid, orayvhid_wdfsect
[orayvhid_wdfsect]
KmdfLibraryVersion = 1.9

[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "Shanghai Best Oray Information Technology Co., Ltd." 
orayvhid       = "Oray VHID" 
DISK_NAME      = "OrayVHID Device Install Disk"
orayvhidkmdf.SVCDESC= "OrayVHID Filter Driver Service for HID-KMDF Interface layer"

;  *******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

