KsReleaseIrpOnCancelableQueue function (ks.h)

The KsReleaseIrpOnCancelableQueue function releases an acquired IRP that is already on a queue that can be canceled. The function sets the cancel function and completes the canceling of the IRP, if necessary. The function can be called at IRQ level DISPATCH_LEVEL or lower.

Syntax

KSDDKAPI VOID KsReleaseIrpOnCancelableQueue(
  [in]           PIRP           Irp,
  [in, optional] PDRIVER_CANCEL DriverCancel
);

Parameters

[in] Irp

Specifies the IRP to release.

[in, optional] DriverCancel

Optional parameter that specifies the cancel routine to use. If this is NULL, the standard KsCancelRoutine is used.

Return value

None

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib