COM+ トランザクション コンテキストがトランザクションに投票できるように、投票用紙を提供します。
構文
HRESULT CreateVoter(
[in] ITransactionVoterNotifyAsync2 *pTxAsync,
[out] ITransactionVoterBallotAsync2 **ppBallot
);
パラメーター
[in] pTxAsync
投票者に投票要求を通知する ITransactionVoterNotifyAsync2 の実装。
[out] ppBallot
投票者が DTC 以外のトランザクションを承認または拒否できるようにする ITransactionVoterBallotAsync2 の実装。
戻り値
このメソッドは、標準の戻り値E_INVALIDARG、E_OUTOFMEMORY、E_UNEXPECTED、およびS_OKを返すことができます。
要件
| サポートされている最小のクライアント | WINDOWS XP と SP2 [デスクトップ アプリのみ] |
| サポートされている最小のサーバー | Windows Server 2003 SP1 [デスクトップ アプリのみ] |
| 対象プラットフォーム | Windows |
| ヘッダー | comsvcs.h |