ITransactionProxy::CreateVoter method (comsvcs.h)

Provides a ballot so that a COM+ transaction context can vote on the transaction.

Syntax

HRESULT CreateVoter(
  [in]  ITransactionVoterNotifyAsync2 *pTxAsync,
  [out] ITransactionVoterBallotAsync2 **ppBallot
);

Parameters

[in] pTxAsync

An implementation of ITransactionVoterNotifyAsync2 that notifies the voter of a vote request.

[out] ppBallot

An implementation of ITransactionVoterBallotAsync2 that allows the voter to approve or veto the non-DTC transaction.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ITransactionProxy