#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMDSPDevice "{1DCB3A12-33ED-11D3-8470-00C04F79DBC0}"
#usecom global IMDSPDevice IID_IMDSPDevice "{}"
#comfunc global IMDSPDevice_GetName 3 var,int
#comfunc global IMDSPDevice_GetManufacturer 4 var,int
#comfunc global IMDSPDevice_GetVersion 5 var
#comfunc global IMDSPDevice_GetType 6 var
#comfunc global IMDSPDevice_GetSerialNumber 7 var,var
#comfunc global IMDSPDevice_GetPowerSource 8 var,var
#comfunc global IMDSPDevice_GetStatus 9 var
#comfunc global IMDSPDevice_GetDeviceIcon 10 var
#comfunc global IMDSPDevice_EnumStorage 11 sptr
#comfunc global IMDSPDevice_GetFormatSupport 12 var,var,var,var
#comfunc global IMDSPDevice_SendOpaqueCommand 13 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMDSPDevice "{1DCB3A12-33ED-11D3-8470-00C04F79DBC0}"
#usecom global IMDSPDevice IID_IMDSPDevice "{}"
#comfunc global IMDSPDevice_GetName 3 sptr,int
#comfunc global IMDSPDevice_GetManufacturer 4 sptr,int
#comfunc global IMDSPDevice_GetVersion 5 sptr
#comfunc global IMDSPDevice_GetType 6 sptr
#comfunc global IMDSPDevice_GetSerialNumber 7 sptr,sptr
#comfunc global IMDSPDevice_GetPowerSource 8 sptr,sptr
#comfunc global IMDSPDevice_GetStatus 9 sptr
#comfunc global IMDSPDevice_GetDeviceIcon 10 sptr
#comfunc global IMDSPDevice_EnumStorage 11 sptr
#comfunc global IMDSPDevice_GetFormatSupport 12 sptr,sptr,sptr,sptr
#comfunc global IMDSPDevice_SendOpaqueCommand 13 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。