ホーム › System.ComponentServices › ITransactionProxy
ITransactionProxy
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT Commit(GUID guid)
| guid | GUID | in | コミットするトランザクションを識別する GUID である。 |
vtbl 4 HRESULT Abort()
vtbl 5 HRESULT Promote(ITransaction** pTransaction)
| pTransaction | ITransaction** | out | ローカルトランザクションを昇格させて得た分散トランザクションの ITransaction インターフェイスを受け取るポインタへのポインタである。 |
vtbl 6 HRESULT CreateVoter(ITransactionVoterNotifyAsync2* pTxAsync, ITransactionVoterBallotAsync2** ppBallot)
| pTxAsync | ITransactionVoterNotifyAsync2* | in | 投票通知を受け取る ITransactionVoterNotifyAsync2 インターフェイスへのポインタである。 |
| ppBallot | ITransactionVoterBallotAsync2** | out | 作成された投票用の ITransactionVoterBallotAsync2 インターフェイスを受け取るポインタへのポインタである。 |
| __MIDL__ITransactionProxy0000 | INT* | inout | トランザクションの分離レベルを受け取る整数へのポインタである。 |
vtbl 8 HRESULT GetIdentifier(GUID* pbstrIdentifier)
| pbstrIdentifier | GUID* | inout | トランザクションを識別する GUID を受け取るポインタである。 |
| pfIsReusable | BOOL* | inout | トランザクションが再利用可能かどうかを受け取る BOOL へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITransactionProxy "{02558374-DF2E-4DAE-BD6B-1D5C994F9BDC}" #usecom global ITransactionProxy IID_ITransactionProxy "{}" #comfunc global ITransactionProxy_Commit 3 int #comfunc global ITransactionProxy_Abort 4 #comfunc global ITransactionProxy_Promote 5 sptr #comfunc global ITransactionProxy_CreateVoter 6 sptr,sptr #comfunc global ITransactionProxy_GetIsolationLevel 7 var #comfunc global ITransactionProxy_GetIdentifier 8 var #comfunc global ITransactionProxy_IsReusable 9 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITransactionProxy "{02558374-DF2E-4DAE-BD6B-1D5C994F9BDC}" #usecom global ITransactionProxy IID_ITransactionProxy "{}" #comfunc global ITransactionProxy_Commit 3 int #comfunc global ITransactionProxy_Abort 4 #comfunc global ITransactionProxy_Promote 5 sptr #comfunc global ITransactionProxy_CreateVoter 6 sptr,sptr #comfunc global ITransactionProxy_GetIsolationLevel 7 sptr #comfunc global ITransactionProxy_GetIdentifier 8 sptr #comfunc global ITransactionProxy_IsReusable 9 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。