ITransaction::GetTransactionInfo

Returns information about a transaction.

Syntax

HRESULT GetTransactionInfo ( XACTTRANSINFO* pinfo )

where

pinfo
[out] Is the pointer to the XACTTRANSINFO structure that was allocated by the caller. This structure will receive information about the transaction. Must not be NULL.

The XACTTRANSINFO structure is defined as follows:

typedef struct XACTTRANSINFO
{
XACTUOW uow;
ISOLEVEL isoLevel;
ULONG isoFlags;
DWORD grfTCSupported;
DWORD grfRMSupported;
DWORD grfTCSupportedRetaining;
DWORD grfRMSupportedRetaining;
}    XACTTRANSINFO;

The XACTTRANSINFO members are described below.
Member Description
uow Is the unit of work that is associated with this transaction.
isoLevel Is the isolation level that is associated with this transaction object. ISOLATIONLEVEL_UNSPECIFIED indicates that no isolation level was specified.
isoFlags Will be set to zero (0).
grfTCSupported This bit mask indicates which grfTC flags are supported by the current version of MS DTC. The application can set one or more of these grfTC flags when calling ITransaction::Commit.
grfRMSupported Will be set to zero (0).
grfTCSupportedRetaining Will be set to zero (0).
grfRMSupportedRetaining Will be set to zero (0).

Returns

S_OK
Indicates succeeded.
XACT_E_NOTRANSACTION
Indicates unable to retrieve information for the transaction, because it was already complete. No information is returned.
E_UNEXPECTED
Indicates an unexpected error has occurred. No information is returned.
E_INVALIDARG
Indicates the value of pinfo was NULL. No information is returned.