#define global IID_IMPEG2Component "{1493E353-1EB6-473C-802D-8E6B8EC9D2A9}"
#usecom global IMPEG2Component IID_IMPEG2Component "{055CB2D7-2969-45CD-914B-76890722F112}"
#comfunc global IMPEG2Component_get_PID 16 var
#comfunc global IMPEG2Component_put_PID 17 int
#comfunc global IMPEG2Component_get_PCRPID 18 var
#comfunc global IMPEG2Component_put_PCRPID 19 int
#comfunc global IMPEG2Component_get_ProgramNumber 20 var
#comfunc global IMPEG2Component_put_ProgramNumber 21 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IMPEG2Component "{1493E353-1EB6-473C-802D-8E6B8EC9D2A9}"
#usecom global IMPEG2Component IID_IMPEG2Component "{055CB2D7-2969-45CD-914B-76890722F112}"
#comfunc global IMPEG2Component_get_PID 16 sptr
#comfunc global IMPEG2Component_put_PID 17 int
#comfunc global IMPEG2Component_get_PCRPID 18 sptr
#comfunc global IMPEG2Component_put_PCRPID 19 int
#comfunc global IMPEG2Component_get_ProgramNumber 20 sptr
#comfunc global IMPEG2Component_put_ProgramNumber 21 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。