NDK_RESULT_EX structure

The NDK_RESULT_EX structure returns the results for an NDK request operation. It is identical to the NDK_RESULT structure, except that it has additional Type and TypeSpecificCompletionOutput members.

Syntax


typedef struct _NDK_RESULT_EX {
  NTSTATUS           Status;
  ULONG              BytesTransferred;
  PVOID              QPContext;
  PVOID              RequestContext;
  NDK_OPERATION_TYPE Type;
  ULONG_PTR          TypeSpecificCompletionOutput;
} NDK_RESULT_EX, *PNDK_RESULT_EX;

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.

Type

An NDK_OPERATION_TYPE enumeration value that specifies the type of operation that is being completed.

TypeSpecificCompletionOutput

The type-specific completion output, if any. If the Type member is NdkOperationTypeReceiveAndInvalidate, this member is a 32-bit field, which contains the token to be invalidated before signaling this completion. Otherwise, this member is undefined.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012 R2

Version

Supported in NDIS 6.40 and later.

Header

Ndkpi.h (include Ndkpi.h)

See also

NDK_FN_CREATE_QP
NDK_OPERATION_TYPE
NDK_QP
NDK_RESULT

 

 

Send comments about this topic to Microsoft

显示:
© 2014 Microsoft