vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITextStrings "{C241F5E7-7206-11D8-A2C7-00A0D1D6C6B3}"
#usecom global ITextStrings IID_ITextStrings "{}"
#comfunc global ITextStrings_Item 7 int,sptr
#comfunc global ITextStrings_GetCount 8 var
#comfunc global ITextStrings_Add 9 wstr
#comfunc global ITextStrings_Append 10 sptr,int
#comfunc global ITextStrings_Cat2 11 int
#comfunc global ITextStrings_CatTop2 12 wstr
#comfunc global ITextStrings_DeleteRange 13 sptr
#comfunc global ITextStrings_EncodeFunction 14 int,int,int,int,int,int,int,int,sptr
#comfunc global ITextStrings_GetCch 15 int,var
#comfunc global ITextStrings_InsertNullStr 16 int
#comfunc global ITextStrings_MoveBoundary 17 int,int
#comfunc global ITextStrings_PrefixTop 18 wstr
#comfunc global ITextStrings_Remove 19 int,int
#comfunc global ITextStrings_SetFormattedText 20 sptr,sptr
#comfunc global ITextStrings_SetOpCp 21 int,int
#comfunc global ITextStrings_SuffixTop 22 wstr,sptr
#comfunc global ITextStrings_Swap 23
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ITextStrings "{C241F5E7-7206-11D8-A2C7-00A0D1D6C6B3}"
#usecom global ITextStrings IID_ITextStrings "{}"
#comfunc global ITextStrings_Item 7 int,sptr
#comfunc global ITextStrings_GetCount 8 sptr
#comfunc global ITextStrings_Add 9 wstr
#comfunc global ITextStrings_Append 10 sptr,int
#comfunc global ITextStrings_Cat2 11 int
#comfunc global ITextStrings_CatTop2 12 wstr
#comfunc global ITextStrings_DeleteRange 13 sptr
#comfunc global ITextStrings_EncodeFunction 14 int,int,int,int,int,int,int,int,sptr
#comfunc global ITextStrings_GetCch 15 int,sptr
#comfunc global ITextStrings_InsertNullStr 16 int
#comfunc global ITextStrings_MoveBoundary 17 int,int
#comfunc global ITextStrings_PrefixTop 18 wstr
#comfunc global ITextStrings_Remove 19 int,int
#comfunc global ITextStrings_SetFormattedText 20 sptr,sptr
#comfunc global ITextStrings_SetOpCp 21 int,int
#comfunc global ITextStrings_SuffixTop 22 wstr,sptr
#comfunc global ITextStrings_Swap 23
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。