NDK_FN_REQUEST_COMPLETION callback function (ndkpi.h)
The NdkRequestCompletion (NDK_FN_REQUEST_COMPLETION) function completes a pending NDK request.
Syntax
NDK_FN_REQUEST_COMPLETION NdkFnRequestCompletion;
void NdkFnRequestCompletion(
[in, optional] PVOID Context,
[in] NTSTATUS Status
)
{...}
Parameters
[in, optional] 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.
[in] 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
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 |