SpbRequestComplete - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// spbcx.h

VOID SpbRequestComplete(
  [in] SPBREQUEST Request,
  [in] NTSTATUS   CompletionStatus
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-spbcx-spbrequestcomplete)

SpbRequestComplete function

Description

The SpbRequestComplete method completes an I/O request and supplies a completion status.

Parameters

Request [in]

An SPBREQUEST handle to the I/O request to complete. The SPB controller driver previously received this handle through one of its registered event callback functions.

CompletionStatus [in]

An NTSTATUS value that represents the completion status of the request. Valid status values include, but are not limited to, the following:

STATUS_SUCCESS

The I/O request completed successfully.

STATUS_CANCELLED

The I/O request is canceled.

STATUS_UNSUCCESSFUL

The driver encountered an error while processing the I/O request.

Remarks

Your controller driver calls this method to complete an I/O request that it previously received during one of the following callbacks:

EvtSpbControllerIoOther EvtSpbControllerIoRead EvtSpbControllerIoSequence EvtSpbControllerIoWrite Call SpbRequestComplete instead of the WdfRequestComplete method to complete I/O requests received by the callback functions in the preceding list.

A bug check occurs if the caller supplies an invalid SPBREQUEST handle.

A call to SpbRequestComplete represents the final stage in the processing of an I/O request. When this method returns, the Request handle value is no longer valid.

See also

EvtSpbControllerIoOther

EvtSpbControllerIoRead

EvtSpbControllerIoSequence

EvtSpbControllerIoWrite

SPBREQUEST

WdfRequestComplete