-
Notifications
You must be signed in to change notification settings - Fork 0
/
moufiltr.inx
139 lines (101 loc) · 5.57 KB
/
moufiltr.inx
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
135
136
137
138
139
; moufiltr.inf
;
; Installation inf for the Device that needs filtering adapter.
;
; (c) Copyright 2008 Microsoft
;
[Version]
Signature="$Windows NT$"
Provider=%ProviderName%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
DriverVer=02/05/2008, 1.0.0.0
; Uncomment the following line when you have a valid catalog file.
; If you use bogus catalog file installation will fail.
CatalogFile=KmdfSamples.cat
[DestinationDirs]
DefaultDestDir = 12
moufiltr_CoInstaller_CopyFiles = 11
;
; Driver information
;
[Manufacturer]
%MfgName% = Standard,NT$ARCH$
[Standard.NT$ARCH$]
%moufiltr.DeviceDesc% = moufiltr, *PNP0FAKE
;
; General installation section
;
[moufiltr.NT]
; perform port related actions from mouse.inf
Include=msmouse.inf
Needs=PS2_Inst
; Copy the driver over
CopyFiles=moufiltr.CopyFiles
;
; File sections
;
[moufiltr.CopyFiles]
moufiltr.sys
;
; Service Installation
;
[moufiltr.NT.Services]
AddService = moufiltr, , moufiltr_Service_Inst
; Install the port driver and mouclass from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst.Services
[moufiltr_Service_Inst]
DisplayName = %moufiltr.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\moufiltr.sys
[moufiltr.NT.HW]
; Add the device upper filter
AddReg = moufiltr.HW.AddReg
; run the directives need by the port driver
Include=msmouse.inf
Needs=PS2_Inst.HW
[moufiltr.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"moufiltr"
;
; Source file information
;
[SourceDisksNames]
1 = %DiskId1%,,,
[SourceDisksFiles]
moufiltr.sys = 1
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1
;
;--- moufiltr Coinstaller installation ------
;
[moufiltr.NT.CoInstallers]
AddReg=moufiltr_CoInstaller_AddReg
CopyFiles=moufiltr_CoInstaller_CopyFiles
[moufiltr_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
[moufiltr_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[moufiltr.NT.Wdf]
KmdfService = moufiltr, moufiltr_wdfsect
[moufiltr_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
[Strings]
;
; Non-Localizable Strings
;
REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
;
; Localizable Strings
;
ProviderName = "TODO-Set-Provider"
MfgName = "TODO-Set-Manufacturer"
moufiltr.DeviceDesc = "Mouse Filter Sample Device"
; Make sure the service description is unique to avoid collision with another INF.
moufiltr.SvcDesc = "Mouse Filter Sample Driver"
DiskId1 = "Mouse Filter Install Disk"