ReadPacketsUnsorted

Available since: Windows Packet Filter 3.4.0

The CNdisApi::ReadPacketsUnsorted method reads a batch of network packets from multiple adapters in a single driver call. For each packet, the source adapter handle is stored in _INTERMEDIATE_BUFFER::m_hAdapter.

Syntax

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

Parameters

Packets
Array of pointers to pre-allocated INTERMEDIATE_BUFFER structures.

dwPacketsNum
Number of buffers in the array.

pdwPacketsSuccess
Pointer to a DWORD receiving the number of packets read.

Return Value

Returns TRUE on success; otherwise returns FALSE.

Remarks

Unlike Fast I/O, this method is fully supported under WOW64 and enables high-throughput multi-adapter packet processing.