TdiCompleteRequest

VOID
    TdiCompleteRequest(
        IN PIRP  Irp,
        IN NTSTATUS  Status
        );

TdiCompleteRequest completes a given IRP with a transport-supplied status.

Parameters

Irp
Points to the IRP to be completed.
Status
Specifies the final status of the request.

Comments

TdiCompleteRequest sets the given Status value in the IoStatus.Status member of the given IRP and completes the IRP with the system-defined IO_NETWORK_INCREMENT priority boost to the thread that originally made the I/O request. Consequently, transports usually call TdiCompleteRequest with STATUS_SUCCESS, because IRPs to be failed with an error status should be completed with IO_NO_INCREMENT as the PriorityBoost passed to IoCompleteRequest.

Only transports call TdiCompleteRequest.

Callers of TdiCompleteRequest run at IRQL <= DISPATCH_LEVEL.

See Also

TdiDispatchCleanup, TdiDispatchClose, TdiDispatchCreate, TdiDispatchDeviceControl, TdiDispatchInternalDeviceControl