Share via


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

WriteFile

Sends packets through bound miniport.

ReadFile

Receives packets through bound miniport.

IOCTL_CANCEL_READ

Cancels ReadFile operations.

IOCTL_NDISUIO_CANCEL_NOTIFICATION

Cancels device event notification.

IOCTL_NDISUIO_NIC_STATISTICS

Returns NIC information.

IOCTL_NDISUIO_QUERY_BINDING

Retrieves adapter name and description.

IOCTL_NDISUIO_QUERY_OID_VALUE

Retrieves NDIS object identifier values.

IOCTL_NDISUIO_REQUEST_NOTIFICATION

Initiates device event notification.

IOCTL_NDISUIO_SET_ETHER_TYPE

Sets type of Ethernet packet to be filtered.

IOCTL_NDISUIO_SET_OID_VALUE

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);

See Also

Concepts

NDISUIO Implementation

Other Resources

File Systems and Storage Management Reference