vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMathInputControl "{EBA615AA-FAC6-4738-BA5F-FF09E9FE473E}"
#usecom global IMathInputControl IID_IMathInputControl "{C561816C-14D8-4090-830C-98D994B21C7B}"
#comfunc global IMathInputControl_Show 7
#comfunc global IMathInputControl_Hide 8
#comfunc global IMathInputControl_IsVisible 9 var
#comfunc global IMathInputControl_GetPosition 10 var,var,var,var
#comfunc global IMathInputControl_SetPosition 11 int,int,int,int
#comfunc global IMathInputControl_Clear 12
#comfunc global IMathInputControl_SetCustomPaint 13 int,int
#comfunc global IMathInputControl_SetCaptionText 14 wstr
#comfunc global IMathInputControl_LoadInk 15 sptr
#comfunc global IMathInputControl_SetOwnerWindow 16 sptr
#comfunc global IMathInputControl_EnableExtendedButtons 17 int
#comfunc global IMathInputControl_GetPreviewHeight 18 var
#comfunc global IMathInputControl_SetPreviewHeight 19 int
#comfunc global IMathInputControl_EnableAutoGrow 20 int
#comfunc global IMathInputControl_AddFunctionName 21 wstr
#comfunc global IMathInputControl_RemoveFunctionName 22 wstr
#comfunc global IMathInputControl_GetHoverIcon 23 sptr
; ※数字は 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_IMathInputControl "{EBA615AA-FAC6-4738-BA5F-FF09E9FE473E}"
#usecom global IMathInputControl IID_IMathInputControl "{C561816C-14D8-4090-830C-98D994B21C7B}"
#comfunc global IMathInputControl_Show 7
#comfunc global IMathInputControl_Hide 8
#comfunc global IMathInputControl_IsVisible 9 sptr
#comfunc global IMathInputControl_GetPosition 10 sptr,sptr,sptr,sptr
#comfunc global IMathInputControl_SetPosition 11 int,int,int,int
#comfunc global IMathInputControl_Clear 12
#comfunc global IMathInputControl_SetCustomPaint 13 int,int
#comfunc global IMathInputControl_SetCaptionText 14 wstr
#comfunc global IMathInputControl_LoadInk 15 sptr
#comfunc global IMathInputControl_SetOwnerWindow 16 sptr
#comfunc global IMathInputControl_EnableExtendedButtons 17 int
#comfunc global IMathInputControl_GetPreviewHeight 18 sptr
#comfunc global IMathInputControl_SetPreviewHeight 19 int
#comfunc global IMathInputControl_EnableAutoGrow 20 int
#comfunc global IMathInputControl_AddFunctionName 21 wstr
#comfunc global IMathInputControl_RemoveFunctionName 22 wstr
#comfunc global IMathInputControl_GetHoverIcon 23 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。