SetTransactionInformation function (ktmw32.h)

Sets the transaction information for the specified transaction.


BOOL SetTransactionInformation(
  [in]           HANDLE TransactionHandle,
  [in, optional] DWORD  IsolationLevel,
  [in, optional] DWORD  IsolationFlags,
  [in, optional] DWORD  Timeout,
  [in, optional] LPWSTR Description


[in] TransactionHandle

A handle to the transaction. The handle must have the TRANSACTION_SET_INFORMATION permission to set the transaction information.

[in, optional] IsolationLevel

Reserved; specify zero.

[in, optional] IsolationFlags


[in, optional] Timeout

The timeout value, in milliseconds, for this transaction.

[in, optional] Description

The user-defined description of this transaction.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is 0 (zero). To get extended error information, call the GetLastError function.

The following list identifies the possible error codes:


Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ktmw32.h
Library Ktmw32.lib
DLL Ktmw32.dll

See also



Kernel Transaction Manager Functions