MFIsVirtualCameraTypeSupported function (mfvirtualcamera.h)

Returns a value indicating if a particular virtual camera is supported on the current device.

Syntax

HRESULT MFIsVirtualCameraTypeSupported(
  MFVirtualCameraType type,
  BOOL                *supported
);

Parameters

type

A member of the MFVirtualCameraType enumeration specifying the virtual camera type for which support is being queried. In the current release, only MFVirtualCameraType_SoftwareCameraSource is supported.

supported

An output parameter that receives a boolean indicating if the specified camera type is supported on the current device.

Return value

Returns an HRESULT value, including but not limited to the following values:

Error code Description
S_OK Succeeded
E_INVALIDARG An input parameter is invalid.
E_POINTER The supported parameter is nullptr.
E_ACCESSDENIED Privacy control is set to deny access to the camera for the app, user, or system. Or the caller is not an administrator and the parameters provided are only valid for administrator access.

Requirements

Requirement Value
Minimum supported client Windows Build 22000
Header mfvirtualcamera.h
Library mfsensorgroup.lib
DLL mfsensorgroup.dll

See also

MFVirtualCameraType