ホーム › UI.TextServices › IEnumTfProperties
IEnumTfProperties
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT Clone(IEnumTfProperties** ppEnum)
| ppEnum | IEnumTfProperties** | out | 現在の列挙子と同じ状態を持つ複製された列挙子インターフェイスを受け取るポインタである。 |
vtbl 4 HRESULT Next(DWORD ulCount, ITfProperty** ppProp, DWORD* pcFetched)
| ulCount | DWORD | in | 取得を要求する ITfProperty オブジェクトの数を指定する。 |
| ppProp | ITfProperty** | out | 取得したプロパティへのポインタを格納する配列を受け取る。ulCount 個分の領域を呼び出し側が用意する。 |
| pcFetched | DWORD* | out | 実際に取得された要素数を受け取るポインタである。1 個だけ要求する場合は NULL を指定できる。 |
vtbl 5 HRESULT Reset()
| ulCount | DWORD | in | 列挙位置を読み飛ばす ITfProperty オブジェクトの数を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IEnumTfProperties "{19188CB0-ACA9-11D2-AFC5-00105A2799B5}" #usecom global IEnumTfProperties IID_IEnumTfProperties "{}" #comfunc global IEnumTfProperties_Clone 3 sptr #comfunc global IEnumTfProperties_Next 4 int,sptr,var #comfunc global IEnumTfProperties_Reset 5 #comfunc global IEnumTfProperties_Skip 6 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IEnumTfProperties "{19188CB0-ACA9-11D2-AFC5-00105A2799B5}" #usecom global IEnumTfProperties IID_IEnumTfProperties "{}" #comfunc global IEnumTfProperties_Clone 3 sptr #comfunc global IEnumTfProperties_Next 4 int,sptr,sptr #comfunc global IEnumTfProperties_Reset 5 #comfunc global IEnumTfProperties_Skip 6 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。