Share via


IDtcLuRecoveryInitiatedByLuWork::HandleTheirCompareStates

 

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 HandleTheirCompareStates method processes the result of comparing states with the Microsoft Distributed Transaction Coordinator (MSDTC).

Syntax

HRESULT HandleTheirCompareStates (

[in,out] unsigned char *  pRemoteTransId  ,

[in] DWORD  cbRemoteTransId  ,

[in] DTCLUCOMPARESTATE  CompareState  ,

[out] DTCLUCOMPARESTATESRESPONSE *  pResponse  ,

[out] DTCLUCOMPARESTATE *  pCompareState

);

Parameters

pRemoteTransId
[in,out] The remote transaction ID.

cbRemoteTransId
[in] The size (in bytes) of the remote transaction ID.

CompareState
[in] A DTCLUCOMPARESTATE struct that contains local information needed to compare states.

pResponse
[out] A pointer to a DTCLUCOMPARESTATESRESPONSE struct that contains the result of the state comparison.

pCompareState
[out] A pointer to a DTCLUCOMPARESTATE struct that contains remote information needed to compare states.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:

S_OK
Method completed successfully.

XACT_E_CONNECTION_DOWN
The connection is down.

Requirements

For an explanation of the requirement values, see Requirements (Component Services).

Platforms: Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Header: Declared in txdtc.h