Share via


TdiCompleteRequest macro

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

Syntax

VOID TdiCompleteRequest(
  [in] PIRP     Irp,
  [in] NTSTATUS Status
);

Parameters

  • Irp [in]
    Pointer to the IRP to be completed.

  • Status [in]
    Specifies the final status of the request.

Return value

None

Remarks

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.

Note   The TDI feature is deprecated and will be removed in future versions of Microsoft Windows. Depending on how you use TDI, use either the Winsock Kernel (WSK) or Windows Filtering Platform (WFP). For more information about WFP and WSK, see Windows Filtering Platform and Winsock Kernel. For a Windows Core Networking blog entry about WSK and TDI, see Introduction to Winsock Kernel (WSK).

 

Requirements

Target platform

Desktop

Header

Tdikrnl.h (include TdiKrnl.h)

IRQL

<= DISPATCH_LEVEL

See also

TdiDispatchCleanup

TdiDispatchClose

TdiDispatchCreate

TdiDispatchDeviceControl

TdiDispatchInternalDeviceControl

 

 

Send comments about this topic to Microsoft