djcamoable1

OemWin2k

Oct 6th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. ; ****************************************************************************
  2. ; * Copyright (C) 2002-2009 OpenVPN Technologies, 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. ; ****************************************************************************
  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. ; INSTALL/REMOVE DRIVER
  14. ; tapinstall install OemWin2k.inf TAP0901
  15. ; tapinstall update OemWin2k.inf TAP0901
  16. ; tapinstall remove TAP0901
  17.  
  18. ;*********************************************************
  19. ; Note to Developers:
  20. ;
  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.
  31. ;
  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.
  46. ;
  47. ;*********************************************************
  48.  
  49. [Version]
  50. Signature = "$Windows NT$"
  51. CatalogFile = taphss.cat
  52. ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
  53. Provider = %Provider%
  54. Class = Net
  55.  
  56. ; This version number should match the version
  57. ; number given in SOURCES.
  58. DriverVer=09/09/2009,16.00.00.4
  59.  
  60. [Strings]
  61. DeviceDescription = "Anchorfree HSS Adapter"
  62. Provider = "Anchorfree HSS Adapter"
  63.  
  64. ;----------------------------------------------------------------
  65. ; Manufacturer + Product Section (Done)
  66. ;----------------------------------------------------------------
  67. [Manufacturer]
  68. %Provider% = taphss
  69.  
  70. [taphss]
  71. %DeviceDescription% = taphss.ndi, taphss
  72.  
  73. ;---------------------------------------------------------------
  74. ; Driver Section (Done)
  75. ;---------------------------------------------------------------
  76.  
  77. ;----------------- Characteristics ------------
  78. ; NCF_PHYSICAL = 0x04
  79. ; NCF_VIRTUAL = 0x01
  80. ; NCF_SOFTWARE_ENUMERATED = 0x02
  81. ; NCF_HIDDEN = 0x08
  82. ; NCF_NO_SERVICE = 0x10
  83. ; NCF_HAS_UI = 0x80
  84. ;----------------- Characteristics ------------
  85.  
  86. [taphss.ndi]
  87. CopyFiles = taphss.driver, taphss.files
  88. AddReg = taphss.reg
  89. AddReg = taphss.params.reg
  90. Characteristics = 0x89
  91.  
  92. [taphss.ndi.Services]
  93. AddService = taphss, 2, taphss.service
  94.  
  95. [taphss.reg]
  96. HKR, Ndi, Service, 0, "taphss"
  97. HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
  98. HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
  99. HKR, , Manufacturer, 0, "%Provider%"
  100. HKR, , ProductName, 0, "%DeviceDescription%"
  101.  
  102. [taphss.params.reg]
  103. HKR, Ndi\params\MTU, ParamDesc, 0, "MTU"
  104. HKR, Ndi\params\MTU, Type, 0, "int"
  105. HKR, Ndi\params\MTU, Default, 0, "1500"
  106. HKR, Ndi\params\MTU, Optional, 0, "0"
  107. HKR, Ndi\params\MTU, Min, 0, "100"
  108. HKR, Ndi\params\MTU, Max, 0, "1500"
  109. HKR, Ndi\params\MTU, Step, 0, "1"
  110. HKR, Ndi\params\MediaStatus, ParamDesc, 0, "Media Status"
  111. HKR, Ndi\params\MediaStatus, Type, 0, "enum"
  112. HKR, Ndi\params\MediaStatus, Default, 0, "0"
  113. HKR, Ndi\params\MediaStatus, Optional, 0, "0"
  114. HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
  115. HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
  116. HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
  117. HKR, Ndi\params\MAC, Type, 0, "edit"
  118. HKR, Ndi\params\MAC, Optional, 0, "1"
  119. HKR, Ndi\params\AllowNonAdmin, ParamDesc, 0, "Non-Admin Access"
  120. HKR, Ndi\params\AllowNonAdmin, Type, 0, "enum"
  121. HKR, Ndi\params\AllowNonAdmin, Default, 0, "1"
  122. HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
  123. HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
  124. HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"
  125.  
  126. ;----------------------------------------------------------------
  127. ; Service Section
  128. ;----------------------------------------------------------------
  129.  
  130. ;---------- Service Type -------------
  131. ; SERVICE_KERNEL_DRIVER = 0x01
  132. ; SERVICE_WIN32_OWN_PROCESS = 0x10
  133. ;---------- Service Type -------------
  134.  
  135. ;---------- Start Mode ---------------
  136. ; SERVICE_BOOT_START = 0x0
  137. ; SERVICE_SYSTEM_START = 0x1
  138. ; SERVICE_AUTO_START = 0x2
  139. ; SERVICE_DEMAND_START = 0x3
  140. ; SERVICE_DISABLED = 0x4
  141. ;---------- Start Mode ---------------
  142.  
  143. [taphss.service]
  144. DisplayName = %DeviceDescription%
  145. ServiceType = 1
  146. StartType = 3
  147. ErrorControl = 1
  148. LoadOrderGroup = NDIS
  149. ServiceBinary = %12%\taphss.sys
  150.  
  151. ;-----------------------------------------------------------------
  152. ; File Installation
  153. ;-----------------------------------------------------------------
  154.  
  155. ;----------------- Copy Flags ------------
  156. ; COPYFLG_NOSKIP = 0x02
  157. ; COPYFLG_NOVERSIONCHECK = 0x04
  158. ;----------------- Copy Flags ------------
  159.  
  160. ; SourceDisksNames
  161. ; diskid = description[, [tagfile] [, <unused>, subdir]]
  162. ; 1 = "Intel Driver Disk 1",e100bex.sys,,
  163.  
  164. [SourceDisksNames]
  165. 1 = %DeviceDescription%, taphss.sys
  166.  
  167. ; SourceDisksFiles
  168. ; filename_on_source = diskID[, [subdir][, size]]
  169. ; e100bex.sys = 1,, ; on distribution disk 1
  170.  
  171. [SourceDisksFiles]
  172. taphss.sys = 1
  173.  
  174. [DestinationDirs]
  175. taphss.files = 11
  176. taphss.driver = 12
  177.  
  178. [taphss.files]
  179. ; TapPanel.cpl,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
  180. ; cipsrvr.exe,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
  181.  
  182. [taphss.driver]
  183. taphss.sys,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
  184.  
  185. ;---------------------------------------------------------------
  186. ; End
  187. ;---------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment