vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IHTMLDocument4 "{3050F69A-98B5-11CF-BB82-00AA00BDCE0B}"
#usecom global IHTMLDocument4 IID_IHTMLDocument4 "{25336920-03F9-11CF-8FD0-00AA00686F13}"
#comfunc global IHTMLDocument4_focus 7
#comfunc global IHTMLDocument4_hasFocus 8 var
#comfunc global IHTMLDocument4_put_onselectionchange 9 int
#comfunc global IHTMLDocument4_get_onselectionchange 10 var
#comfunc global IHTMLDocument4_get_namespaces 11 sptr
#comfunc global IHTMLDocument4_createDocumentFromUrl 12 wstr,wstr,sptr
#comfunc global IHTMLDocument4_put_media 13 wstr
#comfunc global IHTMLDocument4_get_media 14 var
#comfunc global IHTMLDocument4_createEventObject 15 var,sptr
#comfunc global IHTMLDocument4_fireEvent 16 wstr,var,var
#comfunc global IHTMLDocument4_createRenderStyle 17 wstr,sptr
#comfunc global IHTMLDocument4_put_oncontrolselect 18 int
#comfunc global IHTMLDocument4_get_oncontrolselect 19 var
#comfunc global IHTMLDocument4_get_URLUnencoded 20 var
; ※数字は 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_IHTMLDocument4 "{3050F69A-98B5-11CF-BB82-00AA00BDCE0B}"
#usecom global IHTMLDocument4 IID_IHTMLDocument4 "{25336920-03F9-11CF-8FD0-00AA00686F13}"
#comfunc global IHTMLDocument4_focus 7
#comfunc global IHTMLDocument4_hasFocus 8 sptr
#comfunc global IHTMLDocument4_put_onselectionchange 9 int
#comfunc global IHTMLDocument4_get_onselectionchange 10 sptr
#comfunc global IHTMLDocument4_get_namespaces 11 sptr
#comfunc global IHTMLDocument4_createDocumentFromUrl 12 wstr,wstr,sptr
#comfunc global IHTMLDocument4_put_media 13 wstr
#comfunc global IHTMLDocument4_get_media 14 sptr
#comfunc global IHTMLDocument4_createEventObject 15 sptr,sptr
#comfunc global IHTMLDocument4_fireEvent 16 wstr,sptr,sptr
#comfunc global IHTMLDocument4_createRenderStyle 17 wstr,sptr
#comfunc global IHTMLDocument4_put_oncontrolselect 18 int
#comfunc global IHTMLDocument4_get_oncontrolselect 19 sptr
#comfunc global IHTMLDocument4_get_URLUnencoded 20 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 不要)。