Leaked source code of windows server 2003
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.

155 lines
5.1 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. ;
  45. ; ----------------------------------------------------------------------
  46. [Version]
  47. Signature = "$Windows NT$"
  48. Class = NetService
  49. ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
  50. Provider = %Msft%
  51. DriverVer = 06/24/1999,5.00.2071.1
  52. [Manufacturer]
  53. %Msft% = MSFT
  54. [ControlFlags]
  55. ;=========================================================================
  56. ;
  57. ;=========================================================================
  58. [MSFT]
  59. %Passthru_Desc% = Passthru.ndi, ms_passthru
  60. [Passthru.ndi]
  61. AddReg = Passthru.ndi.AddReg, Passthru.AddReg
  62. Characteristics = 0x4410 ; NCF_FILTER | NCF_NDIS_PROTOCOL !--Filter Specific--!!
  63. CopyFiles = Passthru.Files.Sys
  64. CopyInf = netsf_m.inf
  65. [Passthru.ndi.Remove]
  66. DelFiles = Passthru.Files.Sys
  67. [Passthru.ndi.Services]
  68. AddService = Passthru,, Passthru.AddService
  69. [Passthru.AddService]
  70. DisplayName = %PassthruService_Desc%
  71. ServiceType = 1 ;SERVICE_KERNEL_DRIVER
  72. StartType = 3 ;SERVICE_DEMAND_START
  73. ErrorControl = 1 ;SERVICE_ERROR_NORMAL
  74. ServiceBinary = %12%\passthru.sys
  75. LoadOrderGroup = PNP_TDI
  76. AddReg = Passthru.AddService.AddReg
  77. [Passthru.AddService.AddReg]
  78. ; ----------------------------------------------------------------------
  79. ; Add any miniport-specific parameters here. These are params that your
  80. ; filter device is going to use.
  81. ;
  82. ;HKR, Parameters, ParameterName, 0x10000, "MultiSz", "Parameter", "Value"
  83. ;HKR, Parameters, ParameterName2, 0x10001, 4
  84. ; ----------------------------------------------------------------------
  85. ; File copy
  86. ;
  87. [SourceDisksNames]
  88. 1=%DiskDescription%,"",,
  89. [SourceDisksFiles]
  90. passthru.sys=1
  91. [DestinationDirs]
  92. DefaultDestDir = 12
  93. Passthru.Files.Sys = 12 ; %windir%\System32\drivers
  94. [Passthru.Files.Sys]
  95. passthru.sys,,,2
  96. ; ----------------------------------------------------------------------
  97. ; Filter Install
  98. ;
  99. [Passthru.ndi.AddReg]
  100. HKR, Ndi, HelpText, , %Passthru_HELP%
  101. ; ----------------------------------------------------------------------
  102. ; !!--Filter Specific--!!
  103. ;
  104. ; Note:
  105. ; 1. Other components may also have UpperRange/LowerRange but for filters
  106. ; the value of both of them must be noupper/nolower
  107. ; 2. The value FilterClass is required.
  108. ; 3. The value Service is required
  109. ; 4. FilterDeviceInfId is the InfId of the filter device (miniport) that will
  110. ; be installed for each filtered adapter.
  111. ; In this case this is ms_passthrump (refer to netsf_m.inf)
  112. ;
  113. HKR, Ndi, FilterClass, , failover
  114. HKR, Ndi, FilterDeviceInfId, , ms_passthrump
  115. HKR, Ndi, Service, , Passthru
  116. HKR, Ndi\Interfaces, UpperRange, , noupper
  117. HKR, Ndi\Interfaces, LowerRange, , nolower
  118. HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi, wan"
  119. [Passthru.AddReg]
  120. ; The following key is Required
  121. ; The following key is Passthru specific
  122. HKR, Parameters, Param1, 0, 4
  123. ; ----------------------------------------------------------------------
  124. [Strings]
  125. Msft = "Microsoft"
  126. DiskDescription = "Microsoft Passthru Driver Disk"
  127. Passthru_Desc = "Passthru Driver"
  128. Passthru_HELP = "Passthru Driver"
  129. PassthruService_Desc = "Passthru Service"