Add OpenVPN 2.1rc12 source (unconfigured)
[tomato.git] / release / src / router / openvpn / tap-win32 / i386 / OemWin2k.inf.in
blob9bff41a9f52327a9dfcc14c3b4c4e30f20735bbc
1 ; ****************************************************************************
2 ; * Copyright (C) 2002-2008 Telethra, Inc.                            *
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 ; ****************************************************************************
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
13 ; INSTALL/REMOVE DRIVER
14 ;   tapinstall install OemWin2k.inf TAP0901
15 ;   tapinstall update OemWin2k.inf TAP0901
16 ;   tapinstall remove TAP0901
18 ;*********************************************************
19 ; Note to Developers:
21 ; If you are bundling the TAP-Win32 driver with your app,
22 ; you should try to rename it in such a way that it will
23 ; not collide with other instances of TAP-Win32 defined
24 ; by other apps.  Multiple versions of the TAP-Win32
25 ; driver, each installed by different apps, can coexist
26 ; on the same machine if you follow these guidelines.
27 ; NOTE: these instructions assume you are editing the
28 ; generated OemWin2k.inf file, not the source
29 ; OemWin2k.inf.in file which is preprocessed by winconfig
30 ; and uses macro definitions from settings.in.
32 ; (1) Rename all tapXXXX instances in this file to
33 ;     something different (use at least 5 characters
34 ;     for this name!)
35 ; (2) Change the "!define TAP" definition in openvpn.nsi
36 ;     to match what you changed tapXXXX to.
37 ; (3) Change TARGETNAME in SOURCES to match what you
38 ;     changed tapXXXX to.
39 ; (4) Change TAP_COMPONENT_ID in common.h to match what
40 ;     you changed tapXXXX to.
41 ; (5) Change SZDEPENDENCIES in service.h to match what
42 ;     you changed tapXXXX to.
43 ; (6) Change DeviceDescription and Provider strings.
44 ; (7) Change PRODUCT_STRING in constants.h to what you
45 ;     set DeviceDescription to.
47 ;*********************************************************
49 [Version]
50    Signature = "$Windows NT$"
51    CatalogFile = @@PRODUCT_TAP_ID@@.cat
52    ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
53    Provider = %Provider%
54    Class = Net
56 ; This version number should match the version
57 ; number given in SOURCES.
58    DriverVer=@@PRODUCT_TAP_RELDATE@@,@@PRODUCT_TAP_MAJOR_VER@@.00.00.@@PRODUCT_TAP_MINOR_VER@@
60 [Strings]
61    DeviceDescription = "@@PRODUCT_TAP_DEVICE_DESCRIPTION@@"
62    Provider = "@@PRODUCT_TAP_PROVIDER@@"
64 ;----------------------------------------------------------------
65 ;                      Manufacturer + Product Section (Done)
66 ;----------------------------------------------------------------
67 [Manufacturer]
68 !ifdef AMD64
69    %Provider% = @@PRODUCT_TAP_ID@@, NTamd64
70 !else
71    %Provider% = @@PRODUCT_TAP_ID@@
72 !endif
74 !ifdef AMD64
75 [@@PRODUCT_TAP_ID@@.NTamd64]
76 !else
77 [@@PRODUCT_TAP_ID@@]
78 !endif
79    %DeviceDescription% = @@PRODUCT_TAP_ID@@.ndi, @@PRODUCT_TAP_ID@@
81 ;---------------------------------------------------------------
82 ;                             Driver Section (Done)
83 ;---------------------------------------------------------------
85 ;----------------- Characteristics ------------
86 ;    NCF_PHYSICAL = 0x04
87 ;    NCF_VIRTUAL = 0x01
88 ;    NCF_SOFTWARE_ENUMERATED = 0x02
89 ;    NCF_HIDDEN = 0x08
90 ;    NCF_NO_SERVICE = 0x10
91 ;    NCF_HAS_UI = 0x80
92 ;----------------- Characteristics ------------
94 [@@PRODUCT_TAP_ID@@.ndi]
95    CopyFiles       = @@PRODUCT_TAP_ID@@.driver, @@PRODUCT_TAP_ID@@.files
96    AddReg          = @@PRODUCT_TAP_ID@@.reg
97    AddReg          = @@PRODUCT_TAP_ID@@.params.reg
98    Characteristics = @@PRODUCT_TAP_CHARACTERISTICS@@
100 [@@PRODUCT_TAP_ID@@.ndi.Services]
101    AddService = @@PRODUCT_TAP_ID@@,        2, @@PRODUCT_TAP_ID@@.service
103 [@@PRODUCT_TAP_ID@@.reg]
104    HKR, Ndi,            Service,      0, "@@PRODUCT_TAP_ID@@"
105    HKR, Ndi\Interfaces, UpperRange,   0, "ndis5"
106    HKR, Ndi\Interfaces, LowerRange,   0, "ethernet"
107    HKR, ,               Manufacturer, 0, "%Provider%"
108    HKR, ,               ProductName,  0, "%DeviceDescription%"
110 [@@PRODUCT_TAP_ID@@.params.reg]
111    HKR, Ndi\params\MTU,                  ParamDesc, 0, "MTU"
112    HKR, Ndi\params\MTU,                  Type,      0, "int"
113    HKR, Ndi\params\MTU,                  Default,   0, "1500"
114    HKR, Ndi\params\MTU,                  Optional,  0, "0"
115    HKR, Ndi\params\MTU,                  Min,       0, "100"
116    HKR, Ndi\params\MTU,                  Max,       0, "1500"
117    HKR, Ndi\params\MTU,                  Step,      0, "1"
118    HKR, Ndi\params\MediaStatus,          ParamDesc, 0, "Media Status"
119    HKR, Ndi\params\MediaStatus,          Type,      0, "enum"
120    HKR, Ndi\params\MediaStatus,          Default,   0, "0"
121    HKR, Ndi\params\MediaStatus,          Optional,  0, "0"
122    HKR, Ndi\params\MediaStatus\enum,     "0",       0, "Application Controlled"
123    HKR, Ndi\params\MediaStatus\enum,     "1",       0, "Always Connected"
124    HKR, Ndi\params\MAC,                  ParamDesc, 0, "MAC Address"
125    HKR, Ndi\params\MAC,                  Type,      0, "edit"
126    HKR, Ndi\params\MAC,                  Optional,  0, "1"
127    HKR, Ndi\params\AllowNonAdmin,        ParamDesc, 0, "Non-Admin Access"
128    HKR, Ndi\params\AllowNonAdmin,        Type,      0, "enum"
129    HKR, Ndi\params\AllowNonAdmin,        Default,   0, "1"
130    HKR, Ndi\params\AllowNonAdmin,        Optional,  0, "0"
131    HKR, Ndi\params\AllowNonAdmin\enum,   "0",       0, "Not Allowed"
132    HKR, Ndi\params\AllowNonAdmin\enum,   "1",       0, "Allowed"
134 ;----------------------------------------------------------------
135 ;                             Service Section
136 ;----------------------------------------------------------------
138 ;---------- Service Type -------------
139 ;    SERVICE_KERNEL_DRIVER     = 0x01
140 ;    SERVICE_WIN32_OWN_PROCESS = 0x10
141 ;---------- Service Type -------------
143 ;---------- Start Mode ---------------
144 ;    SERVICE_BOOT_START   = 0x0
145 ;    SERVICE_SYSTEM_START = 0x1
146 ;    SERVICE_AUTO_START   = 0x2
147 ;    SERVICE_DEMAND_START = 0x3
148 ;    SERVICE_DISABLED     = 0x4
149 ;---------- Start Mode ---------------
151 [@@PRODUCT_TAP_ID@@.service]
152    DisplayName = %DeviceDescription%
153    ServiceType = 1
154    StartType = 3
155    ErrorControl = 1
156    LoadOrderGroup = NDIS
157    ServiceBinary = %12%\@@PRODUCT_TAP_ID@@.sys
159 ;-----------------------------------------------------------------
160 ;                                File Installation
161 ;-----------------------------------------------------------------
163 ;----------------- Copy Flags ------------
164 ;    COPYFLG_NOSKIP = 0x02
165 ;    COPYFLG_NOVERSIONCHECK = 0x04
166 ;----------------- Copy Flags ------------
168 ; SourceDisksNames
169 ; diskid = description[, [tagfile] [, <unused>, subdir]]
170 ; 1 = "Intel Driver Disk 1",e100bex.sys,,
172 [SourceDisksNames]
173    1 = %DeviceDescription%, @@PRODUCT_TAP_ID@@.sys
175 ; SourceDisksFiles
176 ; filename_on_source = diskID[, [subdir][, size]]
177 ; e100bex.sys = 1,, ; on distribution disk 1
179 [SourceDisksFiles]
180 @@PRODUCT_TAP_ID@@.sys = 1
182 [DestinationDirs]
183    @@PRODUCT_TAP_ID@@.files  = 11
184    @@PRODUCT_TAP_ID@@.driver = 12
186 [@@PRODUCT_TAP_ID@@.files]
187 ;   TapPanel.cpl,,,6   ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
188 ;   cipsrvr.exe,,,6     ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
190 [@@PRODUCT_TAP_ID@@.driver]
191    @@PRODUCT_TAP_ID@@.sys,,,6     ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
193 ;---------------------------------------------------------------
194 ;                                      End
195 ;---------------------------------------------------------------