summaryrefslogtreecommitdiff
path: root/network/ndis/ndisprot_kmdf/60/ndisprot.inx
blob: 1c5762f12128f94069998f4767690502210d43bd (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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
;-------------------------------------------------------------------------
; NDISPROT.INF -- Sample NDIS Protocol Driver
;
; Copyright (c) 2003, Microsoft Corporation
;-------------------------------------------------------------------------
[version]
Signature   = "$Windows NT$"
Class       = NetTrans
ClassGUID   = {4d36e975-e325-11ce-bfc1-08002be10318}
CatalogFile = nprt6wdf.cat
Provider    = %ProviderString%
PnpLockdown = 1

; Note: Starting with OS build version 25341 there is an update to the Network Installation UI
; that allows for driver packages with notify objects to properly install into the Driver store directory.
; All builds above 25341 can and should install drivers with a notify object using DIRID 13.

; Note: Starting with OS Win 10.0 The WdfCoInstaller.dll is not needed for installation of drivers.
[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$.6.1,NT$ARCH$.10.0,NT$ARCH$.10.0...25341

[Standard.NT$ARCH$.10.0...25341]
%NDISPROT_Desc%=Install, MS_NDISPROT

[Standard.NT$ARCH$.10.0]
%NDISPROT_Desc%=Install_10, MS_NDISPROT

[Standard.NT$ARCH$.6.1]
%NDISPROT_Desc%=Install_7, MS_NDISPROT

[SourceDisksNames]
1 = %NDISPROT_Disk%,,

[SourceDisksFiles]
nprt6wdf.sys            = 1,,
ProtNotify.dll          = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1,,

;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install]
AddReg         = Inst_Ndi
CopyFiles      = CpyFiles_Sys
Characteristics=0x0 ;

[Install_10]
AddReg         = Inst_Ndi
CopyFiles      = CpyFiles_Sys_12
Characteristics=0x0 ;

[Install_7]
AddReg         = Inst_Ndi_7
CopyFiles      = CpyCoInstaller_DLL, CpyFilesNotify_DLL, CpyFiles_Sys_12
Characteristics=0x0 ;

;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR, Ndi             , ClsID        ,0, {21e7e731-f286-4116-b3c2-d43ccba29f07}
HKR, Ndi             , Service      , , "Ndisprot"
HKR, Ndi             , HelpText     , , %NDISPROT_HelpText%
HKR, Ndi\Interfaces  , UpperRange   , , noupper
HKR, "Ndi\Interfaces", "LowerRange" , , "ndis5"

[Inst_Ndi_7]
HKR, Ndi             , ClsID        ,0, {21e7e731-f286-4116-b3c2-d43ccba29f07}
HKR, Ndi             , Service      , , "Ndisprot"
HKR, Ndi             , ComponentDll , , ProtNotify.dll
HKR, Ndi             , HelpText     , , %NDISPROT_HelpText%
HKR, Ndi\Interfaces  , UpperRange   , , noupper
HKR, "Ndi\Interfaces", "LowerRange" , , "ndis5,ndis4,ndis5_prot"

;-------------------------------------------------------------------------
; NdisProt keys used by Component Dll
;-------------------------------------------------------------------------
[NdisProt_AddReg]
HKR, Parameters      , SourceInfFile, , %1%\ndisprot.inf
HKR, Parameters      , WdfSection   , , "WdfSection"

;-------------------------------------------------------------------------
; Service installation support
;-------------------------------------------------------------------------
[Install.Services]
AddService=Ndisprot60,,NDISPROT_Service_Inst

[NDISPROT_Service_Inst]
DisplayName     = %NDISPROT_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 3 ;SERVICE_DEMAND_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %13%\nprt6wdf.sys
Description     = %NDISPROT_Desc%
AddReg          = NdisProt_AddReg, NdisImPlatformBinding_AddReg

[Install_10.Services]
AddService=Ndisprot60,,NDISPROT_Service_Inst_10

[NDISPROT_Service_Inst_10]
DisplayName     = %NDISPROT_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 3 ;SERVICE_DEMAND_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\nprt6wdf.sys
Description     = %NDISPROT_Desc%
AddReg          = NdisProt_AddReg, NdisImPlatformBinding_AddReg

[Install_7.Services]
AddService=Ndisprot60,,NDISPROT_Service_Inst_7

[NDISPROT_Service_Inst_7]
DisplayName     = %NDISPROT_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 3 ;SERVICE_DEMAND_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\nprt6wdf.sys
Description     = %NDISPROT_Desc%
AddReg          = NdisProt_AddReg, NdisImPlatformBinding_AddReg

[NdisImPlatformBinding_AddReg]
; By default, when an LBFO team or Bridge is created, all protocols will be
; unbound from the underlying members and bound to the TNic(s). This keyword
; allows a component to opt out of the default behavior
; To prevent binding this protocol to the TNic(s):
;   HKR, Parameters, NdisImPlatformBindingOptions,0x00010001,1 ; Do not bind to TNic
; To prevent unbinding this protocol from underlying members:
;   HKR, Parameters, NdisImPlatformBindingOptions,0x00010001,2 ; Do not unbind from Members
; To prevent both binding to TNic and unbinding from members:
;   HKR, Parameters, NdisImPlatformBindingOptions,0x00010001,3 ; Do not bind to TNic or unbind from Members
HKR, Parameters, NdisImPlatformBindingOptions,0x00010001,0 ; Subscribe to default behavior

[Install.Remove.Services]
DelService=Ndisprot60,0x200

[Install_10.Remove.Services]
DelService=Ndisprot60,0x200

[Install_7.Remove.Services]
DelService=Ndisprot60,0x200

;-------------------------------------------------------------------------
; Declare Destination Directories for file copy/deletion
;-------------------------------------------------------------------------
[DestinationDirs]
CpyFiles_Sys        = 13
CpyFiles_Sys_12     = 12
CpyCoInstaller_DLL  = 11
CpyFilesNotify_DLL  = 11

;-------------------------------------------------------------------------
; Files to Copy/Delete - Referenced by Install and Remove sections above
;-------------------------------------------------------------------------
[CpyCoInstaller_DLL]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,,,2

[CpyFilesNotify_DLL]
ProtNotify.dll,,,2

[CpyFiles_Sys]
nprt6wdf.sys,,,2

[CpyFiles_Sys_12]
nprt6wdf.sys,,,2

;-------------------------------------------------------------------------
; NDISPROT Coinstaller installation
;-------------------------------------------------------------------------
[Install_7.Wdf]
KmdfService = NdisProt60, NdisProt_WdfSection

[NdisProt_WdfSection]
KmdfLibraryVersion = $KMDFVERSION$


[Strings]
ProviderString = "TODO-Set-Provider"
ManufacturerName="TODO-Set-Manufacturer"
NDISPROT_Desc = "Sample NDIS Protocol Driver"
NDISPROT_Disk = "Sample NDIS Protocol Driver Files"
NDISPROT_HelpText = "A driver to support user-mode I/O on NDIS devices"