共用方式為


IDtcToXaHelperSinglePipe::ReleaseRMCookie

 

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

The ODBC driver calls the ReleaseRMCookie method to signify that it has closed it ODBC connection to the database.

The i_fNormal flag indicates whether the ODBC database connection was closed normally. A value of TRUE indicates that the connection was closed normally and that database recovery is not needed. A value of FALSE indicates that a failure occurred and that XA recovery is needed. The DTC transaction manager will immediately attempt to initiate recovery with the database.

Syntax

  
void ReleaseRMCookie(   DWORD dwRMCookie,  BOOL fNormal);  

Parameters

dwRMCookie
[in] The cookie obtained by calling IDtcToXaHelperSinglePipe::XARMCreate.

fNormal
[in] A Boolean signifying whether the ODBC database connection was closed normally. A value of TRUE indicates that the connection was closed normally and that database recovery is not needed. A value of FALSE indicates that a failure occurred and that XA recovery is needed.

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

IDtcToXaHelper
IDtcToXaHelperFactory
IDtcToXaMapper