Previous Next

CustomTimerDPC

The CustomTimerDpc routine executes after a timer object's time interval expires.

VOID
  CustomTimerDPC(
    IN struct _KDPC  *Dpc,
    IN PVOID  DeferredContext,
    IN PVOID  SystemArgument1,
    IN PVOID  SystemArgument2
    );

Parameters

Dpc
Caller-supplied pointer to a KDPC structure, which represents the DPC object associated with this CustomTimerDpc routine.
DeferredContext
Caller-supplied pointer to driver-defined context information, specified in a previous call to KeInitializeDpc.
SystemArgument1
Not used.
SystemArgument2
Not used.

Return Value

None

Comments

A driver's CustomTimerDpc routine executes in a DPC context, at IRQL = DISPATCH_LEVEL.

To create a DPC object and register a CustomTimerDpc routine for that object, a driver must call KeInitializeDPC.

To queue a CustomTimerDpc routine for execution, a driver routine must call KeSetTimer or KeSetTimerEx, supplying a DPC object pointer returned by KeInitializeDPC. The system calls the CustomTimerDpc routine when the timer interval expires.

For more information about CustomTimerDpc routines, see Timer Objects and DPCs.