Bewerken

Delen via


IRequestCallbackRequestCompletion::OnCompletion method (wudfddi.h)

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The OnCompletion method completes the specified request.

Syntax

void OnCompletion(
  [in] IWDFIoRequest               *pWdfRequest,
  [in] IWDFIoTarget                *pIoTarget,
  [in] IWDFRequestCompletionParams *pParams,
  [in] void                        *pContext
);

Parameters

[in] pWdfRequest

A pointer to the IWDFIoRequest interface that represents the framework request object.

[in] pIoTarget

A pointer to the IWDFIoTarget interface for the I/O target object that represents the lower driver in the stack where the request was previously sent.

[in] pParams

A pointer to the IWDFRequestCompletionParams interface for the parameters object for the completion request.

[in] pContext

A pointer to a buffer that contains context information that is related to the completion request.

Return value

None

Remarks

A driver registers the IRequestCallbackRequestCompletion interface when the driver calls the IWDFIoRequest::SetCompletionCallback method.

Requirements

Requirement Value
Target Platform Windows
Header wudfddi.h (include Wudfddi.h)

See also

IRequestCallbackRequestCompletion

IWDFIoRequest

IWDFIoRequest::SetCompletionCallback

IWDFIoTarget

IWDFRequestCompletionParams