Delen via


XACTOPT

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The XACTOPT structure contains information for a transaction options object.

Syntax

#define MAX_TRAN_DESC 40  
typedef struct XACTOPT {    ULONG ulTimeout;    char szDescription[MAX_TRAN_DESC];} XACTOPT;  

Members

ulTimeout
This parameter limits the duration of the transaction and therefore bounds the amount of time that locks are held on database records and system resources. If the time-out period expires before the transaction commits, the DTC automatically aborts the transaction. The time-out is specified in milliseconds. A time-out value of zero indicates no time-out.

szDescription
A textual description for a transaction. The description is displayed by the DTC administration tool in the DTC Transactions window. The description is meaningful only to the DTC administrator and is not processed or interpreted by the DTC itself.

Requirements

For an explanation of the requirement values, see Requirements (Component Services).

Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista

Header: Declared in transact.h

See Also

ITransactionOptions