TmIsTransactionActive - NtDoc

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

BOOLEAN TmIsTransactionActive(
  [in] PKTRANSACTION Transaction
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-tmistransactionactive)

TmIsTransactionActive function

Description

The TmIsTransactionActive routine indicates whether a specified transaction is in its active state.

Parameters

Transaction [in]

A pointer to a transaction object. To obtain this pointer, your component must call ObReferenceObjectByHandle and supply the object handle that a previous call to ZwCreateTransaction or ZwOpenTransaction provided.

Return value

TmIsTransactionActive returns TRUE if the specified transaction is in its active state. Otherwise, the routine returns FALSE.

Remarks

When a transaction is created, it enters its active state and remains in that state until the pre-prepare/prepare/commit sequence begins.

For more information about TmIsTransactionActive, and for information about when to use KTM's Tm*Xxx* routines instead of Zw*Xxx* routines, see Using TmXxx Routines.

See also

ObReferenceObjectByHandle

ZwCreateTransaction

ZwOpenTransaction