IoQueueWorkItem - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID IoQueueWorkItem(
  [in]           __drv_aliasesMem PIO_WORKITEM IoWorkItem,
  [in]           PIO_WORKITEM_ROUTINE          WorkerRoutine,
  [in]           WORK_QUEUE_TYPE               QueueType,
  [in, optional] __drv_aliasesMem PVOID        Context
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-ioqueueworkitem)

IoQueueWorkItem function

Description

The IoQueueWorkItem routine associates a WorkItem routine with a work item, and it inserts the work item into a queue for later processing by a system worker thread.

Parameters

IoWorkItem [in]

Pointer to an IO_WORKITEM structure that was allocated by IoAllocateWorkItem or initialized by IoInitializeWorkItem.

WorkerRoutine [in]

Pointer to a WorkItem routine.

QueueType [in]

Specifies a WORK_QUEUE_TYPE value that stipulates the type of system worker thread to handle the work item. Drivers must specify DelayedWorkQueue.

Context [in, optional]

Specifies driver-specific information for the work item. The system passes this value as the Context parameter to WorkItem.

Remarks

For more information about work items, see System Worker Threads.

See also

IO_WORKITEM

IoAllocateWorkItem

IoQueueWorkItemEx

WorkItem