MFCreateSensorProfile function (mfidl.h)

Creates a sensor profile, based on the specified type, index, and optional constraints.

Syntax

HRESULT MFCreateSensorProfile(
  [in]           REFGUID          ProfileType,
  [in, out]      UINT32           ProfileIndex,
  [in, optional] LPCWSTR          Constraints,
  [out]          IMFSensorProfile **ppProfile
);

Parameters

[in] ProfileType

The profile type to create.

[in, out] ProfileIndex

The profile index.

[in, optional] Constraints

Any optional constraints to be put on the profile.

[out] ppProfile

On success, returns a double pointer to the IMFSensorProfile containing the sensor profile.

Return value

This function does not return a value.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfidl.h
Library Mfsensorgroup.lib
DLL Mfsensorgroup.dll