;
; VirtualHID.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
DriverVer=12/24/2019,1.0.0.2
CatalogFile=VirtualHID.cat

[SourceDisksFiles]
VirtualHID.sys = 99

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

[DestinationDirs]
CopyFunctionDriver = 12      

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

[Vendor.NTAMD64]
%VirtualHID%    = VirtualHID.Inst.Win7, TurtleBeach\VirtualHID


; For Win7 and later so that we can use inbox HID-KMDF mapper
[Vendor.NTamd64.6.1]
%VirtualHID% = VirtualHID.Inst.Win7, TurtleBeach\VirtualHID


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

[VirtualHID.Inst.Win7.NT.HW]
AddReg = VirtualHID_Win7_Parameters.AddReg 

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

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

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

[CopyFunctionDriver]
VirtualHID.sys

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


[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "TurtleBeach" 
VirtualHID     = "Virtual HID" 
DISK_NAME      = "VirtualHID Device Install Disk"

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

