ホーム › Media.DirectShow.Tv › IDvbParentalRatingDescriptor
IDvbParentalRatingDescriptor
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| pbVal | BYTE* | out | 記述子タグ(parental_rating_descriptor=0x55)を受け取るBYTEへのポインタ。 |
| pbVal | BYTE* | out | 記述子本体のバイト長を受け取るBYTEへのポインタ。 |
| pbVal | BYTE* | out | 国別視聴年齢制限レコード数を受け取るBYTEへのポインタ。 |
| bRecordIndex | BYTE | in | 取得対象レコードの0始まりインデックスを指定するBYTE。 |
| pszCountryCode | BYTE* | out | 対象国を示すISO3166国コード(3バイト)を受け取るBYTEバッファへのポインタ。 |
| pbVal | BYTE* | out | 視聴可能最低年齢を示すレーティング値(rating)を受け取るBYTEへのポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDvbParentalRatingDescriptor "{3AD9DDE1-FB1B-4186-937F-22E6B5A72A10}" #usecom global IDvbParentalRatingDescriptor IID_IDvbParentalRatingDescriptor "{}" #comfunc global IDvbParentalRatingDescriptor_GetTag 3 var #comfunc global IDvbParentalRatingDescriptor_GetLength 4 var #comfunc global IDvbParentalRatingDescriptor_GetCountOfRecords 5 var #comfunc global IDvbParentalRatingDescriptor_GetRecordRating 6 int,var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDvbParentalRatingDescriptor "{3AD9DDE1-FB1B-4186-937F-22E6B5A72A10}" #usecom global IDvbParentalRatingDescriptor IID_IDvbParentalRatingDescriptor "{}" #comfunc global IDvbParentalRatingDescriptor_GetTag 3 sptr #comfunc global IDvbParentalRatingDescriptor_GetLength 4 sptr #comfunc global IDvbParentalRatingDescriptor_GetCountOfRecords 5 sptr #comfunc global IDvbParentalRatingDescriptor_GetRecordRating 6 int,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。