KeRemoveQueueDpc

BOOLEAN
    KeRemoveQueueDpc(

        IN PKDPC  Dpc
        );

KeRemoveQueueDpc removes a given DPC object from the system DPC queue.

Parameters

Dpc
Points to an initialized DPC object that was queued by calling KeInsertQueueDpc.

Return Value

KeRemoveQueueDpc returns TRUE if the DPC object is in the DPC queue. If the given DPC object is not currently in the DPC queue, no operation is performed and FALSE is returned.

Comments

If the given DPC object is currently queued, it is removed from the queue, canceling a call to the associated DPC routine.

Callers of KeRemoveQueueDpc can be running at any IRQL.

See Also

KeInitializeDpc, KeInsertQueueDpc