usage: wn [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)
-f Use a fake address to send out the packets.
[QUOTE=摸奶赏月;1248746]我猜也是我的弱智错误,编译和加载驱动都没有问题,然后用uiotest的时候,打开cmd到当前目录,然后输入uiotest -e,没有反应输入uiotest -[其他选项]的时候就是显示fail to open XXX,不知道是不是我uiotest使用错误[/QUOTE]
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)