IMFCameraControlDefaultsCollection::GetControl 方法 (mfidl.h)

使用指定的从零开始的索引从集合中获取控件。

语法

HRESULT GetControl(
  [in] ULONG                    index,
       IMFCameraControlDefaults **configuration
);

parameters

[in] index

要检索的控件的索引。

configuration

接收指向表示检索控件的 IMFCameraControlDefaults 实例的指针。

返回值

HRESULT 值,包括以下内容。

说明
S_OK 成功。
MF_E_INVALIDINDEX 索引已走出允许的范围。

注解

指定的索引必须小于 GetControlCount 返回的值。

要求

   
最低受支持的客户端 Windows 11内部版本 22621
最低受支持的服务器 Windows 11内部版本 22621
标头 mfidl.h