IWDFIoRequest::Complete method

[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 Complete method completes an I/O request.

Syntax


void Complete(
  [in] HRESULT CompletionStatus
);

Parameters

CompletionStatus [in]

A status value to complete the request with.

Return value

None

Remarks

Instead of calling Complete, the driver can call the IWDFIoRequest::CompleteWithInformation method.

For more information about completing an I/O request, see Completing I/O Requests.

Examples

The following code example completes a request with the failure that occurred when a memory object could not be retrieved.


    IWDFIoRequest* FxRequest;
    HRESULT hr = S_OK;
    IWDFMemory* FxInputMemory = NULL;
 
    FxRequest->GetInputMemory(&FxInputMemory);
    if (S_OK != hr) {
        FxRequest->Complete(hr);
    }

Requirements

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFIoRequest
IWDFIoRequest::CompleteWithInformation

 

 

Send comments about this topic to Microsoft

Show: