MFCreateCameraControlMonitor function (mfidl.h)
Creates an instance of IMFCameraControlMonitor
Syntax
HRESULT MFCreateCameraControlMonitor(
[in] LPCWSTR symbolicLink,
[in] IMFCameraControlNotify *callback,
[out] IMFCameraControlMonitor **ppCameraControlMonitor
);
Parameters
[in] symbolicLink
String symbolic link name of the video capture device that is active.
[in] callback
Pointer to an object that implements the IMFCameraControlNotify callback interface.
[out] ppCameraControlMonitor
Receives a pointer to the created IMFCameraControlMonitor object.
Return value
An HRESULT including the following:
Value | Description |
---|---|
S_OK | Success. |
E_INVALIDARG | The symbolic link specified in symbolicLink doesn't match a known camera device. |
Remarks
The symbolic link can be obtained from an MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK attribute returned by MFEnumDeviceSources or obtained by accessing the DeviceInformation.Id property obtained through the Windows.Devices.Enumeration APIs.
Requirements
Requirement | Value |
---|---|
Header | mfidl.h |
Library | mfsensorgroup.lib |
DLL | mfsensorgroup.dll |