SetTransactionInformation function

Sets the transaction information for the specified transaction.

Syntax


BOOL WINAPI SetTransactionInformation(
  _In_      HANDLE TransactionHandle,
  _In_opt_  DWORD IsolationLevel,
  _In_opt_  DWORD IsolationFlags,
  _In_opt_  DWORD Timeout,
  _In_opt_  LPWSTR Description
);

Parameters

TransactionHandle [in]

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

IsolationLevel [in, optional]

Reserved; specify zero.

IsolationFlags [in, optional]

Reserved.

Timeout [in, optional]

The timeout value, in milliseconds, for this transaction.

Description [in, optional]

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:

ERROR_ACCESS_DENIED
ERROR_INVALID_HANDLE
ERROR_INSUFFICIENT_RESOURCES
ERROR_TRANSACTION_ALREADY_ABORTED

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ktmw32.h

Library

Ktmw32.lib

DLL

Ktmw32.dll

See also

CreateTransaction
GetTransactionInformation
Kernel Transaction Manager Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft