我的问题是CREATEFILE OK。。然后在IOCTL_NDISUIO_OPEN_DEVICE的时候出错,错误ID 31:连到系统上的设备没有发挥作用
然后我试试改改,把sizeof(szEthName)改掉,改成1024. OPEN_DEVICE又OK了。
但是这里,在说明文档里说了:
lpInBuffer
[in] Points to the adapter name that will be associated with the file handle.
nInBufferSize
[in] Size, in bytes, of the buffer pointed to by lpInBuffer. This value should be the size of the adapter name only. The NULL character should be disregarded.