#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPMT "{01F3B398-9527-4736-94DB-5195878E97A8}"
#usecom global IPMT IID_IPMT "{}"
#comfunc global IPMT_Initialize 3 sptr,sptr
#comfunc global IPMT_GetProgramNumber 4 var
#comfunc global IPMT_GetVersionNumber 5 var
#comfunc global IPMT_GetPcrPid 6 var
#comfunc global IPMT_GetCountOfTableDescriptors 7 var
#comfunc global IPMT_GetTableDescriptorByIndex 8 int,sptr
#comfunc global IPMT_GetTableDescriptorByTag 9 int,var,sptr
#comfunc global IPMT_GetCountOfRecords 10 var
#comfunc global IPMT_GetRecordStreamType 11 int,var
#comfunc global IPMT_GetRecordElementaryPid 12 int,var
#comfunc global IPMT_GetRecordCountOfDescriptors 13 int,var
#comfunc global IPMT_GetRecordDescriptorByIndex 14 int,int,sptr
#comfunc global IPMT_GetRecordDescriptorByTag 15 int,int,var,sptr
#comfunc global IPMT_QueryServiceGatewayInfo 16 var,var
#comfunc global IPMT_QueryMPEInfo 17 var,var
#comfunc global IPMT_RegisterForNextTable 18 sptr
#comfunc global IPMT_GetNextTable 19 sptr
#comfunc global IPMT_RegisterForWhenCurrent 20 sptr
#comfunc global IPMT_ConvertNextToCurrent 21
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IPMT "{01F3B398-9527-4736-94DB-5195878E97A8}"
#usecom global IPMT IID_IPMT "{}"
#comfunc global IPMT_Initialize 3 sptr,sptr
#comfunc global IPMT_GetProgramNumber 4 sptr
#comfunc global IPMT_GetVersionNumber 5 sptr
#comfunc global IPMT_GetPcrPid 6 sptr
#comfunc global IPMT_GetCountOfTableDescriptors 7 sptr
#comfunc global IPMT_GetTableDescriptorByIndex 8 int,sptr
#comfunc global IPMT_GetTableDescriptorByTag 9 int,sptr,sptr
#comfunc global IPMT_GetCountOfRecords 10 sptr
#comfunc global IPMT_GetRecordStreamType 11 int,sptr
#comfunc global IPMT_GetRecordElementaryPid 12 int,sptr
#comfunc global IPMT_GetRecordCountOfDescriptors 13 int,sptr
#comfunc global IPMT_GetRecordDescriptorByIndex 14 int,int,sptr
#comfunc global IPMT_GetRecordDescriptorByTag 15 int,int,sptr,sptr
#comfunc global IPMT_QueryServiceGatewayInfo 16 sptr,sptr
#comfunc global IPMT_QueryMPEInfo 17 sptr,sptr
#comfunc global IPMT_RegisterForNextTable 18 sptr
#comfunc global IPMT_GetNextTable 19 sptr
#comfunc global IPMT_RegisterForWhenCurrent 20 sptr
#comfunc global IPMT_ConvertNextToCurrent 21
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。