ITransaction::GetTransactionInfo

This method returns information regarding a transaction object.

HRESULT     GetTransactionInfo (
[out] XACTTRANSINFO *
pinfo)

Parameters

pinfo [out]
Pointer to the caller allocated XACTTRANSINFO structure which will receive information about the transaction. Must not be NULL.

XACTTRANSINFO is defined as follows:

typedef struct XACTTRANSINFO {
XACTUOW  uow;
ISOLEVEL isoLevel;
ULONG    isoFlags;
DWORD    grfTCSupported;
DWORD    grfRMSupported;
DWORD    grfTCSupportedRetaining;
DWORD    grfRMSupportedRetaining;
} XACTTRANSINFO;
Element Description
uow The unit of work associated with this transaction.
isoLevel The isolation level associated with this transaction object. ISOLATIONLEVEL_UNSPECIFIED indicates that no isolation level was specified.
isoFlags Will be zero.
grfTCSupported This bit mask indicates which grfTC flags that this transaction implementation supports.
grfRMSupported Will be zero.
grfTCSupportedRetaining Will be zero.
grfRMSupportedRetaining Will be zero.

Return Values

S_OK
Success.

XACT_E_NOTRANSACTION
Unable to retrieve information for the transaction because it was already completed. No information is returned.

E_UNEXPECTED
An unknown error occurred. No information is returned.

E_INVALIDARG
The value of pinfo was NULL.