IMFCameraControlNotify::OnError method (mfidl.h)

Raised when an unrecoverable error occurs within the associated IMFCameraControlMonitor.

Syntax

void OnError(
  HRESULT hrStatus
);

Parameters

hrStatus

The internal error code associated with the error. Possible error values include the following:

Value Description
E_OUTOFMEMORY There were insufficient resources available for the monitor to function properly.
MF_INVALID_STATE_ERR A corruption of memory states has occurred.

Return value

None

Remarks

After the call to this function returns, the system will cleanup and remove the reference to the IMFCameraControlNotify. Clients do not need to call IMFCameraControlMonitor::Shutdown after receiving an OnError notification.

To see a code example that implements this method, see IMFCameraControlNotify.

Requirements

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