Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
5.8 KiB

  1. ; -- NETSF.INF --
  2. ;
  3. ; Passthru driver INF file - this is the INF for the service (protocol)
  4. ; part.
  5. ;
  6. ; Copyright (c) 1993-2001, Microsoft Corporation
  7. ;
  8. ; ----------------------------------------------------------------------
  9. ; Notes:
  10. ; 0. The term "filter" is used in this INF to refer to an NDIS IM driver that
  11. ; implements a 1:1 relationship between upper and lower bindings.
  12. ;
  13. ; 1. Items specifically required for a filter have been marked with
  14. ; "!!--Filter Specific--!!" keyword
  15. ; 2. In general a filter DOES NOT require a notify object for proper installation.
  16. ; A notify object is only required if one wants to have better control
  17. ; over binding operations or if one wants to receive notifications
  18. ; when other components get installed/removed/bound/unbound.
  19. ; Since Windows 2000 systems do not have support for CopyINF directive,
  20. ; a notify object is required to programmatically copy the miniport INF
  21. ; file to the system INF directory. Previous versions of this INF file
  22. ; erroneously used to copy the INF files directly by using the CopyFiles
  23. ; directive.
  24. ; On Windows XP, you can install a filter IM without a notify object.
  25. ; by following the instructions in (4).
  26. ;
  27. ; 3. If you want to use this INF file with your own IM driver, please
  28. ; make the following modifications:
  29. ; File netsf.inf
  30. ; --------------
  31. ; a. In section [SourceDiskFiles] and [Passthru.Files.Sys]
  32. ; change passthru.sys to the name of your own driver binary.
  33. ; b. In section [Passthru.ndi.AddReg], change values of
  34. ; BindForm and MiniportId to appropriate values.
  35. ; File netsf_m.inf
  36. ; ----------------
  37. ; a. Replace MS_PassthruMP with InfId of your miniport.
  38. ; b. In section [PassthruMP.AddService],
  39. ; change ServiceBinary appropriately.
  40. ; c. In section [PassthruMP.ndi.AddReg],
  41. ; change "Passthru" in the line having "Service"
  42. ; to reflect the appropriate name
  43. ;
  44. ; 4. If you want to use this INF for installing the passthru IM without
  45. ; the notify object, do the following:
  46. ; a. In section [Passthru.ndi.AddReg],
  47. ; Comment out lines having ClsId and ComponentDll
  48. ; b. In section [Passthru.ndi],
  49. ; change the value of Characteristics so that it does not have
  50. ; the NCF_HAS_UI flag
  51. ; c. In section [SourceDiskFiles], comment out the line having passthru.dll
  52. ; d. In section [Passthru.ndi], remove Passthru.Files.Init from the
  53. ; CopyFiles line.
  54. ;
  55. ; ----------------------------------------------------------------------
  56. [Version]
  57. Signature = "$Windows NT$"
  58. Class = NetService
  59. ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
  60. Provider = %Msft%
  61. DriverVer = 06/24/1999,5.00.2071.1
  62. [Manufacturer]
  63. %Msft% = MSFT
  64. [ControlFlags]
  65. ;=========================================================================
  66. ;
  67. ;=========================================================================
  68. [MSFT]
  69. %Passthru_Desc% = Passthru.ndi, ms_passthru
  70. [Passthru.ndi]
  71. AddReg = Passthru.ndi.AddReg, Passthru.AddReg
  72. Characteristics = 0x4490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE | NCF_NDIS_PROTOCOL !--Filter Specific--!!
  73. CopyFiles = Passthru.Files.Init, Passthru.Files.Sys
  74. CopyInf = netsf_m.inf
  75. [Passthru.ndi.Remove]
  76. DelFiles = Passthru.Files.Init, Passthru.Files.Sys
  77. [Passthru.ndi.Remove.Services]
  78. DelService = Passthru
  79. ; ----------------------------------------------------------------------
  80. ; File copy
  81. ;
  82. [SourceDisksNames]
  83. 1=%DiskDescription%,"",,
  84. [SourceDisksFiles]
  85. passthru.dll=1
  86. passthru.sys=1
  87. netsf_m.inf=1
  88. [DestinationDirs]
  89. DefaultDestDir = 12
  90. Passthru.Files.Init = 11 ; %windir%\System32
  91. Passthru.Files.Sys = 12 ; %windir%\System32\drivers
  92. ; Copying of passthru.dll is required only if the filter has a Notify object
  93. [Passthru.Files.Init]
  94. passthru.dll,,,2
  95. [Passthru.Files.Sys]
  96. passthru.sys,,,2
  97. [InfSourcePathInfo]
  98. ; Used by the notify object to figure out where the original media is
  99. ; located (so it can use SetupCopyOEMInf to install Net INF located
  100. ; there).
  101. OriginalInfSourcePath = %1%
  102. ; ----------------------------------------------------------------------
  103. ; Filter Install
  104. ;
  105. [Passthru.ndi.AddReg]
  106. HKR, Ndi, HelpText, , %Passthru_HELP%
  107. ; ----------------------------------------------------------------------
  108. ; Keys required if a Notify object is present
  109. ; These keys should be omitted if the Filter does not have any Notify object
  110. ;
  111. ; Note:
  112. ; 1. Only include the following lines if your filter has configuration UI
  113. ; that needs to be displayed. Otherwise, you should not need a notify
  114. ; object.
  115. ; 2. If you write your own notifyobject, use a different GUID for ClsID!!
  116. ; (Generate this with uuidgen.exe)
  117. ;
  118. HKR, Ndi, ClsID, , {df2e4f67-e93a-11d1-bb14-0000f8779051}
  119. HKR, Ndi, ComponentDll, , passthru.dll
  120. ; ----------------------------------------------------------------------
  121. ; !!--Filter Specific--!!
  122. ;
  123. ; Note:
  124. ; 1. Other components may also have UpperRange/LowerRange but for filters
  125. ; the value of both of them must be noupper/nolower
  126. ; 2. The value FilterClass is required.
  127. ; 3. The value Service is required
  128. ; 4. FilterDeviceInfId is the InfId of the filter device (miniport) that will
  129. ; be installed for each filtered adapter.
  130. ; In this case this is ms_passthrump (refer to netsf_m.inf)
  131. ;
  132. HKR, Ndi, FilterClass, , failover
  133. HKR, Ndi, FilterDeviceInfId, , ms_passthrump
  134. HKR, Ndi, Service, , Passthru
  135. HKR, Ndi\Interfaces, UpperRange, , noupper
  136. HKR, Ndi\Interfaces, LowerRange, , nolower
  137. HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi, wan"
  138. [Passthru.AddReg]
  139. ; The following key is Required
  140. ; The following key is Passthru specific
  141. HKR, Parameters, Param1, 0, 4
  142. ; ----------------------------------------------------------------------
  143. [Strings]
  144. Msft = "Microsoft"
  145. DiskDescription = "Microsoft Passthru Driver Disk"
  146. Passthru_Desc = "Passthru Driver"
  147. Passthru_HELP = "Passthru Driver"