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
|
;/*++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Module Name:
; firefly.inf
;
; Important:
; This INF depends on features for the Driver Store DIRIDs which are available starting Windows 10 1709
;
;--*/
[Version]
Signature="$Windows NT$"
Class=Mouse
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Provider=%Provider%
DriverVer=03/17/2001,1.0.0.1
CatalogFile=KmdfSamples.cat
PnpLockdown=1
[DestinationDirs]
DefaultDestDir = 13
[SourceDisksNames]
1 = %DiskName%
[SourceDisksFiles]
Firefly.sys = 1
[ControlFlags]
; We don't want our device to be installable via the non-PnP hardware dialogs
ExcludeFromSelect = *
; Manufacturer Section
; ---------------------------------------------------------
[Manufacturer]
%ShinyThings%=ShinyThingsMfg,NT$ARCH$.10.0...16299
; Devices Section
; ---------------------------------------------------------
[ShinyThingsMfg.NT$ARCH$.10.0...16299]
%HID\Vid_045E&Pid_001E.DeviceDesc%=Firefly_Inst, HID\Vid_045E&Pid_001E
%HID\Vid_045E&Pid_0029.DeviceDesc%=Firefly_Inst, HID\Vid_045E&Pid_0029
%HID\Vid_045E&Pid_0039.DeviceDesc%=Firefly_Inst, HID\Vid_045E&Pid_0039
%HID\Vid_045E&Pid_0040.DeviceDesc%=Firefly_Inst, HID\Vid_045E&Pid_0040
%HID\Vid_045E&Pid_0047.DeviceDesc%=Firefly_Inst, HID\Vid_045E&Pid_0047
; Install Section
; ---------------------------------------------------------
[Firefly_Inst.NT]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT
CopyFiles = Firefly_Inst_CopyFiles.NT
[Firefly_Inst.NT.HW]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT.Hw
AddReg = Firefly_Inst_HWAddReg.NT
[Firefly_Inst_HWAddReg.NT]
HKR,,"UpperFilters",0x00010000,"Firefly"
[Firefly_Inst_CopyFiles.NT]
Firefly.sys
[Firefly_Inst.NT.Services]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT.Services
AddService = Firefly, , Firefly_Service_Inst
[Firefly_Service_Inst]
DisplayName = %Firefly.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %13%\Firefly.sys
[Firefly_Inst.NT.Wdf]
KmdfService = Firefly, Firefly_wdfsect
[Firefly_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
; Strings Section
; ---------------------------------------------------------
[Strings]
; Provider names
Provider = "TODO-Set-Provider"
; Mfg names
ShinyThings = "Shiny Things"
; Service names
Firefly.SvcDesc = "Firefly Service"
; Media names
DiskName = "Firefly Driver Disk"
; HID device IDs
HID\VID_045E&PID_001E.DeviceDesc = "Shiny Things Firefly Mouse"
HID\VID_045E&PID_0029.DeviceDesc = "Shiny Things Firefly Mouse"
HID\VID_045E&PID_0039.DeviceDesc = "Shiny Things Firefly Mouse"
HID\VID_045E&PID_0040.DeviceDesc = "Shiny Things Firefly Mouse"
HID\VID_045E&PID_0047.DeviceDesc = "Shiny Things Firefly Mouse"
; Standard defs
SPSVCINST_TAGTOFRONT = 0x00000001
SPSVCINST_ASSOCSERVICE= 0x00000002
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START = 0
SERVICE_SYSTEM_START = 1
SERVICE_AUTO_START = 2
SERVICE_ERROR_NORMAL = 1
SERVICE_ERROR_IGNORE = 0
REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001
REG_SZ = 0x00000000
|