IoUninitializeWorkItem function

The IoUninitializeWorkItem routine uninitializes a work item that was initialized by IoInitializeWorkItem.

Syntax

void IoUninitializeWorkItem(
  PIO_WORKITEM IoWorkItem
);

Parameters

IoWorkItem

Pointer to the IO_WORKITEM structure to uninitialize.

Return Value

None

Remarks

Only uninitialize a work item that is not currently queued. The system dequeues a work item before it runs the work item's callback routine, so IoUninitializeWorkItem 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

   
Windows version Available in Windows Vista and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See Also

IO_WORKITEM

IoInitializeWorkItem