ホーム › System.WinRT › IAppServiceConnectionExtendedExecution
IAppServiceConnectionExtendedExecution
COMメソッド 1
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT OpenForExtendedExecutionAsync(GUID* riid, void** operation)
| riid | GUID* | in | 取得する非同期操作のインターフェイス識別子(IID)を指す GUID へのポインタである。 |
| operation | void** | out | 拡張実行のためにアプリサービス接続を開く非同期操作の要求インターフェイスへのポインタを受け取る出力ポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IAppServiceConnectionExtendedExecution "{65219584-F9CB-4AE3-81F9-A28A6CA450D9}" #usecom global IAppServiceConnectionExtendedExecution IID_IAppServiceConnectionExtendedExecution "{}" #comfunc global IAppServiceConnectionExtendedExecution_OpenForExtendedExecutionAsync 3 var,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IAppServiceConnectionExtendedExecution "{65219584-F9CB-4AE3-81F9-A28A6CA450D9}" #usecom global IAppServiceConnectionExtendedExecution IID_IAppServiceConnectionExtendedExecution "{}" #comfunc global IAppServiceConnectionExtendedExecution_OpenForExtendedExecutionAsync 3 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。