Share via


ITransactionOutcomeEvents::HeuristicDecision

 

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 event is raised when one of the participants in the transaction chooses to heuristically decide the outcome of the transaction.

Syntax

  
HRESULT HeuristicDecision(   DWORD dwDecision,  BOID * pboidReason,  HRESULT hr);  

Parameters

dwDecision
[in] Values from the enumeration XACTHEURISTIC.

typedef enum XACTHEURISTIC {  
    XACTHEURISTIC_ABORT,  
    XACTHEURISTIC_COMMIT,  
    XACTHEURISTIC_DAMAGE,  
    XACTHEURISTIC_DANGER,  
    } XACTHEURISTIC;  
  

pboidReason
[in] A BOID indicating why the transaction was heuristically decided. This value is provided by the party making the heuristic decision.

hr
[in] Always S_OK.

Return Values

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

S_OK
Success.

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

ITransaction