BOOL CNdisApi::GetAdapterPacketQueueSize (HANDLE hAdapter, PDWORD pdwSize) const;
Return Value:TRUE if call was successful, FALSE otherwise
Parameters:hAdapter
Adapter handle obtained via call to GetTcpipBoundAdaptersInfo.
pdwSize
Pointer to the DWORD variable to store the current adapter’s packet queue size.
Remarks:
The filter driver will return packet queue size for the requested interface on this request. This member calls the driver with IOCTL_NDISRD_ADAPTER_QUEUE_SIZE control code (see details below).
IOCTL_NDISRD_ADAPTER_QUEUE_SIZE
| Input Buffer | Adapter handle value |
| Input Buffer Size | sizeof(HANDLE) for a native process (4 bytes on x86, 8 bytes on x64/ARM64); sizeof(ULARGE_INTEGER) for the WOW64 conversion payload |
| Output Buffer | Number of packets in the adapters queue |
| Output Buffer Size | 4 |