VOID
ExInitializeWorkItem(
IN PWORK_QUEUE_ITEM Item,
IN PWORKER_THREAD_ROUTINE Routine,
IN PVOID Context
);
ExInitializeWorkItem initializes a work-queue item with a caller-supplied context and callback routine to be queued for execution when a system worker thread is given control.
VOID (*PWORKER_THREAD_ROUTINE)( IN PVOID Parameter );
ExInitializeWorkItem initializes Item with pointers to Routine and Context and a NULL list pointer.
Highest-level drivers can call ExInitializeWorkItem.
The caller-supplied Routine is responsible for calling ExFreePool to release the storage for Item.
Callers of ExInitializeWorkItem must be running at IRQL <= DISPATCH_LEVEL.