NDK_RESULT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndkpi.h

typedef struct _NDK_RESULT {
  NTSTATUS Status;
  ULONG    BytesTransferred;
  PVOID    QPContext;
  PVOID    RequestContext;
} NDK_RESULT;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ndkpi-_ndk_result)

_NDK_RESULT structure

Description

The NDK_RESULT structure returns the results for an NDK request operation.

Members

Status

The NDK request completion status.

BytesTransferred

The number of bytes transferred. The value of this member is valid only for NdkReceive (NDK_FN_RECEIVE) request completions. The member is undefined for all other NDK request completions.

QPContext

A context value for all requests that are posted over a queue pair (QP). The NDK consumer specified this pointer when it called the NdkCreateQp (NDK_FN_CREATE_QP) function to create the NDK_QP object.

RequestContext

A request context value specified by the NDK consumer when a request is posted.

Remarks

The NdkGetCqResults (NDK_FN_GET_CQ_RESULTS) function gets an array of NDK_RESULT structures that are filled with completion results that were removed from the CQ.

See also

NDK_FN_CREATE_QP

NDK_FN_GET_CQ_RESULTS

NDK_FN_RECEIVE