Bewerken

Delen via


TmGetTransactionId function (wdm.h)

The TmGetTransactionId routine retrieves a transaction object's unit of work (UOW) identifier.

Syntax

void TmGetTransactionId(
  [in]  PKTRANSACTION Transaction,
  [out] PUOW          TransactionId
);

Parameters

[in] Transaction

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.

[out] TransactionId

A pointer to a location that receives the transaction object's UOW identifier.

Return value

None

Remarks

For information about when to use KTM's TmXxx routines instead of ZwXxx routines, see Using TmXxx Routines.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later operating system versions.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

ObReferenceObjectByHandle

ZwCreateTransaction

ZwOpenTransaction

ZwQueryInformationTransaction