The KeInitializeDpc routine initializes a DPC object, and registers a CustomDpc routine for that object.
void KeInitializeDpc( __drv_aliasesMem PRKDPC Dpc, PKDEFERRED_ROUTINE DeferredRoutine, __drv_aliasesMem PVOID DeferredContext );
Pointer to a KDPC structure that represents the DPC object to initialize. The caller must allocate storage for the structure from resident memory.
Pointer to the CustomDpc routine to associate with the DPC.
Specifies the value to pass as the DeferredContext parameter to CustomDpc.
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.
|Minimum supported client||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|