summaryrefslogtreecommitdiff
path: root/hid/hidusbfx2/sys/hidusbfx2.inx
blob: b494482841bb8a75e4c374d3e83831fe4754f80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
;/*++
;
; 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