ITransactionPhase0EnlistmentAsync::GetTransaction

 

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

An application invokes the GetTransaction method to retrieve a pointer to the transaction that is associated with the Phase0 Enlistment object. This allows a phase0 participant to perform operations on the associated transaction without being required to maintain a pointer to it.

Syntax

  
      HRESULT GetTransaction( ITransaction ** ppITransaction  
);  

Parameters

ppITransaction
[out] Pointer to an address at which the caller wishes to receive a pointer to the transaction interface that is associated with the Phase0 Enlistment.

Return Values

S_OK
Success.

E_UNEXPECTED
Failure—an unexpected error occurred.

XACT_E_PROTOCOL
Failure—GetTransaction was called illegally.

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 txdtc.h

See Also

ITransactionPhase0Factory