ホーム › Media.WindowsMediaFormat › IWMProfile3
IWMProfile3
COMメソッド 12
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 22 HRESULT GetStorageFormat(WMT_STORAGE_FORMAT* pnStorageFormat)
| pnStorageFormat | WMT_STORAGE_FORMAT* | out | 現在の格納形式WMT_STORAGE_FORMATを受け取る出力先。 |
vtbl 23 HRESULT SetStorageFormat(WMT_STORAGE_FORMAT nStorageFormat)
| nStorageFormat | WMT_STORAGE_FORMAT | in | 使用する格納形式を示すWMT_STORAGE_FORMAT列挙値。 |
| pcBS | DWORD* | out | 帯域共有オブジェクトの数を受け取る出力先。DWORDポインタ。 |
vtbl 25 HRESULT GetBandwidthSharing(DWORD dwBSIndex, IWMBandwidthSharing** ppBS)
| dwBSIndex | DWORD | in | 取得対象帯域共有の0起点インデックス。 |
| ppBS | IWMBandwidthSharing** | out | 帯域共有IWMBandwidthSharingを受け取る出力先。要Release。 |
vtbl 26 HRESULT RemoveBandwidthSharing(IWMBandwidthSharing* pBS)
| pBS | IWMBandwidthSharing* | in | 削除する帯域共有IWMBandwidthSharingへのポインタ。 |
vtbl 27 HRESULT AddBandwidthSharing(IWMBandwidthSharing* pBS)
| pBS | IWMBandwidthSharing* | in | プロファイルに追加する帯域共有オブジェクトへのポインタ。 |
vtbl 28 HRESULT CreateNewBandwidthSharing(IWMBandwidthSharing** ppBS)
| ppBS | IWMBandwidthSharing** | out | 新規作成された帯域共有オブジェクトを受け取る出力先。要Release。 |
vtbl 29 HRESULT GetStreamPrioritization(IWMStreamPrioritization** ppSP)
| ppSP | IWMStreamPrioritization** | out | 現在のストリーム優先順位IWMStreamPrioritizationを受け取る出力先。要Release。 |
vtbl 30 HRESULT SetStreamPrioritization(IWMStreamPrioritization* pSP)
| pSP | IWMStreamPrioritization* | in | 設定するストリーム優先順位オブジェクトへのポインタ。 |
vtbl 31 HRESULT RemoveStreamPrioritization()
vtbl 32 HRESULT CreateNewStreamPrioritization(IWMStreamPrioritization** ppSP)
| ppSP | IWMStreamPrioritization** | out | 新規作成されたストリーム優先順位オブジェクトを受け取る出力先。要Release。 |
| msDuration | ULONGLONG | in | 対象期間をミリ秒単位で指定する。 |
| pcPackets | ULONGLONG* | out | その期間に見込まれるパケット数を受け取る出力先。ULONGLONGポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IWMProfile3 "{00EF96CC-A461-4546-8BCD-C9A28F0E06F5}" #usecom global IWMProfile3 IID_IWMProfile3 "{}" #comfunc global IWMProfile3_GetStorageFormat 22 var #comfunc global IWMProfile3_SetStorageFormat 23 int #comfunc global IWMProfile3_GetBandwidthSharingCount 24 var #comfunc global IWMProfile3_GetBandwidthSharing 25 int,sptr #comfunc global IWMProfile3_RemoveBandwidthSharing 26 sptr #comfunc global IWMProfile3_AddBandwidthSharing 27 sptr #comfunc global IWMProfile3_CreateNewBandwidthSharing 28 sptr #comfunc global IWMProfile3_GetStreamPrioritization 29 sptr #comfunc global IWMProfile3_SetStreamPrioritization 30 sptr #comfunc global IWMProfile3_RemoveStreamPrioritization 31 #comfunc global IWMProfile3_CreateNewStreamPrioritization 32 sptr #comfunc global IWMProfile3_GetExpectedPacketCount 33 int64,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IWMProfile3 "{00EF96CC-A461-4546-8BCD-C9A28F0E06F5}" #usecom global IWMProfile3 IID_IWMProfile3 "{}" #comfunc global IWMProfile3_GetStorageFormat 22 sptr #comfunc global IWMProfile3_SetStorageFormat 23 int #comfunc global IWMProfile3_GetBandwidthSharingCount 24 sptr #comfunc global IWMProfile3_GetBandwidthSharing 25 int,sptr #comfunc global IWMProfile3_RemoveBandwidthSharing 26 sptr #comfunc global IWMProfile3_AddBandwidthSharing 27 sptr #comfunc global IWMProfile3_CreateNewBandwidthSharing 28 sptr #comfunc global IWMProfile3_GetStreamPrioritization 29 sptr #comfunc global IWMProfile3_SetStreamPrioritization 30 sptr #comfunc global IWMProfile3_RemoveStreamPrioritization 31 #comfunc global IWMProfile3_CreateNewStreamPrioritization 32 sptr #comfunc global IWMProfile3_GetExpectedPacketCount 33 int64,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。