#define global IID_IAMExtDevice "{B5730A90-1A2C-11CF-8C23-00AA006B6814}"
#usecom global IAMExtDevice IID_IAMExtDevice "{}"
#comfunc global IAMExtDevice_GetCapability 3 int,var,var
#comfunc global IAMExtDevice_get_ExternalDeviceID 4 var
#comfunc global IAMExtDevice_get_ExternalDeviceVersion 5 var
#comfunc global IAMExtDevice_put_DevicePower 6 int
#comfunc global IAMExtDevice_get_DevicePower 7 var
#comfunc global IAMExtDevice_Calibrate 8 sptr,int,var
#comfunc global IAMExtDevice_put_DevicePort 9 int
#comfunc global IAMExtDevice_get_DevicePort 10 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IAMExtDevice "{B5730A90-1A2C-11CF-8C23-00AA006B6814}"
#usecom global IAMExtDevice IID_IAMExtDevice "{}"
#comfunc global IAMExtDevice_GetCapability 3 int,sptr,sptr
#comfunc global IAMExtDevice_get_ExternalDeviceID 4 sptr
#comfunc global IAMExtDevice_get_ExternalDeviceVersion 5 sptr
#comfunc global IAMExtDevice_put_DevicePower 6 int
#comfunc global IAMExtDevice_get_DevicePower 7 sptr
#comfunc global IAMExtDevice_Calibrate 8 sptr,int,sptr
#comfunc global IAMExtDevice_put_DevicePort 9 int
#comfunc global IAMExtDevice_get_DevicePort 10 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。