vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITextSelection "{8CC497C1-A1DF-11CE-8098-00AA0047BE5D}"
#usecom global ITextSelection IID_ITextSelection "{}"
#comfunc global ITextSelection_GetFlags 58 var
#comfunc global ITextSelection_SetFlags 59 int
#comfunc global ITextSelection_GetType 60 var
#comfunc global ITextSelection_MoveLeft 61 int,int,int,var
#comfunc global ITextSelection_MoveRight 62 int,int,int,var
#comfunc global ITextSelection_MoveUp 63 int,int,int,var
#comfunc global ITextSelection_MoveDown 64 int,int,int,var
#comfunc global ITextSelection_HomeKey 65 int,int,var
#comfunc global ITextSelection_EndKey 66 int,int,var
#comfunc global ITextSelection_TypeText 67 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ITextSelection "{8CC497C1-A1DF-11CE-8098-00AA0047BE5D}"
#usecom global ITextSelection IID_ITextSelection "{}"
#comfunc global ITextSelection_GetFlags 58 sptr
#comfunc global ITextSelection_SetFlags 59 int
#comfunc global ITextSelection_GetType 60 sptr
#comfunc global ITextSelection_MoveLeft 61 int,int,int,sptr
#comfunc global ITextSelection_MoveRight 62 int,int,int,sptr
#comfunc global ITextSelection_MoveUp 63 int,int,int,sptr
#comfunc global ITextSelection_MoveDown 64 int,int,int,sptr
#comfunc global ITextSelection_HomeKey 65 int,int,sptr
#comfunc global ITextSelection_EndKey 66 int,int,sptr
#comfunc global ITextSelection_TypeText 67 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。