FltAllocateGenericWorkItem function (fltkernel.h)

FltAllocateGenericWorkItem allocates a generic work item.

Syntax

PFLT_GENERIC_WORKITEM FLTAPI FltAllocateGenericWorkItem();

Return value

FltAllocateGenericWorkItem returns NULL if there is insufficient memory in nonpaged pool to satisfy the request. Otherwise, it returns a pointer to the allocated work item.

Remarks

FltAllocateGenericWorkItem allocates a generic work item from nonpaged pool.

To insert this work item into a work queue, call FltQueueGenericWorkItem.

To free the work item, a minifilter driver typically calls FltFreeGenericWorkItem from the worker routine that was specified in FltQueueGenericWorkItem.

Requirements

Requirement Value
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
DLL Fltmgr.sys
IRQL <= DISPATCH_LEVEL

See also

FltFreeGenericWorkItem

FltQueueGenericWorkItem