Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 2.96 KB

nf-fltkernel-fltreleasecontexts.md

File metadata and controls

85 lines (63 loc) · 2.96 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:fltkernel.FltReleaseContexts
FltReleaseContexts function (fltkernel.h)
FltReleaseContexts releases each context in a given FLT_RELATED_CONTEXTS structure.
ifsk\fltreleasecontexts.htm
ifsk
01/22/2021
FltReleaseContexts function
FltApiRef_p_to_z_697bebdc-a3c6-4d95-a97d-0de7b819d56f.xml, FltReleaseContexts, FltReleaseContexts function [Installable File System Drivers], fltkernel/FltReleaseContexts, ifsk.fltreleasecontexts
fltkernel.h
Fltkernel.h
Universal
FltMgr.lib
Fltmgr.sys
See Remarks section.
Windows
FltReleaseContexts
fltkernel/FltReleaseContexts
APIRef
kbSyntax
DllExport
fltmgr.sys
FltReleaseContexts

FltReleaseContexts function

-description

FltReleaseContexts releases each context in a given FLT_RELATED_CONTEXTS structure.

-parameters

-param Contexts [in]

Pointer to the FLT_RELATED_CONTEXTS structure.

-returns

None

-remarks

For more information about contexts, see About minifilter contexts.

FltReleaseContexts decrements the reference count on all contexts in the FLT_RELATED_CONTEXTS structure and sets all members of the structure to NULL_CONTEXT.

To get the FLT_RELATED_CONTEXTS structure for a given minifilter driver for a given I/O request, call FltGetContexts.

For more information about context reference counting, see Referencing Contexts.

Callers of FltReleaseContexts must be running at IRQL <= DISPATCH_LEVEL if all contexts were allocated from nonpaged pool. If any contexts were allocated from paged pool, callers must be running at IRQL <= APC_LEVEL.

When each context's reference count reaches zero, the context is freed immediately if the caller is running at IRQL <= APC_LEVEL. If the caller is running at IRQL DISPATCH_LEVEL, a work item is scheduled to free the context.

-see-also

FLT_CONTEXT_REGISTRATION

FLT_RELATED_CONTEXTS

FltAllocateContext

FltGetContexts

FltReleaseContext

FltReleaseContextsEx