IWDFIoRequest::Complete method

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

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: