The IoFreeWorkItem routine frees a work item that was allocated by IoAllocateWorkItem.
NTKERNELAPI VOID IoFreeWorkItem( __drv_freesMem(Mem)PIO_WORKITEM IoWorkItem );
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.
|Windows version||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|