#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IConsole "{43136EB1-D36C-11CF-ADBC-00AA00A80033}"
#usecom global IConsole IID_IConsole "{}"
#comfunc global IConsole_SetHeader 3 sptr
#comfunc global IConsole_SetToolbar 4 sptr
#comfunc global IConsole_QueryResultView 5 sptr
#comfunc global IConsole_QueryScopeImageList 6 sptr
#comfunc global IConsole_QueryResultImageList 7 sptr
#comfunc global IConsole_UpdateAllViews 8 sptr,sptr,sptr
#comfunc global IConsole_MessageBox 9 wstr,wstr,int,var
#comfunc global IConsole_QueryConsoleVerb 10 sptr
#comfunc global IConsole_SelectScopeItem 11 sptr
#comfunc global IConsole_GetMainWindow 12 sptr
#comfunc global IConsole_NewWindow 13 sptr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IConsole "{43136EB1-D36C-11CF-ADBC-00AA00A80033}"
#usecom global IConsole IID_IConsole "{}"
#comfunc global IConsole_SetHeader 3 sptr
#comfunc global IConsole_SetToolbar 4 sptr
#comfunc global IConsole_QueryResultView 5 sptr
#comfunc global IConsole_QueryScopeImageList 6 sptr
#comfunc global IConsole_QueryResultImageList 7 sptr
#comfunc global IConsole_UpdateAllViews 8 sptr,sptr,sptr
#comfunc global IConsole_MessageBox 9 wstr,wstr,int,sptr
#comfunc global IConsole_QueryConsoleVerb 10 sptr
#comfunc global IConsole_SelectScopeItem 11 sptr
#comfunc global IConsole_GetMainWindow 12 sptr
#comfunc global IConsole_NewWindow 13 sptr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。