ReadPacketsUnsorted

BOOL __stdcall ReadPacketsUnsorted( HANDLE hOpen, 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.

Return Value:
TRUE if call was successful, FALSE otherwise

Parameters:
hOpen
Specifies driver object open handle.

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 is a C-wrapper for CNdisApi::ReadPacketsUnsorted.