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

ITransactionProxy

COM
IID02558374-df2e-4dae-bd6b-1d5c994f9bdc継承元IUnknown自前メソッド開始 vtbl3

メソッド 7

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

vtbl 3 HRESULT Commit(GUID guid)
guidGUIDinコミットするトランザクションを識別する GUID である。
vtbl 4 HRESULT Abort()
vtbl 5 HRESULT Promote(ITransaction** pTransaction)
pTransactionITransaction**outローカルトランザクションを昇格させて得た分散トランザクションの ITransaction インターフェイスを受け取るポインタへのポインタである。
vtbl 6 HRESULT CreateVoter(ITransactionVoterNotifyAsync2* pTxAsync, ITransactionVoterBallotAsync2** ppBallot)
pTxAsyncITransactionVoterNotifyAsync2*in投票通知を受け取る ITransactionVoterNotifyAsync2 インターフェイスへのポインタである。
ppBallotITransactionVoterBallotAsync2**out作成された投票用の ITransactionVoterBallotAsync2 インターフェイスを受け取るポインタへのポインタである。
vtbl 7 HRESULT GetIsolationLevel(INT* __MIDL__ITransactionProxy0000)
__MIDL__ITransactionProxy0000INT*inoutトランザクションの分離レベルを受け取る整数へのポインタである。
vtbl 8 HRESULT GetIdentifier(GUID* pbstrIdentifier)
pbstrIdentifierGUID*inoutトランザクションを識別する GUID を受け取るポインタである。
vtbl 9 HRESULT IsReusable(BOOL* pfIsReusable)
pfIsReusableBOOL*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 指定が可能。