Expand Minimize

FltGetTransactionContext routine

The FltGetTransactionContext routine retrieves a context that was set for a transaction by a given minifilter driver.

Syntax


NTSTATUS FltGetTransactionContext(
  _In_   PFLT_INSTANCE Instance,
  _In_   PKTRANSACTION Transaction,
  _Out_  PFLT_CONTEXT *Context
);

Parameters

Instance [in]

Opaque instance pointer for the caller.

Transaction [in]

Opaque transaction pointer for the transaction whose context is being retrieved.

Context [out]

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

Return value

FltGetTransactionContext 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

FltGetTransactionContext is available on Windows Vista and later.

FltGetTransactionContext 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 FltGetTransactionContext must be matched by a subsequent call to FltReleaseContext.

To set a context for a transaction, call FltSetTransactionContext.

To allocate a new transaction context, call FltAllocateContext.

To delete a transaction context, call FltDeleteTransactionContext or FltDeleteContext.

Requirements

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

IRQL

<= APC_LEVEL

See also

FltAllocateContext
FltCommitComplete
FltDeleteContext
FltDeleteTransactionContext
FltEnlistInTransaction
FltPrepareComplete
FltPrePrepareComplete
FltReleaseContext
FltRollbackComplete
FltRollbackEnlistment
FltSetTransactionContext

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft