IMFCameraControlDefaultsCollection::GetControl method (mfidl.h)

Gets the control from the collection using the specified zero-based index.

Syntax

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

Parameters

[in] index

The index of the control to retrieve.

configuration

Receives a pointer to a IMFCameraControlDefaults instance representing the retrieved control.

Return value

A HRESULT value, including the following.

Value Description
S_OK Success.
MF_E_INVALIDINDEX The index was out of the allowed range.

Remarks

The specified index must be less than the value returned by GetControlCount.

Requirements

Requirement Value
Minimum supported client Windows 11 Build 22621
Minimum supported server Windows 11 Build 22621
Header mfidl.h