执行wdk中的ndisprot遇到的问题



NDIS驱动不能直接加载使用,
这是WDK的帮助里NDISPROT的安装和使用说明:

INSTALLATION
The driver is installed using the INF file ndisprot.inf, which is provided in the driver directory. In Network Connections UI, select an adapter and open Properties.

Click Install, then Protocol, then Add, and then Have disk. Then point to the location of the .inf and driver.

Select Sample NDIS Protocol Driver and click OK. After installing the protocol, copy over the test application uiotest.exe to a convenient location. Please note that the driver service has been set to manual start in the INF file. As a result, it doesn't get loaded automatically when you install.

USAGE
To start the driver, type

          Net start ndisprot

 

To stop the driver, type

          Net stop ndisprot

 

To test the driver, run uiotest. For help on usage, run uiotest -?

 

usage: UIOTEST [options] <devicename>
options:
       -e: Enumerate devices
       -r: Read
       -w: Write (default)
       -l <length>: length of each packet (default: 100)
       -n <count>: number of packets (defaults to infinity)
       -m <MAC address> (defaults to local MAC)


1)使用-e 参数时 fail to open \\.\\NdisProt:先要执行net start ndisprot 开启服务

2)使用-w参数:UIOTEST  -w \DEVICE\{56730141-D8BB-4B9C-9D81-77388BDF0A18}

      DoWriteProc: sent 100 bytes
     DoWriteProc: sent 100 bytes


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值