;/*++
;Module Name:
;
;    TodeskVhid.inf
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Provider=%ProviderString%
DriverVer = 05/30/2023,8.55.56.862
CatalogFile=TodeskVhid.cat

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

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

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

[TodeskVhid.NT]
CopyFiles=UMDriverCopy

[TodeskVhid.NT.hw]
AddReg=TodeskVhid_AddReg

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

[TodeskVhid_AddReg]
HKR,,"LowerFilters",0x00010008,"WUDFRd" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[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

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

[TodeskVhid_Install]
UmdfLibraryVersion=2.15.0
ServiceBinary="%12%\UMDF\TodeskVhid.dll"

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

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

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
TodeskVhid.dll=1

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

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

[Strings]
ProviderString     ="Hainan YouQu Info Tech"
ManufacturerString ="Hainan YouQu Info Tech"
Disk_Description   ="Todesk VHID Installation Disk"
DeviceDesc         ="Todesk VHID Device"
WudfRdDisplayName  ="Windows Driver Foundation - User-mode Driver Framework Reflector"
