KeInitializeThreadedDpc function (wdm.h)

The KeInitializeThreadedDpc routine initializes a threaded DPC object, and registers a CustomThreadedDpc routine for that object.

Syntax

void KeInitializeThreadedDpc(
  [out]          PRKDPC             Dpc,
  [in]           PKDEFERRED_ROUTINE DeferredRoutine,
  [in, optional] PVOID              DeferredContext
);

Parameters

[out] Dpc

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

[in] DeferredRoutine

Pointer to the CustomThreadedDpc routine to associate with the DPC.

[in, optional] DeferredContext

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

Return value

None

Remarks

For more information about threaded DPCs, see Introduction to Threaded DPCs.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

CustomThreadedDpc

KeInsertQueueDpc

KeRemoveQueueDpc