NDISUIO Operations

 
Platform Builder for Microsoft Windows CE 5.0
NDISUIO Operations
Send Feedback

Once a file handle is successfully associated with a network device, the application has full access to NDISUIO operations. The following table shows the operations available after a successful return of IOCTL_NDISUIO_OPEN_DEVICE.

OperationDescription
WriteFileSends packets through bound miniport.
ReadFileReceives packets through bound miniport.
IOCTL_CANCEL_READCancels ReadFile operations.
IOCTL_NDISUIO_CANCEL_NOTIFICATIONCancels device event notification.
IOCTL_NDISUIO_NIC_STATISTICSReturns NIC information.
IOCTL_NDISUIO_QUERY_BINDINGRetrieves adapter name and description.
IOCTL_NDISUIO_QUERY_OID_VALUERetrieves NDIS object identifier values.
IOCTL_NDISUIO_REQUEST_NOTIFICATIONInitiates device event notification.
IOCTL_NDISUIO_SET_ETHER_TYPESets type of Ethernet packet to be filtered.
IOCTL_NDISUIO_SET_OID_VALUESets NDIS object identifiers.

Each IOCTL uses the file handle returned by CreateFile to indicate the target network device. The following example, using hAdapter to represent the file handle, shows how to use IOCTL_NDISUIO_QUERY_BINDING.

CHAR          Buf[1024];
DWORD      dwReturnedBytes;
PNDISUIO_QUERY_BINDING      pQueryBinding;

pQueryBinding = (PNDISUIO_QUERY_BINDING)Buf;
DeviceIoControl(
     hAdapter, 
         IOCTL_NDISUIO_QUERY_BINDING,
     pQueryBinding,
     sizeof(NDISUIO_QUERY_BINDING),
     NULL,
     1024,
     &dwReturnedBytes,
     NULL);
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值