NDK_FN_REQUEST_COMPLETION routine

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

Syntax


NDK_FN_REQUEST_COMPLETION NdkRequestCompletion;

VOID NdkRequestCompletion(
  _In_opt_ PVOID    Context,
  _In_     NTSTATUS Status
)
{ ... }

Parameters

Context [in, optional]

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 [in]

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

Minimum supported server

Windows Server 2012

Target platform

Desktop

Version

Supported in NDIS 6.30 and later.

Header

Ndkpi.h (include Ndkpi.h)

IRQL

<=DISPATCH_LEVEL

See also

NDK_FN_ACCEPT

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft