Bewerken

Delen via


FltReferenceContext function (fltkernel.h)

FltReferenceContext increments the reference count on a context structure.

Syntax

VOID FLTAPI FltReferenceContext(
  [in] PFLT_CONTEXT Context
);

Parameters

[in] Context

Pointer to the context. This parameter is required and cannot be NULL.

Return value

None

Remarks

For more information about contexts, see About minifilter contexts.

A minifilter driver calls the FltReferenceContext routine to increment the reference count on a context structure.

After a successful call to FltReferenceContext, the caller is responsible for decrementing the reference count on the context structure by calling FltReleaseContext.

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

To allocate a new context, call FltAllocateContext.

Requirements

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

See also

FLT_CONTEXT_REGISTRATION

FltAllocateContext

FltReleaseContext