KeInitializeDpc - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID KeInitializeDpc(
  [out]          __drv_aliasesMem PRKDPC Dpc,
  [in]           PKDEFERRED_ROUTINE      DeferredRoutine,
  [in, optional] __drv_aliasesMem PVOID  DeferredContext
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-keinitializedpc)

KeInitializeDpc function

Description

The KeInitializeDpc routine initializes a DPC object, and registers a CustomDpc routine for that object.

Parameters

Dpc [out]

Pointer to a KDPC structure that represents the DPC object to initialize. The caller must allocate storage for the structure from resident memory.

DeferredRoutine [in]

Pointer to the CustomDpc routine to associate with the DPC.

DeferredContext [in, optional]

Specifies the value to pass as the DeferredContext parameter to CustomDpc.

Remarks

The caller can queue an initialized DPC with KeInsertQueueDpc. The caller also can set up a timer object associated with the initialized DPC object and queue the DPC with KeSetTimer.

Storage for the DPC object must be resident: in the device extension of a driver-created device object, in the controller extension of a driver-created controller object, or in nonpaged pool allocated by the caller.

See also

CustomDpc

KeInsertQueueDpc

KeRemoveQueueDpc

KeSetTimer