ホーム › System.Diagnostics.ClrProfiling › ICorProfilerMethodEnum
ICorProfilerMethodEnum
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| celt | DWORD | in | 列挙シーケンスでスキップする要素数を指定する。 |
vtbl 4 HRESULT Reset()
vtbl 5 HRESULT Clone(ICorProfilerMethodEnum** ppEnum)
| ppEnum | ICorProfilerMethodEnum** | out | 現在の列挙状態を引き継いだ複製の ICorProfilerMethodEnum インターフェイスへのポインタを受け取る。 |
| pcelt | DWORD* | out | 列挙子に含まれる要素の総数を受け取る。 |
vtbl 7 HRESULT Next(DWORD celt, COR_PRF_METHOD* elements, DWORD* pceltFetched)
| celt | DWORD | in | 取得する要素数を指定する。 |
| elements | COR_PRF_METHOD* | out | 取得したメソッドを表す COR_PRF_METHOD 構造体を受け取る配列である。 |
| pceltFetched | DWORD* | out | 実際に取得された要素数を受け取る。1 要素のみ要求する場合は NULL を指定できる。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICorProfilerMethodEnum "{FCCEE788-0088-454B-A811-C99F298D1942}" #usecom global ICorProfilerMethodEnum IID_ICorProfilerMethodEnum "{}" #comfunc global ICorProfilerMethodEnum_Skip 3 int #comfunc global ICorProfilerMethodEnum_Reset 4 #comfunc global ICorProfilerMethodEnum_Clone 5 sptr #comfunc global ICorProfilerMethodEnum_GetCount 6 var #comfunc global ICorProfilerMethodEnum_Next 7 int,var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICorProfilerMethodEnum "{FCCEE788-0088-454B-A811-C99F298D1942}" #usecom global ICorProfilerMethodEnum IID_ICorProfilerMethodEnum "{}" #comfunc global ICorProfilerMethodEnum_Skip 3 int #comfunc global ICorProfilerMethodEnum_Reset 4 #comfunc global ICorProfilerMethodEnum_Clone 5 sptr #comfunc global ICorProfilerMethodEnum_GetCount 6 sptr #comfunc global ICorProfilerMethodEnum_Next 7 int,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。