#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IStiDeviceControl "{128A9860-52DC-11D0-9EDF-444553540000}"
#usecom global IStiDeviceControl IID_IStiDeviceControl "{}"
#comfunc global IStiDeviceControl_Initialize 3 int,int,wstr,int
#comfunc global IStiDeviceControl_RawReadData 4 sptr,var,var
#comfunc global IStiDeviceControl_RawWriteData 5 sptr,int,var
#comfunc global IStiDeviceControl_RawReadCommand 6 sptr,var,var
#comfunc global IStiDeviceControl_RawWriteCommand 7 sptr,int,var
#comfunc global IStiDeviceControl_RawDeviceControl 8 int,sptr,int,sptr,int,var
#comfunc global IStiDeviceControl_GetLastError 9 var
#comfunc global IStiDeviceControl_GetMyDevicePortName 10 var,int
#comfunc global IStiDeviceControl_GetMyDeviceHandle 11 sptr
#comfunc global IStiDeviceControl_GetMyDeviceOpenMode 12 var
#comfunc global IStiDeviceControl_WriteToErrorLog 13 int,wstr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IStiDeviceControl "{128A9860-52DC-11D0-9EDF-444553540000}"
#usecom global IStiDeviceControl IID_IStiDeviceControl "{}"
#comfunc global IStiDeviceControl_Initialize 3 int,int,wstr,int
#comfunc global IStiDeviceControl_RawReadData 4 sptr,sptr,sptr
#comfunc global IStiDeviceControl_RawWriteData 5 sptr,int,sptr
#comfunc global IStiDeviceControl_RawReadCommand 6 sptr,sptr,sptr
#comfunc global IStiDeviceControl_RawWriteCommand 7 sptr,int,sptr
#comfunc global IStiDeviceControl_RawDeviceControl 8 int,sptr,int,sptr,int,sptr
#comfunc global IStiDeviceControl_GetLastError 9 sptr
#comfunc global IStiDeviceControl_GetMyDevicePortName 10 sptr,int
#comfunc global IStiDeviceControl_GetMyDeviceHandle 11 sptr
#comfunc global IStiDeviceControl_GetMyDeviceOpenMode 12 sptr
#comfunc global IStiDeviceControl_WriteToErrorLog 13 int,wstr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。