Skip to main content
IMFMediaError::SetErrorCode method

Sets the error code.

Syntax


HRESULT SetErrorCode(
  [in]  MF_MEDIA_ENGINE_ERR error
);

Parameters

error [in]

The error code, specified as an MF_MEDIA_ENGINE_ERR value.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfmediaengine.h

See also

IMFMediaError