FltGetTransactionContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// fltkernel.h

NTSTATUS FLTAPI FltGetTransactionContext(
  [in]  PFLT_INSTANCE Instance,
  [in]  PKTRANSACTION Transaction,
  [out] PFLT_CONTEXT  *Context
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-fltkernel-fltgettransactioncontext)

FltGetTransactionContext function

Description

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

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 code Description
STATUS_NOT_FOUND No matching context was found. This is an error code.

Remarks

For more information about contexts, see About minifilter contexts.

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.

See also

FltAllocateContext

FltCommitComplete

FltDeleteContext

FltDeleteTransactionContext

FltEnlistInTransaction

FltPrePrepareComplete

FltPrepareComplete

FltReleaseContext

FltRollbackComplete

FltRollbackEnlistment

FltSetTransactionContext