#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMbnInterface "{DCBBBAB6-2001-4BBB-AAEE-338E368AF6FA}"
#usecom global IMbnInterface IID_IMbnInterface "{}"
#comfunc global IMbnInterface_get_InterfaceID 3 var
#comfunc global IMbnInterface_GetInterfaceCapability 4 var
#comfunc global IMbnInterface_GetSubscriberInformation 5 sptr
#comfunc global IMbnInterface_GetReadyState 6 var
#comfunc global IMbnInterface_InEmergencyMode 7 var
#comfunc global IMbnInterface_GetHomeProvider 8 var
#comfunc global IMbnInterface_GetPreferredProviders 9 var
#comfunc global IMbnInterface_SetPreferredProviders 10 var,var
#comfunc global IMbnInterface_GetVisibleProviders 11 var,var
#comfunc global IMbnInterface_ScanNetwork 12 var
#comfunc global IMbnInterface_GetConnection 13 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMbnInterface "{DCBBBAB6-2001-4BBB-AAEE-338E368AF6FA}"
#usecom global IMbnInterface IID_IMbnInterface "{}"
#comfunc global IMbnInterface_get_InterfaceID 3 sptr
#comfunc global IMbnInterface_GetInterfaceCapability 4 sptr
#comfunc global IMbnInterface_GetSubscriberInformation 5 sptr
#comfunc global IMbnInterface_GetReadyState 6 sptr
#comfunc global IMbnInterface_InEmergencyMode 7 sptr
#comfunc global IMbnInterface_GetHomeProvider 8 sptr
#comfunc global IMbnInterface_GetPreferredProviders 9 sptr
#comfunc global IMbnInterface_SetPreferredProviders 10 sptr,sptr
#comfunc global IMbnInterface_GetVisibleProviders 11 sptr,sptr
#comfunc global IMbnInterface_ScanNetwork 12 sptr
#comfunc global IMbnInterface_GetConnection 13 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。