FltGetInstanceContext
TOC
Collapse the table of content
Expand the table of content

FltGetInstanceContext routine

The FltGetInstanceContext routine retrieves a context that was set for an instance by a given minifilter driver.

Syntax


NTSTATUS FltGetInstanceContext(
  _In_  PFLT_INSTANCE Instance,
  _Out_ PFLT_CONTEXT  *Context
);

Parameters

Instance [in]

Opaque instance pointer for the instance.

Context [out]

Pointer to a caller-allocated variable that receives the address of the instance context.

Return value

FltGetInstanceContext returns STATUS_SUCCESS or an appropriate NTSTATUS value, such as the following:

Return codeDescription
STATUS_NOT_FOUND

No matching context was found. This is an error code.

 

Remarks

FltGetInstanceContext retrieves a context that was set for an instance by a given minifilter driver.

FltGetInstanceContext increments the reference count on the context that the Context parameter points to. When this context pointer is no longer needed, the caller must decrement its reference count by calling FltReleaseContext. Thus every successful call to FltGetInstanceContext must be matched by a subsequent call to FltReleaseContext.

To set a context for an instance, call FltSetInstanceContext.

To allocate a new context, call FltAllocateContext.

To delete an instance context, call FltDeleteInstanceContext or FltDeleteContext.

Requirements

Target platform

Universal

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

DLL

Fltmgr.sys

IRQL

<= APC_LEVEL

See also

FltAllocateContext
FltDeleteContext
FltDeleteInstanceContext
FltReleaseContext
FltSetInstanceContext

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft