ホーム › Media.MediaFoundation › IMFSensorProfileCollection
IMFSensorProfileCollection
COM公式ドキュメント
Media Foundation のセンサープロファイルオブジェクトのコレクションを保持します。
メソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 DWORD GetProfileCount()
vtbl 4 HRESULT GetProfile(DWORD Index, IMFSensorProfile** ppProfile)
指定したプロファイルを取得します。
| Index | DWORD | in | 取得するプロファイルのインデックス。 |
| ppProfile | IMFSensorProfile** | out | 成功した場合、指定したセンサープロファイルを記述する IMFSensorProfile オブジェクトへのダブルポインターを返します。 |
戻り値
このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。
vtbl 5 HRESULT AddProfile(IMFSensorProfile* pProfile)
指定したプロファイルをコレクションに追加します。
| pProfile | IMFSensorProfile* | in | 追加するプロファイルを記述する IMFSensorProfile オブジェクトへのポインター。 |
戻り値
このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。
vtbl 6 HRESULT FindProfile(SENSORPROFILEID* ProfileId, IMFSensorProfile** ppProfile)
指定したプロファイル ID に基づいてプロファイルを検索します。
| ProfileId | SENSORPROFILEID* | in | 検索するプロファイルの ID へのポインター。 |
| ppProfile | IMFSensorProfile** | out | 成功した場合、プロファイルへのダブルポインターを返します。 |
戻り値
このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。
vtbl 7 void RemoveProfileByIndex(DWORD Index)
指定したインデックスに基づいてプロファイルを削除します。
| Index | DWORD | in | 削除するプロファイルのインデックス。 |
戻り値
このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。
vtbl 8 void RemoveProfile(SENSORPROFILEID* ProfileId)
指定したプロファイル ID に基づいて、指定したプロファイルを削除します。
| ProfileId | SENSORPROFILEID* | in | 削除するプロファイルの SENSORPROFILEID へのポインター。 |
戻り値
このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMFSensorProfileCollection "{C95EA55B-0187-48BE-9353-8D2507662351}" #usecom global IMFSensorProfileCollection IID_IMFSensorProfileCollection "{}" #comfunc global IMFSensorProfileCollection_GetProfileCount 3 #comfunc global IMFSensorProfileCollection_GetProfile 4 int,sptr #comfunc global IMFSensorProfileCollection_AddProfile 5 sptr #comfunc global IMFSensorProfileCollection_FindProfile 6 var,sptr #comfunc global IMFSensorProfileCollection_RemoveProfileByIndex 7 int #comfunc global IMFSensorProfileCollection_RemoveProfile 8 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMFSensorProfileCollection "{C95EA55B-0187-48BE-9353-8D2507662351}" #usecom global IMFSensorProfileCollection IID_IMFSensorProfileCollection "{}" #comfunc global IMFSensorProfileCollection_GetProfileCount 3 #comfunc global IMFSensorProfileCollection_GetProfile 4 int,sptr #comfunc global IMFSensorProfileCollection_AddProfile 5 sptr #comfunc global IMFSensorProfileCollection_FindProfile 6 sptr,sptr #comfunc global IMFSensorProfileCollection_RemoveProfileByIndex 7 int #comfunc global IMFSensorProfileCollection_RemoveProfile 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。