// wdm.h
BOOLEAN TmIsTransactionActive(
[in] PKTRANSACTION Transaction
);
View the official Windows Driver Kit DDI referenceNo description available.
The TmIsTransactionActive routine indicates whether a specified transaction is in its active state.
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.
TmIsTransactionActive returns TRUE if the specified transaction is in its active state. Otherwise, the routine returns FALSE.
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.