[MSFT.NTamd64]
%NdisLwf_Desc%=Install, MS_NdisLwf

;————————————————————————-
; Installation Section
;————————————————————————-
[Install]
AddReg=Inst_Ndi
Characteristics=0×40000
NetCfgInstanceId="{5cbf81bd-5055-47cd-9055-a76b2b4e3697}"
Copyfiles = ndislwf.copyfiles.sys

[SourceDisksNames]
1=%NdisLwf_Desc%,"",,

[SourceDisksFiles]
ndislwf.sys=1

[DestinationDirs]
DefaultDestDir=12
ndislwf.copyfiles.sys=12

[ndislwf.copyfiles.sys]
ndislwf.sys,,,2

;————————————————————————-
; Ndi installation support
;————————————————————————-
[Inst_Ndi]
HKR, Ndi,Service,,"NdisLwf"
HKR, Ndi,CoServices,0×00010000,"NdisLwf"
HKR, Ndi,HelpText,,%NdisLwf_HelpText%
HKR, Ndi,FilterClass,, Custom
HKR, Ndi,FilterType,0×00010001,0×00000001   ; 0×00000002 for a modifying filter
HKR, Ndi\Interfaces,UpperRange,,"noupper"
HKR, Ndi\Interfaces,LowerRange,,"noupper"
HKR, Ndi\Interfaces, FilterMediaTypes,,"wlan"  ; 只收raw wifi,也可以加上"ethernet"
HKR, Ndi,FilterRunType, 0×00010001, 2 ;this filter must run before any protocol can bind to the below miniport

;————————————————————————-
; Service installation support
;————————————————————————-
[Install.Services]
AddService=NdisLwf,,NdisLwf_Service_Inst

[NdisLwf_Service_Inst]
DisplayName     = %NdisLwf_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 1 ;SERVICE_SYSTEM_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\ndislwf.sys
LoadOrderGroup  = NDIS
Description     = %NdisLwf_Desc%
AddReg          = Common.Params.reg

[Install.Remove.Services]
DelService=NdisLwf,0×200

[Common.Params.reg]

HKR, FilterDriverParams\DriverParam,         ParamDesc,     , "Driverparam for lwf"
HKR, FilterDriverParams\DriverParam,         default,     , "5"
HKR, FilterDriverParams\DriverParam,         type,         , "int"

HKR, FilterAdapterParams\AdapterParam,         ParamDesc,     , "Adapterparam for lwf"
HKR, FilterAdapterParams\AdapterParam,         default,     , "10"
HKR, FilterAdapterParams\AdapterParam,         type,         , "int"

[Strings]
Msft = "Microsoft"
NdisLwf_Desc = "NDIS Sample LightWeight Filter"
NdisLwf_HelpText = "Sample to demonstrate NDIS LightWeight Filters"


评论

该日志第一篇评论

发表评论

评论也有版权!