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