Win32 API 日本語リファレンス
ホームSystem.DistributedTransactionCoordinator › ITransactionPhase0EnlistmentAsync

ITransactionPhase0EnlistmentAsync

COM
IID82dc88e1-a954-11d1-8f88-00600895e7d5継承元IUnknown自前メソッド開始 vtbl3

メソッド 5

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT Enable()
vtbl 4 HRESULT WaitForEnlistment()
vtbl 5 HRESULT Phase0Done()
vtbl 6 HRESULT Unenlist()
vtbl 7 HRESULT GetTransaction(ITransaction** ppITransaction)
ppITransactionITransaction**outこの参加に関連付けられたトランザクションを表す ITransaction インターフェイスへのポインタを受け取る。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

#define global IID_ITransactionPhase0EnlistmentAsync "{82DC88E1-A954-11D1-8F88-00600895E7D5}"
#usecom global ITransactionPhase0EnlistmentAsync IID_ITransactionPhase0EnlistmentAsync "{}"
#comfunc global ITransactionPhase0EnlistmentAsync_Enable             3
#comfunc global ITransactionPhase0EnlistmentAsync_WaitForEnlistment  4
#comfunc global ITransactionPhase0EnlistmentAsync_Phase0Done         5
#comfunc global ITransactionPhase0EnlistmentAsync_Unenlist           6
#comfunc global ITransactionPhase0EnlistmentAsync_GetTransaction     7 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。