Condividi tramite


ITransaction::GetTransactionInfo

 

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

This method returns information regarding a transaction object.

Syntax

  
HRESULT GetTransactionInfo(   XACTTRANSINFO * pinfo);  

Parameters

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

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.

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

ITransaction2
ITransactionImport
ITransactionDispenser