#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICLRRuntimeInfo "{BD39D1D2-BA2F-486A-89B0-B4B0CB466891}"
#usecom global ICLRRuntimeInfo IID_ICLRRuntimeInfo "{}"
#comfunc global ICLRRuntimeInfo_GetVersionString 3 var,var
#comfunc global ICLRRuntimeInfo_GetRuntimeDirectory 4 var,var
#comfunc global ICLRRuntimeInfo_IsLoaded 5 sptr,var
#comfunc global ICLRRuntimeInfo_LoadErrorString 6 int,var,var,int
#comfunc global ICLRRuntimeInfo_LoadLibraryA 7 wstr,sptr
#comfunc global ICLRRuntimeInfo_GetProcAddress 8 str,sptr
#comfunc global ICLRRuntimeInfo_GetInterface 9 var,var,sptr
#comfunc global ICLRRuntimeInfo_IsLoadable 10 var
#comfunc global ICLRRuntimeInfo_SetDefaultStartupFlags 11 int,wstr
#comfunc global ICLRRuntimeInfo_GetDefaultStartupFlags 12 var,var,var
#comfunc global ICLRRuntimeInfo_BindAsLegacyV2Runtime 13
#comfunc global ICLRRuntimeInfo_IsStarted 14 var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICLRRuntimeInfo "{BD39D1D2-BA2F-486A-89B0-B4B0CB466891}"
#usecom global ICLRRuntimeInfo IID_ICLRRuntimeInfo "{}"
#comfunc global ICLRRuntimeInfo_GetVersionString 3 sptr,sptr
#comfunc global ICLRRuntimeInfo_GetRuntimeDirectory 4 sptr,sptr
#comfunc global ICLRRuntimeInfo_IsLoaded 5 sptr,sptr
#comfunc global ICLRRuntimeInfo_LoadErrorString 6 int,sptr,sptr,int
#comfunc global ICLRRuntimeInfo_LoadLibraryA 7 wstr,sptr
#comfunc global ICLRRuntimeInfo_GetProcAddress 8 str,sptr
#comfunc global ICLRRuntimeInfo_GetInterface 9 sptr,sptr,sptr
#comfunc global ICLRRuntimeInfo_IsLoadable 10 sptr
#comfunc global ICLRRuntimeInfo_SetDefaultStartupFlags 11 int,wstr
#comfunc global ICLRRuntimeInfo_GetDefaultStartupFlags 12 sptr,sptr,sptr
#comfunc global ICLRRuntimeInfo_BindAsLegacyV2Runtime 13
#comfunc global ICLRRuntimeInfo_IsStarted 14 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。