#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICeeGen "{7ED1BDFF-8E36-11D2-9C56-00A0C9B7CC45}"
#usecom global ICeeGen IID_ICeeGen "{}"
#comfunc global ICeeGen_EmitString 3 wstr,var
#comfunc global ICeeGen_GetString 4 int,var
#comfunc global ICeeGen_AllocateMethodBuffer 5 int,var,var
#comfunc global ICeeGen_GetMethodBuffer 6 int,var
#comfunc global ICeeGen_GetIMapTokenIface 7 sptr
#comfunc global ICeeGen_GenerateCeeFile 8
#comfunc global ICeeGen_GetIlSection 9 sptr
#comfunc global ICeeGen_GetStringSection 10 sptr
#comfunc global ICeeGen_AddSectionReloc 11 sptr,int,sptr,int
#comfunc global ICeeGen_GetSectionCreate 12 str,int,sptr
#comfunc global ICeeGen_GetSectionDataLen 13 sptr,var
#comfunc global ICeeGen_GetSectionBlock 14 sptr,int,int,sptr
#comfunc global ICeeGen_TruncateSection 15 sptr,int
#comfunc global ICeeGen_GenerateCeeMemoryImage 16 sptr
#comfunc global ICeeGen_ComputePointer 17 sptr,int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICeeGen "{7ED1BDFF-8E36-11D2-9C56-00A0C9B7CC45}"
#usecom global ICeeGen IID_ICeeGen "{}"
#comfunc global ICeeGen_EmitString 3 wstr,sptr
#comfunc global ICeeGen_GetString 4 int,sptr
#comfunc global ICeeGen_AllocateMethodBuffer 5 int,sptr,sptr
#comfunc global ICeeGen_GetMethodBuffer 6 int,sptr
#comfunc global ICeeGen_GetIMapTokenIface 7 sptr
#comfunc global ICeeGen_GenerateCeeFile 8
#comfunc global ICeeGen_GetIlSection 9 sptr
#comfunc global ICeeGen_GetStringSection 10 sptr
#comfunc global ICeeGen_AddSectionReloc 11 sptr,int,sptr,int
#comfunc global ICeeGen_GetSectionCreate 12 str,int,sptr
#comfunc global ICeeGen_GetSectionDataLen 13 sptr,sptr
#comfunc global ICeeGen_GetSectionBlock 14 sptr,int,int,sptr
#comfunc global ICeeGen_TruncateSection 15 sptr,int
#comfunc global ICeeGen_GenerateCeeMemoryImage 16 sptr
#comfunc global ICeeGen_ComputePointer 17 sptr,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。