aboutsummaryrefslogtreecommitdiff
path: root/tap-win32/i386/OemWin2k.inf
blob: eb1e071f7fc86385f25d1a698b3a887d7ddc34d6 (plain) (blame)
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
; ****************************************************************************
; * Copyright (C) 2002-2005 OpenVPN Solutions LLC                            *
; *  This program is free software; you can redistribute it and/or modify    *
; *  it under the terms of the GNU General Public License version 2          *
; *  as published by the Free Software Foundation.                           *
; ****************************************************************************

; SYNTAX CHECKER
; cd \WINDDK\3790\tools\chkinf
; chkinf c:\src\openvpn\tap-win32\i386\oemwin2k.inf
; OUTPUT -> file:///c:/WINDDK/3790/tools/chkinf/htm/c%23+src+openvpn+tap-win32+i386+__OemWin2k.htm

;*********************************************************
; Note to Developers:
;
; If you are bundling the TAP-Win32 driver with your app,
; you should try to rename it in such a way that it will
; not collide with other instances of TAP-Win32 defined
; by other apps.  Multiple versions of the TAP-Win32
; driver, each installed by different apps, can coexist
; on the same machine if you follow these guidelines:
;
; (1) Rename all tapXXXX instances in this file to
;     something different (use at least 5 characters
;     for this name!)
; (2) Change the "!define TAP" definition in openvpn.nsi
;     to match what you changed tapXXXX to.
; (3) Change TARGETNAME in SOURCES to match what you
;     changed tapXXXX to.
; (4) Change TAP_COMPONENT_ID in common.h to match what
;     you changed tapXXXX to.
; (5) Change SZDEPENDENCIES in service.h to match what
;     you changed tapXXXX to.
; (6) Change DeviceDescription and Provider strings.
; (7) Change PRODUCT_STRING in constants.h to what you
;     set DeviceDescription to.
;
;*********************************************************

[Version]
   Signature = "$Windows NT$"
   CatalogFile = tap.cat
   ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
   Provider = %Provider%
   Class = Net

; This version number should match the version
; number given in SOURCES.
   DriverVer=05/15/2004,8.00.00.0001

[Strings]
   DeviceDescription = "TAP-Win32 Adapter V8"
   Provider = "TAP-Win32 Provider"

;----------------------------------------------------------------
;                      Manufacturer + Product Section (Done)
;----------------------------------------------------------------
[Manufacturer]
   %Provider% = tap0801

[tap0801]
   %DeviceDescription% = tap0801.ndi, tap0801

;---------------------------------------------------------------
;                             Driver Section (Done)
;---------------------------------------------------------------

;----------------- Characteristics ------------
;    NCF_PHYSICAL = 0x04
;    NCF_VIRTUAL = 0x01
;    NCF_SOFTWARE_ENUMERATED = 0x02
;    NCF_HIDDEN = 0x08
;    NCF_NO_SERVICE = 0x10
;    NCF_HAS_UI = 0x80
;----------------- Characteristics ------------

[tap0801.ndi]
   CopyFiles       = tap0801.driver, tap0801.files
   AddReg          = tap0801.reg
   AddReg          = tap0801.params.reg
   Characteristics = 0x81

[tap0801.ndi.Services]
   AddService = tap0801,        2, tap0801.service

[tap0801.reg]
   HKR, Ndi,            Service,      0, "tap0801"
   HKR, Ndi\Interfaces, UpperRange,   0, "ndis5"
   HKR, Ndi\Interfaces, LowerRange,   0, "ethernet"
   HKR, ,               Manufacturer, 0, "%Provider%"
   HKR, ,               ProductName,  0, "%DeviceDescription%"

[tap0801.params.reg]
   HKR, Ndi\params\MTU,                ParamDesc, 0, "MTU"
   HKR, Ndi\params\MTU,                Type,      0, "int"
   HKR, Ndi\params\MTU,                Default,   0, "1500"
   HKR, Ndi\params\MTU,                Optional,  0, "0"
   HKR, Ndi\params\MTU,                Min,       0, "100"
   HKR, Ndi\params\MTU,                Max,       0, "1500"
   HKR, Ndi\params\MTU,                Step,      0, "1"
   HKR, Ndi\params\MediaStatus,        ParamDesc, 0, "Media Status"
   HKR, Ndi\params\MediaStatus,        Type,      0, "enum"
   HKR, Ndi\params\MediaStatus,        Default,   0, "0"
   HKR, Ndi\params\MediaStatus,        Optional,  0, "0"
   HKR, Ndi\params\MediaStatus\enum,   "0",       0, "Application Controlled"
   HKR, Ndi\params\MediaStatus\enum,   "1",       0, "Always Connected"
   HKR, Ndi\params\MAC,                ParamDesc, 0, "MAC Address"
   HKR, Ndi\params\MAC,                Type,      0, "edit"
   HKR, Ndi\params\MAC,                Optional,  0, "1"

;----------------------------------------------------------------
;                             Service Section
;----------------------------------------------------------------

;---------- Service Type -------------
;    SERVICE_KERNEL_DRIVER     = 0x01
;    SERVICE_WIN32_OWN_PROCESS = 0x10
;---------- Service Type -------------

;---------- Start Mode ---------------
;    SERVICE_BOOT_START   = 0x0
;    SERVICE_SYSTEM_START = 0x1
;    SERVICE_AUTO_START   = 0x2
;    SERVICE_DEMAND_START = 0x3
;    SERVICE_DISABLED     = 0x4
;---------- Start Mode ---------------

[tap0801.service]
   DisplayName = %DeviceDescription%
   ServiceType = 1
   StartType = 3
   ErrorControl = 1
   LoadOrderGroup = NDIS
   ServiceBinary = %12%\tap0801.sys

;-----------------------------------------------------------------
;                                File Installation
;-----------------------------------------------------------------

;----------------- Copy Flags ------------
;    COPYFLG_NOSKIP = 0x02
;    COPYFLG_NOVERSIONCHECK = 0x04
;----------------- Copy Flags ------------

; SourceDisksNames
; diskid = description[, [tagfile] [, <unused>, subdir]]
; 1 = "Intel Driver Disk 1",e100bex.sys,,

[SourceDisksNames]
   1 = %DeviceDescription%, tap0801.sys

; SourceDisksFiles
; filename_on_source = diskID[, [subdir][, size]]
; e100bex.sys = 1,, ; on distribution disk 1

[SourceDisksFiles]
tap0801.sys = 1

[DestinationDirs]
   tap0801.files  = 11
   tap0801.driver = 12

[tap0801.files]
;   TapPanel.cpl,,,6   ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
;   cipsrvr.exe,,,6     ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK

[tap0801.driver]
   tap0801.sys,,,6     ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK

;---------------------------------------------------------------
;                                      End
;---------------------------------------------------------------