ホーム › System.Search › ITransactionJoin
ITransactionJoin
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetOptionsObject(ITransactionOptions** ppOptions)
| ppOptions | ITransactionOptions** | out | トランザクションオプションを設定するための ITransactionOptions オブジェクトを受け取るポインタである。 |
vtbl 4 HRESULT JoinTransaction(IUnknown* punkTransactionCoord, INT isoLevel, DWORD isoFlags, ITransactionOptions* pOtherOptions)
| punkTransactionCoord | IUnknown* | inoptional | 参加する分散トランザクションの調整オブジェクトの IUnknown へのポインタである。NULL を指定するとトランザクションから離脱する。 |
| isoLevel | INT | in | トランザクションの分離レベル (ISOLATIONLEVEL) を指定する。 |
| isoFlags | DWORD | in | 分離に関する追加フラグを指定する。通常は 0 を指定する。 |
| pOtherOptions | ITransactionOptions* | inoptional | 適用するトランザクションオプションを格納した ITransactionOptions へのポインタである。不要な場合は NULL を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_ITransactionJoin "{0C733A5E-2A1C-11CE-ADE5-00AA0044773D}"
#usecom global ITransactionJoin IID_ITransactionJoin "{}"
#comfunc global ITransactionJoin_GetOptionsObject 3 sptr
#comfunc global ITransactionJoin_JoinTransaction 4 sptr,int,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。