#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ILockBytes "{0000000A-0000-0000-C000-000000000046}"
#usecom global ILockBytes IID_ILockBytes "{}"
#comfunc global ILockBytes_ReadAt 3 int64,sptr,int,var
#comfunc global ILockBytes_WriteAt 4 int64,sptr,int,var
#comfunc global ILockBytes_Flush 5
#comfunc global ILockBytes_SetSize 6 int64
#comfunc global ILockBytes_LockRegion 7 int64,int64,int
#comfunc global ILockBytes_UnlockRegion 8 int64,int64,int
#comfunc global ILockBytes_Stat 9 var,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ILockBytes "{0000000A-0000-0000-C000-000000000046}"
#usecom global ILockBytes IID_ILockBytes "{}"
#comfunc global ILockBytes_ReadAt 3 int64,sptr,int,sptr
#comfunc global ILockBytes_WriteAt 4 int64,sptr,int,sptr
#comfunc global ILockBytes_Flush 5
#comfunc global ILockBytes_SetSize 6 int64
#comfunc global ILockBytes_LockRegion 7 int64,int64,int
#comfunc global ILockBytes_UnlockRegion 8 int64,int64,int
#comfunc global ILockBytes_Stat 9 sptr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。