IComTransactionEvents::OnTransactionPrepare method (comsvcs.h)

Generated when the prepare phase of the two-phase commit protocol of the transaction is completed.

Syntax

HRESULT OnTransactionPrepare(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] REFGUID          guidTx,
  [in] BOOL             fVoteYes
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] guidTx

The transaction identifier.

[in] fVoteYes

The resource managers result concerning the outcome of the prepare phase.

Return value

The user verifies the return values from this method.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IComTransactionEvents