#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICorRuntimeHost "{CB2F6722-AB3A-11D2-9C40-00C04FA30A3E}"
#usecom global ICorRuntimeHost IID_ICorRuntimeHost "{}"
#comfunc global ICorRuntimeHost_CreateLogicalThreadState 3
#comfunc global ICorRuntimeHost_DeleteLogicalThreadState 4
#comfunc global ICorRuntimeHost_SwitchInLogicalThreadState 5 var
#comfunc global ICorRuntimeHost_SwitchOutLogicalThreadState 6 var
#comfunc global ICorRuntimeHost_LocksHeldByLogicalThread 7 var
#comfunc global ICorRuntimeHost_MapFile 8 sptr,sptr
#comfunc global ICorRuntimeHost_GetConfiguration 9 sptr
#comfunc global ICorRuntimeHost_Start 10
#comfunc global ICorRuntimeHost_Stop 11
#comfunc global ICorRuntimeHost_CreateDomain 12 wstr,sptr,sptr
#comfunc global ICorRuntimeHost_GetDefaultDomain 13 sptr
#comfunc global ICorRuntimeHost_EnumDomains 14 sptr
#comfunc global ICorRuntimeHost_NextDomain 15 sptr,sptr
#comfunc global ICorRuntimeHost_CloseEnum 16 sptr
#comfunc global ICorRuntimeHost_CreateDomainEx 17 wstr,sptr,sptr,sptr
#comfunc global ICorRuntimeHost_CreateDomainSetup 18 sptr
#comfunc global ICorRuntimeHost_CreateEvidence 19 sptr
#comfunc global ICorRuntimeHost_UnloadDomain 20 sptr
#comfunc global ICorRuntimeHost_CurrentDomain 21 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICorRuntimeHost "{CB2F6722-AB3A-11D2-9C40-00C04FA30A3E}"
#usecom global ICorRuntimeHost IID_ICorRuntimeHost "{}"
#comfunc global ICorRuntimeHost_CreateLogicalThreadState 3
#comfunc global ICorRuntimeHost_DeleteLogicalThreadState 4
#comfunc global ICorRuntimeHost_SwitchInLogicalThreadState 5 sptr
#comfunc global ICorRuntimeHost_SwitchOutLogicalThreadState 6 sptr
#comfunc global ICorRuntimeHost_LocksHeldByLogicalThread 7 sptr
#comfunc global ICorRuntimeHost_MapFile 8 sptr,sptr
#comfunc global ICorRuntimeHost_GetConfiguration 9 sptr
#comfunc global ICorRuntimeHost_Start 10
#comfunc global ICorRuntimeHost_Stop 11
#comfunc global ICorRuntimeHost_CreateDomain 12 wstr,sptr,sptr
#comfunc global ICorRuntimeHost_GetDefaultDomain 13 sptr
#comfunc global ICorRuntimeHost_EnumDomains 14 sptr
#comfunc global ICorRuntimeHost_NextDomain 15 sptr,sptr
#comfunc global ICorRuntimeHost_CloseEnum 16 sptr
#comfunc global ICorRuntimeHost_CreateDomainEx 17 wstr,sptr,sptr,sptr
#comfunc global ICorRuntimeHost_CreateDomainSetup 18 sptr
#comfunc global ICorRuntimeHost_CreateEvidence 19 sptr
#comfunc global ICorRuntimeHost_UnloadDomain 20 sptr
#comfunc global ICorRuntimeHost_CurrentDomain 21 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。