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