Export (0) Print
Expand All
Expand Minimize

IoFreeWorkItem routine

The IoFreeWorkItem routine frees a work item that was allocated by IoAllocateWorkItem.

Syntax


VOID IoFreeWorkItem(
  _In_  PIO_WORKITEM IoWorkItem 
);

Parameters

IoWorkItem [in]

Pointer to an IO_WORKITEM structure that was returned by a previous call to IoAllocateWorkItem.

Return value

None

Remarks

Only free a work item that is not currently queued. The system dequeues a work item before it runs the work item's callback routine, so IoFreeWorkItem can be called from within the WorkItem or WorkItemEx routine for the work item.

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

Requirements

Version

Available starting with Windows 2000.

Header

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

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

See also

IO_WORKITEM
IoAllocateWorkItem

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft