#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IWMDMDevice "{1DCB3A02-33ED-11D3-8470-00C04F79DBC0}"
#usecom global IWMDMDevice IID_IWMDMDevice "{807B3CDF-357A-11D3-8471-00C04F79DBC0}"
#comfunc global IWMDMDevice_GetName 3 var,int
#comfunc global IWMDMDevice_GetManufacturer 4 var,int
#comfunc global IWMDMDevice_GetVersion 5 var
#comfunc global IWMDMDevice_GetType 6 var
#comfunc global IWMDMDevice_GetSerialNumber 7 var,var
#comfunc global IWMDMDevice_GetPowerSource 8 var,var
#comfunc global IWMDMDevice_GetStatus 9 var
#comfunc global IWMDMDevice_GetDeviceIcon 10 var
#comfunc global IWMDMDevice_EnumStorage 11 sptr
#comfunc global IWMDMDevice_GetFormatSupport 12 var,var,var,var
#comfunc global IWMDMDevice_SendOpaqueCommand 13 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IWMDMDevice "{1DCB3A02-33ED-11D3-8470-00C04F79DBC0}"
#usecom global IWMDMDevice IID_IWMDMDevice "{807B3CDF-357A-11D3-8471-00C04F79DBC0}"
#comfunc global IWMDMDevice_GetName 3 sptr,int
#comfunc global IWMDMDevice_GetManufacturer 4 sptr,int
#comfunc global IWMDMDevice_GetVersion 5 sptr
#comfunc global IWMDMDevice_GetType 6 sptr
#comfunc global IWMDMDevice_GetSerialNumber 7 sptr,sptr
#comfunc global IWMDMDevice_GetPowerSource 8 sptr,sptr
#comfunc global IWMDMDevice_GetStatus 9 sptr
#comfunc global IWMDMDevice_GetDeviceIcon 10 sptr
#comfunc global IWMDMDevice_EnumStorage 11 sptr
#comfunc global IWMDMDevice_GetFormatSupport 12 sptr,sptr,sptr,sptr
#comfunc global IWMDMDevice_SendOpaqueCommand 13 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。