Implement KeInitializeThreadedDpc() and export it together with KeInitializeDpc()

Este commit está contenido en:
2023-10-29 19:45:45 +01:00
padre a359c9b2e8
commit be7981f614
Se han modificado 3 ficheros con 47 adiciones y 0 borrados

Ver fichero

@@ -42,6 +42,39 @@ KeInitializeDpc(IN PKDPC Dpc,
Dpc->DpcData = NULL;
}
/**
* Initializes Deferred Procedure Call (DPC) object.
*
* @param Dpc
* Supplies a pointer to the DPC being initialized.
*
* @param DpcRoutine
* Supplies a pointer to the DPC routine being called on object removal.
*
* @param DpcContext
* Supplies a pointer to memory area containing context data for DPC routine.
*
* @return This routine does not return any value.
*
* @since NT 5.2
*/
XTAPI
VOID
KeInitializeThreadedDpc(IN PKDPC Dpc,
IN PKDEFERRED_ROUTINE DpcRoutine,
IN PVOID DpcContext)
{
/* Initialize threaded DPC */
Dpc->Type = ThreadedDpcObject;
Dpc->Number = 0;
Dpc->Importance = MediumImportance;
/* Initialize DPC routine and context data */
Dpc->DeferredContext = DpcContext;
Dpc->DeferredRoutine = DpcRoutine;
Dpc->DpcData = NULL;
}
/**
* Retires the expired DPC objects found in the DPC list.
*