MFCreateCameraOcclusionStateMonitor function (mfidl.h)
Creates a new instance of IMFCameraOcclusionStateMonitor which allows an application to receive notifications when the camera occlusion state changes.
HRESULT MFCreateCameraOcclusionStateMonitor(
LPCWSTR symbolicLink,
IMFCameraOcclusionStateReportCallback *callback,
IMFCameraOcclusionStateMonitor **occlusionStateMonitor
);
symbolicLink
The symbolic link name of the video device for which occlusion state will be monitored. This value is enumerated through the standard Windows enumeration APIs such as MFEnumDeviceSources and DeviceInformation
callback
The IMFCameraOcclusionStateReportCallback implemented by the client to receive camera occlusion state change notifications.
occlusionStateMonitor
An output parameter that receives the IMFCameraOcclusionStateMonitor.
Returns an HRESULT value, including but not limited to the following values:
Error code | Description |
---|---|
S_OK | Succeeded |
E_INVALIDARG | One or more parameters is nullptr |
Requirement | Value |
---|---|
Minimum supported client | Windows Build 22000 |
Minimum supported server | Windows Build 22000 |
Header | mfidl.h |
Library | mfsensorgroup.lib |
DLL | mfsensorgroup.dll |