Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

IoQueueWorkItemEx routine

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

Syntax


VOID IoQueueWorkItemEx(
  _In_     PIO_WORKITEM            IoWorkItem,
  _In_     PIO_WORKITEM_ROUTINE_EX WorkerRoutine,
  _In_     WORK_QUEUE_TYPE         QueueType,
  _In_opt_ PVOID                   Context
);

Parameters

IoWorkItem [in]

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

WorkerRoutine [in]

Pointer to a WorkItemEx 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 WorkItemEx.

Return value

None

Remarks

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

Requirements

Target platform

Universal

Version

Available in Windows Vista and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

See also

IO_WORKITEM
IoAllocateWorkItem
IoInitializeWorkItem
IoQueueWorkItem
WorkItemEx

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft