NDK_FN_GET_CQ_RESULTS callback function (ndkpi.h)

The NdkGetCqResults (NDK_FN_GET_CQ_RESULTS) function removes completions from an NDK completion queue (CQ) object.

Syntax

NDK_FN_GET_CQ_RESULTS NdkFnGetCqResults;

ULONG NdkFnGetCqResults(
  [in] NDK_CQ *pNdkCq,
       NDK_RESULT Results[],
  [in] ULONG nResults
)
{...}

Parameters

[in] pNdkCq

A pointer to an NDK completion queue (CQ) object (NDK_CQ).

Results[]

[in] nResults

The size, in elements, of the Results array. That is, the maximum number of completions to remove from the CQ.

Return value

The NDK_FN_GET_CQ_RESULTS function returns the number of completions that were removed from the CQ.

Zero means there were no completions in the CQ.

Remarks

NdkGetCqResults removes completions from a completion queue (CQ).

Requirements

Requirement Value
Minimum supported client None supported,Supported in NDIS 6.30 and later.
Minimum supported server Windows ServerĀ 2012
Target Platform Windows
Header ndkpi.h (include Ndkpi.h)
IRQL <=DISPATCH_LEVEL

See also

NDKPI Completion Handling Requirements

NDK_CQ

NDK_CQ_DISPATCH

NDK_RESULT