NDK_FN_REQUEST_COMPLETION callback function

The NdkRequestCompletion (NDK_FN_REQUEST_COMPLETION) function completes a pending NDK request.

Syntax

NDK_FN_REQUEST_COMPLETION NdkFnRequestCompletion;

void NdkFnRequestCompletion(
  PVOID Context,
  NTSTATUS Status
)
{...}

Parameters

Context

The context value passed to the NDK provider when a consumer calls an asynchronous request function. The asynchronous request function provides the context with the with the NdkRequestCompletion (NDK_FN_REQUEST_COMPLETION) function pointer.

Status

The asynchronous completion status for the request. See the asynchronous request functions (for example, NDK_FN_ACCEPT) for completion status codes that can be returned for each type of request.

Return Value

None

Remarks

Many NDK requests can be completed asynchronously. Asynchronous request functions require the consumer to pass an NDK_FN_REQUEST_COMPLETION function pointer as an input. If an asynchronous request function returns STATUS_PENDING, the provider must call the NdkRequestCompletion (NDK_FN_REQUEST_COMPLETION) function to indicate completion of the request. If an asynchronous request functions returns anything other than STATUS_PENDING, the request was handled immediately and the provider must not call NdkRequestCompletion.

Requirements

   
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

NDK_FN_ACCEPT