;/*++
;
;
;
;Module Name:
;
;    VhidUm.inf
;
;Abstract:
;    INF file for installing Virtual HID driver
;
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=Virtual Hid
ClassGuid={ce10200c-3d93-4995-8b32-ba53ec716f73}
Provider=%ProviderString%
DriverVer = 06/07/2024,1.0.24.11
CatalogFile=VhidUm.cat
PnpLockdown=1

[DestinationDirs]
UMDriverCopy=13

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
VhidUm.dll=1

; ================= Class section =====================

[ClassInstall32]
Addreg=VHidClassReg

[VHidClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-24

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

[Manufacturer]
%ManufacturerString%=Microsoft, NTamd64.10.0...22000

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

[VhidUm.NT]
CopyFiles=UMDriverCopy
Include=MsHidUmdf.inf
Needs=MsHidUmdf.NT
Include=WUDFRD.inf
Needs=WUDFRD_LowerFilter.NT

[VhidUm.NT.hw]
Include=MsHidUmdf.inf
AddReg=VhidUm_AddReg
Needs=MsHidUmdf.NT.hw
Include=WUDFRD.inf
Needs=WUDFRD_LowerFilter.NT.hw

[VhidUm.NT.Services]
Include=MsHidUmdf.inf
Needs=MsHidUmdf.NT.Services
Include=WUDFRD.inf
Needs=WUDFRD_LowerFilter.NT.Services

[VhidUm.NT.Filters]
Include=WUDFRD.inf
Needs=WUDFRD_LowerFilter.NT.Filters

[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
HKLM, SYSTEM\CurrentControlSet\Control\DeviceOverrides\IndirectDSP#Vhid,"VhidVersion",,%VhidVer%

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

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

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

[UMDriverCopy]
VhidUm.dll  ; COPYFLG_IN_USE_RENAME

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