21,600
社区成员
发帖
与我相关
我的任务
分享
[Version]
Signature = "$Windows NT$"
Class = NetService
ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider = %Msft%
DriverVer =10/01/2002,6.0.5019.0
[Manufacturer]
%Msft% = MSFT,NTx86,NTia64,NTamd64
[ControlFlags]
;=========================================================================
;
;=========================================================================
;For Win2K
[MSFT]
%Passthru_Desc% = Passthru.ndi, ms_passthru
;For WinXP and later
[MSFT.NTx86]
%Passthru_Desc% = Passthru.ndi, ms_passthru
[MSFT.NTia64]
%Passthru_Desc% = Passthru.ndi, ms_passthru
[MSFT.NTamd64]
%Passthru_Desc% = Passthru.ndi, ms_passthru
[Passthru.ndi]
AddReg = Passthru.ndi.AddReg, Passthru.AddReg
Characteristics = 0x4410 ; NCF_FILTER | NCF_NDIS_PROTOCOL !--Filter Specific--!!
CopyFiles = Passthru.Files.Sys
CopyInf = netsf_m.inf
[Passthru.ndi.Remove]
DelFiles = Passthru.Files.Sys
[Passthru.ndi.Services]
AddService = Passthru,, Passthru.AddService
[Passthru.AddService]
DisplayName = %PassthruService_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\passthru.sys
AddReg = Passthru.AddService.AddReg
[Passthru.AddService.AddReg]
; ----------------------------------------------------------------------
; Add any miniport-specific parameters here. These are params that your
; filter device is going to use.
;
;HKR, Parameters, ParameterName, 0x10000, "MultiSz", "Parameter", "Value"
;HKR, Parameters, ParameterName2, 0x10001, 4
; ----------------------------------------------------------------------
; File copy
;
[SourceDisksNames]
1=%DiskDescription%,"",,
[SourceDisksFiles]
passthru.sys=1
[DestinationDirs]
DefaultDestDir = 12
Passthru.Files.Sys = 12 ; %windir%\System32\drivers
[Passthru.Files.Sys]
passthru.sys,,,2
; ----------------------------------------------------------------------
; Filter Install
;
[Passthru.ndi.AddReg]
HKR, Ndi, HelpText, , %Passthru_HELP%
; ----------------------------------------------------------------------
; !!--Filter Specific--!!
;
; Note:
; 1. Other components may also have UpperRange/LowerRange but for filters
; the value of both of them must be noupper/nolower
; 2. The value FilterClass is required.
; 3. The value Service is required
; 4. FilterDeviceInfId is the InfId of the filter device (miniport) that will
; be installed for each filtered adapter.
; In this case this is ms_passthrump (refer to netsf_m.inf)
;
HKR, Ndi, FilterClass, , failover
HKR, Ndi, FilterDeviceInfId, , ms_passthrump
HKR, Ndi, Service, , Passthru
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi, wan"
[Passthru.AddReg]
; The following key is Required
; The following key is Passthru specific
HKR, Parameters, Param1, 0, 4
; ----------------------------------------------------------------------
[Strings]
Msft = "Microsoft"
DiskDescription = "Microsoft Passthru Driver Disk"
Passthru_Desc = "Passthru Driver"
Passthru_HELP = "Passthru Driver"
PassthruService_Desc = "Passthru Service"
netsf_m.inf
[Version]
signature = "$Windows NT$"
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider = %Msft%
DriverVer =10/01/2002,6.0.5019.0
[ControlFlags]
ExcludeFromSelect = ms_passthrump
[DestinationDirs]
DefaultDestDir=12
; No files to copy
[Manufacturer]
%Msft% = MSFT,NTx86,NTia64,NTamd64
;For Win2K
[MSFT]
%PassthruMP_Desc% = PassthruMP.ndi, ms_passthrump
;For WinXP and later
[MSFT.NTx86]
%PassthruMP_Desc% = PassthruMP.ndi, ms_passthrump
[MSFT.NTia64]
%PassthruMP_Desc% = PassthruMP.ndi, ms_passthrump
[MSFT.NTamd64]
%PassthruMP_Desc% = PassthruMP.ndi, ms_passthrump
[PassthruMP.ndi]
AddReg = PassthruMP.ndi.AddReg
Characteristics = 0x29 ;NCF_NOT_USER_REMOVABLE | NCF_VIRTUAL | NCF_HIDDEN
[PassthruMP.ndi.AddReg]
HKR, Ndi, Service, 0, PassthruMP
[PassthruMP.ndi.Services]
AddService = PassthruMP,0x2, PassthruMP.AddService
[PassthruMP.AddService]
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\passthru.sys
AddReg = PassthruMP.AddService.AddReg
[PassthruMP.AddService.AddReg]
; ----------------------------------------------------------------------
; Add any miniport-specific parameters here. These are params that your
; filter device is going to use.
;
;HKR, Parameters, ParameterName, 0x10000, "MultiSz", "Parameter", "Value"
;HKR, Parameters, ParameterName2, 0x10001, 4
[Strings]
Msft = "Microsoft"
PassthruMP_Desc = "Passthru Miniport"
[SourceDisksNames]
;None
[SourceDisksFiles]
;None