#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMediaParamInfo "{6D6CBB60-A223-44AA-842F-A2F06750BE6D}"
#usecom global IMediaParamInfo IID_IMediaParamInfo "{}"
#comfunc global IMediaParamInfo_GetParamCount 3 var
#comfunc global IMediaParamInfo_GetParamInfo 4 int,var
#comfunc global IMediaParamInfo_GetParamText 5 int,var
#comfunc global IMediaParamInfo_GetNumTimeFormats 6 var
#comfunc global IMediaParamInfo_GetSupportedTimeFormat 7 int,var
#comfunc global IMediaParamInfo_GetCurrentTimeFormat 8 var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IMediaParamInfo "{6D6CBB60-A223-44AA-842F-A2F06750BE6D}"
#usecom global IMediaParamInfo IID_IMediaParamInfo "{}"
#comfunc global IMediaParamInfo_GetParamCount 3 sptr
#comfunc global IMediaParamInfo_GetParamInfo 4 int,sptr
#comfunc global IMediaParamInfo_GetParamText 5 int,sptr
#comfunc global IMediaParamInfo_GetNumTimeFormats 6 sptr
#comfunc global IMediaParamInfo_GetSupportedTimeFormat 7 int,sptr
#comfunc global IMediaParamInfo_GetCurrentTimeFormat 8 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。