ReadPacketsUnsorted

BOOL CNdisApi::ReadPacketsUnsorted ( PINTERMEDIATE_BUFFER* Packets, DWORD dwPacketsNum, PDWORD pdwPacketsSuccess );

Reads any available packets from the driver packets queue. Adapter handle for each packet is available in INTERMEDIATE_BUFFER::m_hAdapter field.

Return Value:
TRUE if call was successful, FALSE otherwise

Parameters:
Packets
Pointer to the user allocated array of INTERMEDIATE_BUFFER pointers.

dwPacketsNum
Number of packets in the array above.

pdwPacketsSuccess
Returns number of packets successfully read from the driver.

Available starting version 3.2.20. Fast I/O is supported for Windows Vista and later. WOW64 mode is not supported.

Remarks:

This member calls driver with IOCTL_NDISRD_READ_PACKETS_UNSORTED control code (see details below).

IOCTL_NDISRD_READ_PACKETS_UNSORTED

Input Buffer UNSORTED_READ_SEND_REQUEST
Input Buffer Size sizeof (UNSORTED_READ_SEND_REQUEST)
Output Buffer UNSORTED_READ_SEND_REQUEST
Output Buffer Size sizeof (UNSORTED_READ_SEND_REQUEST)