0
|
1 |
; ****************************************************************************
|
|
2 |
; * Copyright (C) 2002-2005 OpenVPN Solutions LLC *
|
|
3 |
; * This program is free software; you can redistribute it and/or modify *
|
|
4 |
; * it under the terms of the GNU General Public License version 2 *
|
|
5 |
; * as published by the Free Software Foundation. *
|
|
6 |
; ****************************************************************************
|
|
7 |
|
|
8 |
; SYNTAX CHECKER
|
|
9 |
; cd \WINDDK\3790\tools\chkinf
|
|
10 |
; chkinf c:\src\openvpn\tap-win32\i386\oemwin2k.inf
|
|
11 |
; OUTPUT -> file:///c:/WINDDK/3790/tools/chkinf/htm/c%23+src+openvpn+tap-win32+i386+__OemWin2k.htm
|
|
12 |
|
|
13 |
;*********************************************************
|
|
14 |
; Note to Developers:
|
|
15 |
;
|
|
16 |
; If you are bundling the TAP-Win32 driver with your app,
|
|
17 |
; you should try to rename it in such a way that it will
|
|
18 |
; not collide with other instances of TAP-Win32 defined
|
|
19 |
; by other apps. Multiple versions of the TAP-Win32
|
|
20 |
; driver, each installed by different apps, can coexist
|
|
21 |
; on the same machine if you follow these guidelines:
|
|
22 |
;
|
|
23 |
; (1) Rename all tapXXXX instances in this file to
|
|
24 |
; something different (use at least 5 characters
|
|
25 |
; for this name!)
|
|
26 |
; (2) Change the "!define TAP" definition in openvpn.nsi
|
|
27 |
; to match what you changed tapXXXX to.
|
|
28 |
; (3) Change TARGETNAME in SOURCES to match what you
|
|
29 |
; changed tapXXXX to.
|
|
30 |
; (4) Change TAP_COMPONENT_ID in common.h to match what
|
|
31 |
; you changed tapXXXX to.
|
|
32 |
; (5) Change SZDEPENDENCIES in service.h to match what
|
|
33 |
; you changed tapXXXX to.
|
|
34 |
; (6) Change DeviceDescription and Provider strings.
|
|
35 |
; (7) Change PRODUCT_STRING in constants.h to what you
|
|
36 |
; set DeviceDescription to.
|
|
37 |
;
|
|
38 |
;*********************************************************
|
|
39 |
|
|
40 |
[Version]
|
|
41 |
Signature = "$Windows NT$"
|
|
42 |
CatalogFile = tap.cat
|
|
43 |
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
|
|
44 |
Provider = %Provider%
|
|
45 |
Class = Net
|
|
46 |
|
|
47 |
; This version number should match the version
|
|
48 |
; number given in SOURCES.
|
|
49 |
DriverVer=05/15/2004,8.00.00.0001
|
|
50 |
|
|
51 |
[Strings]
|
|
52 |
DeviceDescription = "TAP-Win32 Adapter V8"
|
|
53 |
Provider = "TAP-Win32 Provider"
|
|
54 |
|
|
55 |
;----------------------------------------------------------------
|
|
56 |
; Manufacturer + Product Section (Done)
|
|
57 |
;----------------------------------------------------------------
|
|
58 |
[Manufacturer]
|
|
59 |
%Provider% = tap0801
|
|
60 |
|
|
61 |
[tap0801]
|
|
62 |
%DeviceDescription% = tap0801.ndi, tap0801
|
|
63 |
|
|
64 |
;---------------------------------------------------------------
|
|
65 |
; Driver Section (Done)
|
|
66 |
;---------------------------------------------------------------
|
|
67 |
|
|
68 |
;----------------- Characteristics ------------
|
|
69 |
; NCF_PHYSICAL = 0x04
|
|
70 |
; NCF_VIRTUAL = 0x01
|
|
71 |
; NCF_SOFTWARE_ENUMERATED = 0x02
|
|
72 |
; NCF_HIDDEN = 0x08
|
|
73 |
; NCF_NO_SERVICE = 0x10
|
|
74 |
; NCF_HAS_UI = 0x80
|
|
75 |
;----------------- Characteristics ------------
|
|
76 |
|
|
77 |
[tap0801.ndi]
|
|
78 |
CopyFiles = tap0801.driver, tap0801.files
|
|
79 |
AddReg = tap0801.reg
|
|
80 |
AddReg = tap0801.params.reg
|
|
81 |
Characteristics = 0x81
|
|
82 |
|
|
83 |
[tap0801.ndi.Services]
|
|
84 |
AddService = tap0801, 2, tap0801.service
|
|
85 |
|
|
86 |
[tap0801.reg]
|
|
87 |
HKR, Ndi, Service, 0, "tap0801"
|
|
88 |
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
|
|
89 |
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
|
|
90 |
HKR, , Manufacturer, 0, "%Provider%"
|
|
91 |
HKR, , ProductName, 0, "%DeviceDescription%"
|
|
92 |
|
|
93 |
[tap0801.params.reg]
|
|
94 |
HKR, Ndi\params\MTU, ParamDesc, 0, "MTU"
|
|
95 |
HKR, Ndi\params\MTU, Type, 0, "int"
|
|
96 |
HKR, Ndi\params\MTU, Default, 0, "1500"
|
|
97 |
HKR, Ndi\params\MTU, Optional, 0, "0"
|
|
98 |
HKR, Ndi\params\MTU, Min, 0, "100"
|
|
99 |
HKR, Ndi\params\MTU, Max, 0, "1500"
|
|
100 |
HKR, Ndi\params\MTU, Step, 0, "1"
|
|
101 |
HKR, Ndi\params\MediaStatus, ParamDesc, 0, "Media Status"
|
|
102 |
HKR, Ndi\params\MediaStatus, Type, 0, "enum"
|
|
103 |
HKR, Ndi\params\MediaStatus, Default, 0, "1"
|
|
104 |
HKR, Ndi\params\MediaStatus, Optional, 0, "0"
|
|
105 |
HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
|
|
106 |
HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
|
|
107 |
HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
|
|
108 |
HKR, Ndi\params\MAC, Type, 0, "edit"
|
|
109 |
HKR, Ndi\params\MAC, Optional, 0, "1"
|
|
110 |
|
|
111 |
;----------------------------------------------------------------
|
|
112 |
; Service Section
|
|
113 |
;----------------------------------------------------------------
|
|
114 |
|
|
115 |
;---------- Service Type -------------
|
|
116 |
; SERVICE_KERNEL_DRIVER = 0x01
|
|
117 |
; SERVICE_WIN32_OWN_PROCESS = 0x10
|
|
118 |
;---------- Service Type -------------
|
|
119 |
|
|
120 |
;---------- Start Mode ---------------
|
|
121 |
; SERVICE_BOOT_START = 0x0
|
|
122 |
; SERVICE_SYSTEM_START = 0x1
|
|
123 |
; SERVICE_AUTO_START = 0x2
|
|
124 |
; SERVICE_DEMAND_START = 0x3
|
|
125 |
; SERVICE_DISABLED = 0x4
|
|
126 |
;---------- Start Mode ---------------
|
|
127 |
|
|
128 |
[tap0801.service]
|
|
129 |
DisplayName = %DeviceDescription%
|
|
130 |
ServiceType = 1
|
|
131 |
StartType = 3
|
|
132 |
ErrorControl = 1
|
|
133 |
LoadOrderGroup = NDIS
|
|
134 |
ServiceBinary = %12%\tap0801.sys
|
|
135 |
|
|
136 |
;-----------------------------------------------------------------
|
|
137 |
; File Installation
|
|
138 |
;-----------------------------------------------------------------
|
|
139 |
|
|
140 |
;----------------- Copy Flags ------------
|
|
141 |
; COPYFLG_NOSKIP = 0x02
|
|
142 |
; COPYFLG_NOVERSIONCHECK = 0x04
|
|
143 |
;----------------- Copy Flags ------------
|
|
144 |
|
|
145 |
; SourceDisksNames
|
|
146 |
; diskid = description[, [tagfile] [, <unused>, subdir]]
|
|
147 |
; 1 = "Intel Driver Disk 1",e100bex.sys,,
|
|
148 |
|
|
149 |
[SourceDisksNames]
|
|
150 |
1 = %DeviceDescription%, tap0801.sys
|
|
151 |
|
|
152 |
; SourceDisksFiles
|
|
153 |
; filename_on_source = diskID[, [subdir][, size]]
|
|
154 |
; e100bex.sys = 1,, ; on distribution disk 1
|
|
155 |
|
|
156 |
[SourceDisksFiles]
|
|
157 |
tap0801.sys = 1
|
|
158 |
|
|
159 |
[DestinationDirs]
|
|
160 |
tap0801.files = 11
|
|
161 |
tap0801.driver = 12
|
|
162 |
|
|
163 |
[tap0801.files]
|
|
164 |
; TapPanel.cpl,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
|
|
165 |
; cipsrvr.exe,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
|
|
166 |
|
|
167 |
[tap0801.driver]
|
|
168 |
tap0801.sys,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
|
|
169 |
|
|
170 |
;---------------------------------------------------------------
|
|
171 |
; End
|
|
172 |
;---------------------------------------------------------------
|