Share via


IDtcToXaHelper::Close

 

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

Closes the connection between the resource manager proxy and the DTC transaction manager thereby signifying that the resource manager proxy has closed its connection to the resource manager.

Syntax

  
HRESULT Close (   BOOL fDoRecovery);  

Parameters

fDoRecovery
[in] Boolean indicating whether the DTC XA transaction manager must initiate XA recovery with the resource manager. TRUE indicates that the DTC transaction manager should initiate recovery. FALSE indicates that this resource manager does not require recovery.

Return Values

S_OK
Success.

E_FAIL
The attempt to close the connection to the DTC transaction manager was unsuccessful.

E_UNEXPECTED
An unexpected error occurred.

XACT_E_CONNECTION_DOWN
Lost connection with DTC transaction manager.

XACT_E_CONNECTION_DENIED
The transaction manager refused to accept a connection.

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

See Also

IDtcToXaMapper
IDtcToXaHelperFactory
IDtcToXaHelperSinglePipe