#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDocHostUIHandler "{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}"
#usecom global IDocHostUIHandler IID_IDocHostUIHandler "{}"
#comfunc global IDocHostUIHandler_ShowContextMenu 3 int,var,sptr,sptr
#comfunc global IDocHostUIHandler_GetHostInfo 4 var
#comfunc global IDocHostUIHandler_ShowUI 5 int,sptr,sptr,sptr,sptr
#comfunc global IDocHostUIHandler_HideUI 6
#comfunc global IDocHostUIHandler_UpdateUI 7
#comfunc global IDocHostUIHandler_EnableModeless 8 int
#comfunc global IDocHostUIHandler_OnDocWindowActivate 9 int
#comfunc global IDocHostUIHandler_OnFrameWindowActivate 10 int
#comfunc global IDocHostUIHandler_ResizeBorder 11 var,sptr,int
#comfunc global IDocHostUIHandler_TranslateAccelerator 12 var,var,int
#comfunc global IDocHostUIHandler_GetOptionKeyPath 13 var,int
#comfunc global IDocHostUIHandler_GetDropTarget 14 sptr,sptr
#comfunc global IDocHostUIHandler_GetExternal 15 sptr
#comfunc global IDocHostUIHandler_TranslateUrl 16 int,wstr,var
#comfunc global IDocHostUIHandler_FilterDataObject 17 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDocHostUIHandler "{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}"
#usecom global IDocHostUIHandler IID_IDocHostUIHandler "{}"
#comfunc global IDocHostUIHandler_ShowContextMenu 3 int,sptr,sptr,sptr
#comfunc global IDocHostUIHandler_GetHostInfo 4 sptr
#comfunc global IDocHostUIHandler_ShowUI 5 int,sptr,sptr,sptr,sptr
#comfunc global IDocHostUIHandler_HideUI 6
#comfunc global IDocHostUIHandler_UpdateUI 7
#comfunc global IDocHostUIHandler_EnableModeless 8 int
#comfunc global IDocHostUIHandler_OnDocWindowActivate 9 int
#comfunc global IDocHostUIHandler_OnFrameWindowActivate 10 int
#comfunc global IDocHostUIHandler_ResizeBorder 11 sptr,sptr,int
#comfunc global IDocHostUIHandler_TranslateAccelerator 12 sptr,sptr,int
#comfunc global IDocHostUIHandler_GetOptionKeyPath 13 sptr,int
#comfunc global IDocHostUIHandler_GetDropTarget 14 sptr,sptr
#comfunc global IDocHostUIHandler_GetExternal 15 sptr
#comfunc global IDocHostUIHandler_TranslateUrl 16 int,wstr,sptr
#comfunc global IDocHostUIHandler_FilterDataObject 17 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。