vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IInkStrokes "{F1F4C9D8-590A-4963-B3AE-1935671BB6F3}"
#usecom global IInkStrokes IID_IInkStrokes "{48F491BC-240E-4860-B079-A1E94D3D2C86}"
#comfunc global IInkStrokes_get_Count 7 var
#comfunc global IInkStrokes_get__NewEnum 8 sptr
#comfunc global IInkStrokes_get_Ink 9 sptr
#comfunc global IInkStrokes_get_RecognitionResult 10 sptr
#comfunc global IInkStrokes_ToString 11 var
#comfunc global IInkStrokes_Item 12 int,sptr
#comfunc global IInkStrokes_Add 13 sptr
#comfunc global IInkStrokes_AddStrokes 14 sptr
#comfunc global IInkStrokes_Remove 15 sptr
#comfunc global IInkStrokes_RemoveStrokes 16 sptr
#comfunc global IInkStrokes_ModifyDrawingAttributes 17 sptr
#comfunc global IInkStrokes_GetBoundingBox 18 int,sptr
#comfunc global IInkStrokes_Transform 19 sptr,int
#comfunc global IInkStrokes_ScaleToRectangle 20 sptr
#comfunc global IInkStrokes_Move 21 float,float
#comfunc global IInkStrokes_Rotate 22 float,float,float
#comfunc global IInkStrokes_Shear 23 float,float
#comfunc global IInkStrokes_ScaleTransform 24 float,float
#comfunc global IInkStrokes_Clip 25 sptr
#comfunc global IInkStrokes_RemoveRecognitionResult 26
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IInkStrokes "{F1F4C9D8-590A-4963-B3AE-1935671BB6F3}"
#usecom global IInkStrokes IID_IInkStrokes "{48F491BC-240E-4860-B079-A1E94D3D2C86}"
#comfunc global IInkStrokes_get_Count 7 sptr
#comfunc global IInkStrokes_get__NewEnum 8 sptr
#comfunc global IInkStrokes_get_Ink 9 sptr
#comfunc global IInkStrokes_get_RecognitionResult 10 sptr
#comfunc global IInkStrokes_ToString 11 sptr
#comfunc global IInkStrokes_Item 12 int,sptr
#comfunc global IInkStrokes_Add 13 sptr
#comfunc global IInkStrokes_AddStrokes 14 sptr
#comfunc global IInkStrokes_Remove 15 sptr
#comfunc global IInkStrokes_RemoveStrokes 16 sptr
#comfunc global IInkStrokes_ModifyDrawingAttributes 17 sptr
#comfunc global IInkStrokes_GetBoundingBox 18 int,sptr
#comfunc global IInkStrokes_Transform 19 sptr,int
#comfunc global IInkStrokes_ScaleToRectangle 20 sptr
#comfunc global IInkStrokes_Move 21 float,float
#comfunc global IInkStrokes_Rotate 22 float,float,float
#comfunc global IInkStrokes_Shear 23 float,float
#comfunc global IInkStrokes_ScaleTransform 24 float,float
#comfunc global IInkStrokes_Clip 25 sptr
#comfunc global IInkStrokes_RemoveRecognitionResult 26
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。