// spbcx.h
VOID SpbRequestComplete(
[in] SPBREQUEST Request,
[in] NTSTATUS CompletionStatus
);
View the official Windows Driver Kit DDI referenceNo description available.
The SpbRequestComplete method completes an I/O request and supplies a completion status.
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:
The I/O request completed successfully.
The I/O request is canceled.
The driver encountered an error while processing the I/O request.
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.