#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPAT "{6623B511-4B5F-43C3-9A01-E8FF84188060}"
#usecom global IPAT IID_IPAT "{}"
#comfunc global IPAT_Initialize 3 sptr,sptr
#comfunc global IPAT_GetTransportStreamId 4 var
#comfunc global IPAT_GetVersionNumber 5 var
#comfunc global IPAT_GetCountOfRecords 6 var
#comfunc global IPAT_GetRecordProgramNumber 7 int,var
#comfunc global IPAT_GetRecordProgramMapPid 8 int,var
#comfunc global IPAT_FindRecordProgramMapPid 9 int,var
#comfunc global IPAT_RegisterForNextTable 10 sptr
#comfunc global IPAT_GetNextTable 11 sptr
#comfunc global IPAT_RegisterForWhenCurrent 12 sptr
#comfunc global IPAT_ConvertNextToCurrent 13
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IPAT "{6623B511-4B5F-43C3-9A01-E8FF84188060}"
#usecom global IPAT IID_IPAT "{}"
#comfunc global IPAT_Initialize 3 sptr,sptr
#comfunc global IPAT_GetTransportStreamId 4 sptr
#comfunc global IPAT_GetVersionNumber 5 sptr
#comfunc global IPAT_GetCountOfRecords 6 sptr
#comfunc global IPAT_GetRecordProgramNumber 7 int,sptr
#comfunc global IPAT_GetRecordProgramMapPid 8 int,sptr
#comfunc global IPAT_FindRecordProgramMapPid 9 int,sptr
#comfunc global IPAT_RegisterForNextTable 10 sptr
#comfunc global IPAT_GetNextTable 11 sptr
#comfunc global IPAT_RegisterForWhenCurrent 12 sptr
#comfunc global IPAT_ConvertNextToCurrent 13
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。