;/*++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; Module Name: ; hidusbfx2.inf ; ; Important: ; This INF depends on features which are available beginning in Windows 11 (build 22000) ; ;--*/ [Version] Signature = "$WINDOWS NT$" Class = HIDClass ClassGuid = {745a17a0-74d3-11d0-b6fe-00a0c90f57da} Provider = %ProviderName% DriverVer = 01/10/2007,1.0.0.0 CatalogFile = kmdfsamples.cat PnpLockdown = 1 [DestinationDirs] DefaultDestDir = 13 [SourceDisksNames] 99 = %DISK_NAME%,,,"" [SourceDisksFiles] hidusbfx2.sys = 99 hidkmdf.sys = 99 [Manufacturer] %ManufacturerName% = Standard,NT$ARCH$.10.0...22000 ; For Win11 and later so we can use the inbox mshidkmdf.inf and AddFilter directive [Standard.NT$ARCH$.10.0...22000] %hidusbfx2% = hidusbfx2.Inst, USB\VID_0547&PID_1002 %customCollection% = customCollection.Inst, HID_DEVICE_UP:FF00_U:0001 ;=============================================================== ; Install section for Win11 and later ; Use the inbox mshidkmdf.inf as the shim ;=============================================================== [hidusbfx2.Inst.NT] ; Just copy the driver. No neeed to copy other system binaries. CopyFiles = CopyFilterDriver Include = MsHidKmdf.inf Needs = MsHidKmdf.NT [hidusbfx2.Inst.NT.HW] AddReg = hidusbfx2_Parameters.AddReg Include = MsHidKmdf.inf Needs = MsHidKmdf.NT.HW ; ; mshidkmdf is the function driver and hidusbfx2 is the lower filter ; [hidusbfx2.Inst.NT.Services] AddService = hidusbfx2,, hidusbfx2_Service_Inst Include = MsHidKmdf.inf Needs = MsHidKmdf.NT.Services [hidusbfx2.Inst.NT.Filters] AddFilter = hidusbfx2,,hidusbfx_filter_install [hidusbfx_filter_install] FilterPosition = Lower [CopyFilterDriver] hidusbfx2.sys [hidusbfx2_Service_Inst] DisplayName = %hidusbfx2% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_IGNORE% ServiceBinary = %13%\hidusbfx2.sys [hidusbfx2_Parameters.AddReg] HKR,,"AllowIdleIrpInD3",0x00010001,0x1 ;=============================================================== ; Custom Collection install section ; - Only a Null service is installed. ;=============================================================== [customCollection.Inst.NT] ; NULL section [customCollection.Inst.NT.HW] AddReg = customCollection.Inst.AddReg.NT.HW [customCollection.Inst.AddReg.NT.HW] HKR,,"SelectiveSuspendEnabled",0x00000001,0x1 [customCollection.Inst.NT.Services] AddService = ,0x00000002, ; NULL Service [hidusbfx2.Inst.NT.Wdf] KmdfService = hidusbfx2, hidusbfx2_wdfsect [hidusbfx2_wdfsect] KmdfLibraryVersion = $KMDFVERSION$ ;================================================================ ; Strings section ;=============================================================== [Strings] ;Localizable ProviderName = "TODO-Set-Provider" ManufacturerName = "TODO-Set-Manufacturer" hidusbfx2 = "KMDF HID Minidriver for OSR USB-FX2 Device" customCollection = "HID Vendor-defined Collection for OSR USB-FX2" DISK_NAME = "HID USB FX2 Device Sample Install Disk" hidkmdf.SVCDESC = "Filter Driver Service for HID-KMDF Interface layer" ;Non-Localizable 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