#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITypeName "{B81FF171-20F3-11D2-8DCC-00A0C9B00522}"
#usecom global ITypeName IID_ITypeName "{}"
#comfunc global ITypeName_GetNameCount 3 var
#comfunc global ITypeName_GetNames 4 int,var,var
#comfunc global ITypeName_GetTypeArgumentCount 5 var
#comfunc global ITypeName_GetTypeArguments 6 int,sptr,var
#comfunc global ITypeName_GetModifierLength 7 var
#comfunc global ITypeName_GetModifiers 8 int,var,var
#comfunc global ITypeName_GetAssemblyName 9 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITypeName "{B81FF171-20F3-11D2-8DCC-00A0C9B00522}"
#usecom global ITypeName IID_ITypeName "{}"
#comfunc global ITypeName_GetNameCount 3 sptr
#comfunc global ITypeName_GetNames 4 int,sptr,sptr
#comfunc global ITypeName_GetTypeArgumentCount 5 sptr
#comfunc global ITypeName_GetTypeArguments 6 int,sptr,sptr
#comfunc global ITypeName_GetModifierLength 7 sptr
#comfunc global ITypeName_GetModifiers 8 int,sptr,sptr
#comfunc global ITypeName_GetAssemblyName 9 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。