// wdm.h
VOID TmGetTransactionId(
[in] PKTRANSACTION Transaction,
[out] PUOW TransactionId
);
View the official Windows Driver Kit DDI referenceNo description available.
The TmGetTransactionId routine retrieves a transaction object's unit of work (UOW) identifier.
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.
TransactionId [out]A pointer to a location that receives the transaction object's UOW identifier.
For information about when to use KTM's Tm*Xxx* routines instead of Zw*Xxx* routines, see Using TmXxx Routines.