Download EaseFilter Filter Driver SDK Setup File Download EaseFilter Filter Driver SDK Zip File
FltDeleteContext marks a specified context for deletion.
VOID FLTAPI FltDeleteContext( PFLT_CONTEXT Context );
Context
A pointer to the context to delete. This parameter is required and cannot be NULL.
None.
Because contexts are reference-counted, it is not usually necessary for a minifilter driver to call a routine, such as FltDeleteContext, to explicitly delete a context.
FltDeleteContext marks a context for deletion. The context is usually freed as soon as the current reference on it is released, unless there is an outstanding reference on it (for example, because the context is still being used by another thread).
You should consider the following items when you use FltDeleteContext:
Context Type | Delete-Context Routine |
---|---|
FLT_FILE_CONTEXT | FltDeleteFileContext (Windows Vista and later only.) |
FLT_INSTANCE_CONTEXT | |
FLT_SECTION_CONTEXT | FltCloseSectionForDataScan (Windows 8 and later only.) |
FLT_STREAM_CONTEXT | |
FLT_STREAMHANDLE_CONTEXT | |
FLT_TRANSACTION_CONTEXT | FltDeleteTransactionContext (Windows Vista and later only.) |
FLT_VOLUME_CONTEXT |
To allocate a new context, call FltAllocateContext.
To increment the reference count on a context, call FltReferenceContext.
To decrement the reference count on a context, call FltReleaseContext.
A section context, FLT_SECTION_CONTEXT type, must not be deleted using FltDeleteContext. Instead, use FltReleaseContext to deallocate a section context.
Target Platform | Universal |
Header | fltkernel.h (include Fltkernel.h) |
Library | FltMgr.lib |
DLL | Fltmgr.sys |
IRQL | <= APC_LEVEL |