#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICaptionServiceDescriptor "{40834007-6834-46F0-BD45-D5F6A6BE258C}"
#usecom global ICaptionServiceDescriptor IID_ICaptionServiceDescriptor "{}"
#comfunc global ICaptionServiceDescriptor_GetNumberOfServices 3 var
#comfunc global ICaptionServiceDescriptor_GetLanguageCode 4 int,var
#comfunc global ICaptionServiceDescriptor_GetCaptionServiceNumber 5 int,var
#comfunc global ICaptionServiceDescriptor_GetCCType 6 int,var
#comfunc global ICaptionServiceDescriptor_GetEasyReader 7 int,var
#comfunc global ICaptionServiceDescriptor_GetWideAspectRatio 8 int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ICaptionServiceDescriptor "{40834007-6834-46F0-BD45-D5F6A6BE258C}"
#usecom global ICaptionServiceDescriptor IID_ICaptionServiceDescriptor "{}"
#comfunc global ICaptionServiceDescriptor_GetNumberOfServices 3 sptr
#comfunc global ICaptionServiceDescriptor_GetLanguageCode 4 int,sptr
#comfunc global ICaptionServiceDescriptor_GetCaptionServiceNumber 5 int,sptr
#comfunc global ICaptionServiceDescriptor_GetCCType 6 int,sptr
#comfunc global ICaptionServiceDescriptor_GetEasyReader 7 int,sptr
#comfunc global ICaptionServiceDescriptor_GetWideAspectRatio 8 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。