SendPacketsToMstcpUnsorted

Available since: Windows Packet Filter 3.4.0

The CNdisApi::SendPacketsToMstcpUnsorted method injects a batch of packets toward the OS network stack across multiple adapters.

Syntax

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

Compatibility: This method is unavailable under WOW64 and returns FALSE in that case. Use the ordinary per-adapter packet send methods under WOW64.

Native SDK 3.6.2 output count

Use the output count only when the function returns TRUE. On the IOCTL path, the SDK copies request.packets_num into the output variable before returning, including on FALSE. If the driver has not changed that field, it still contains the requested packet count and is not evidence of successful processing.

The WOW64 precheck returns FALSE before writing the output count and does not set a new last-error value. Initialize your count if needed and check the Boolean before using it. See the pinned read/send implementations.