;/*++
;
;
;
;Module Name:
;
;    VhidUm.inf
;
;Abstract:
;    INF file for installing Virtual HID driver
;
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%ProviderString%
DriverVer = 08/19/2023,13.0.6.121
CatalogFile=VhidUm.cat

; ================= Device section =====================

[Manufacturer]
%ManufacturerString%=Microsoft, NTamd64.6.3

[Microsoft.NTamd64.6.3]
%DeviceDesc%=VhidUm, root\VhidUm

[VhidUm.NT]
CopyFiles=UMDriverCopy

[VhidUm.NT.hw]
AddReg=VhidUm_AddReg

[VhidUm.NT.Services]
AddService=WUDFRd,0x000001f8,WUDFRD_ServiceInstall
AddService=mshidumdf, 0x000001fa, mshidumdf.AddService ;flag 0x2 sets this as the service for the device

[VhidUm_AddReg]
HKR,,"LowerFilters",0x00010008,"WUDFRd" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"ReadFromRegistry",0x00010001,1
HKR,,"MyReportDescriptor",0x00000001,06,00,ff,09,01,a1,01,85,01,09,01,15,00,26,ff,00,75,08,96,09,00,b1,00,09,01,75,08,96,01,00,81,00,09,01,75,08,96,5c,00,91,00,c0

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

[WUDFRD_ServiceInstall]
DisplayName    = %WudfRdDisplayName%
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\WUDFRd.sys

[VhidUm.NT.Wdf]
UmdfService="VhidUm", VhidUm_Install
UmdfServiceOrder=VhidUm
UmdfKernelModeClientPolicy=AllowKernelModeClients
UmdfFileObjectPolicy=AllowNullAndUnknownFileObjects
UmdfMethodNeitherAction=Copy
UmdfFsContextUsePolicy=CanUseFsContext2

[VhidUm_Install]
UmdfLibraryVersion=2.15.0
ServiceBinary="%12%\UMDF\VhidUm.dll"

; ================= copy files =====================

[UMDriverCopy]
VhidUm.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
VhidUm.dll=1

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf

;---------------------------------------------------------------;

[Strings]
ProviderString     ="HW"
ManufacturerString ="HW"
Disk_Description   ="Virtual HID driver Installation Disk"
DeviceDesc         ="Virtual HID Device"
WudfRdDisplayName  ="Windows Driver Foundation - User-mode Driver Framework Reflector"
