阅读:4847回复:23
帮帮小弟吧,NDIS安装问题,雪地打滚了
头写了一个防火墙程序,现在本人手里有sys和两个inf,一个是过滤器的inf,一个是虚拟设备的驱动,跟passthru的差不多,手动安装没有问题,可是跟据bindview的例子写的程序自动安装就是不起作用,网络组件已经显示出来了,可是就是不起作用,弄了一个星期了,还是不是不知道问题出在哪里,求求各位老大,帮帮我吧.
|
|
|
沙发#
发布于:2007-03-30 10:13
不知道这个是不是手动启动的
|
|
板凳#
发布于:2007-03-30 10:19
怎样手动启动呢,关键是手动安装就马上起作用了,从添加网络组件那里安装就可以,安上后马上就起作用了。
|
|
|
地板#
发布于:2007-03-30 10:23
好像没有这个问题,手动安装就一定问题没有,马上起作用了,从网络组件那里的从磁盘安装,就一点问题没有了.可是头要求我写一个自动安装的程序.
|
|
|
地下室#
发布于:2007-03-30 13:06
老大,可怜,可怜小弟吧,雪地跪求!!!!!!!!!!!!!!!!
|
|
|
5楼#
发布于:2007-03-30 13:09
用netcfg安装
|
|
|
6楼#
发布于:2007-03-30 13:28
谢谢,老大,能否具体一点。bindview的那个例子好像就是吧,我不太知道,老大指教。
|
|
|
7楼#
发布于:2007-03-30 14:07
老大我试了,还是没有用,跟bingview的那个效果一样,就是不起作用,网络组件也添加上了,感觉那个那个虚拟网卡的驱动没有安上,我的msn是huyang2008@hotmail.com请老大加我执教,小弟不胜感激。
|
|
|
8楼#
发布于:2007-03-30 15:23
小弟一直在线等
|
|
|
9楼#
发布于:2007-03-31 12:39
你这样说,谁知道问题在哪里?
把INF文件和关键调用帖上来 |
|
10楼#
发布于:2007-04-01 12:25
手安可以的话 bindview也应该可以安装 照着写不就可以拉
|
|
11楼#
发布于:2007-04-02 09:25
[Version]
Signature = "$Windows NT$" Class = NetService ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318} Provider = %Msft% DriverVer = 06/24/1999,5.00.2071.1 [Manufacturer] %Msft% = MSFT [ControlFlags] ;========================================================================= ; ;========================================================================= [MSFT] %Authen_Desc% = Authen.ndi, ms_authen [Authen.ndi] AddReg = Authen.ndi.AddReg, Authen.AddReg Characteristics = 0x4410 ; NCF_FILTER | NCF_NDIS_PROTOCOL !--Filter Specific--!! CopyFiles = Authen.Files.Sys CopyInf = netau_m.inf [Authen.ndi.Remove] DelFiles = Authen.Files.Sys [Authen.ndi.Services] AddService = Authen,, Authen.AddService [Authen.AddService] DisplayName = %AuthenService_Desc% ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL ServiceBinary = %12%\authen.sys LoadOrderGroup = PNP_TDI AddReg = Authen.AddService.AddReg [Authen.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] authen.sys=1 [DestinationDirs] DefaultDestDir = 12 Authen.Files.Sys = 12 ; %windir%\System32\drivers [Authen.Files.Sys] authen.sys,,,2 ; ---------------------------------------------------------------------- ; Filter Install ; [Authen.ndi.AddReg] HKR, Ndi, HelpText, , %Authen_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_authenmp (refer to netau_m.inf) ; HKR, Ndi, FilterClass, , failover HKR, Ndi, FilterDeviceInfFile, , netau_m.inf HKR, Ndi, FilterDeviceInfId, , ms_authenmp HKR, Ndi, Service, , Authen HKR, Ndi\Interfaces, UpperRange, , noupper HKR, Ndi\Interfaces, LowerRange, , nolower HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi, wan" [Authen.AddReg] ; The following key is Required ; The following key is Authen specific HKR, Parameters, Param1, 0, 4 ; ---------------------------------------------------------------------- [Strings] Msft = "Microsoft" DiskDescription = "Microsoft Authen Driver Disk" Authen_Desc = "Authen Driver" Authen_HELP = "Authen Driver" AuthenService_Desc = "Authen Service" |
|
|
12楼#
发布于:2007-04-02 09:25
[Version]
signature = "$Windows NT$" Class = Net ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318} Provider = %Msft% DriverVer = 06/24/1999,5.00.2071.1 [ControlFlags] ExcludeFromSelect = ms_authenmp [DestinationDirs] DefaultDestDir=12 ; No files to copy [Manufacturer] %Msft% = MSFT [MSFT] %AuthenMP_Desc% = AuthenMP.ndi, ms_authenmp [AuthenMP.ndi] Characteristics = 0x29 ;NCF_NOT_USER_REMOVABLE | NCF_VIRTUAL | NCF_HIDDEN CopyFiles = [AuthenMP.ndi.Services] AddService = Authen,0x2, AuthenMP.AddService [AuthenMP.AddService] ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL ServiceBinary = %12%\authen.sys [AuthenMP.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" AuthenMP_Desc = "Authen Miniport" [SourceDisksNames] ;None [SourceDisksFiles] ;None |
|
|
13楼#
发布于:2007-04-02 09:26
上面是两个INF,不知道问题出在哪里
|
|
|
14楼#
发布于:2007-04-02 09:28
对了,用bindview那个例子安装,所有的函数调用都是成功的,可是驱动就是没有起作用。
|
|
|
15楼#
发布于:2007-04-02 11:51
好像只完成了,gui功能,驱动并没起作用。
|
|
|
16楼#
发布于:2007-04-02 17:12
好消息,问题解决了,呵呵
|
|
|
17楼#
发布于:2007-04-02 17:13
谢谢,各位老大指点。小弟非常感谢
|
|
|
18楼#
发布于:2007-04-09 15:58
问题的原因是什么?
说说看啊 以免大家以后走弯路 |
|
19楼#
发布于:2007-04-10 16:34
主要是兼容性的问题,用2003的能支持的inf文件,在2000可能不能用,问题就处在这里。
|
|
|
上一页
下一页