NDISUIO Operations (Windows Embedded CE 6.0)
1/6/2010
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.
Operation | Description |
---|---|
Sends packets through bound miniport. |
|
Receives packets through bound miniport. |
|
Cancels ReadFile operations. |
|
Cancels device event notification. |
|
Returns NIC information. |
|
Retrieves adapter name and description. |
|
Retrieves NDIS object identifier values. |
|
Initiates device event notification. |
|
Sets type of Ethernet packet to be filtered. |
|
Sets 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);