Multimedia Streaming Error and Success Codes

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

This API is deprecated. New applications should not use it.

The following list contains error messages and success notifications for applications that use the multimedia streaming interfaces. This list does not contain all possible errors; the errors shown apply specifically to the Microsoft® DirectShow® implementation of the multimedia streaming interfaces.

SymbolicCodeDescription
MS_S_PENDING0x00040001Sample update is not yet complete.
MS_S_NOUPDATE0x00040002Sample was not updated after forced completion.
MS_S_ENDOFSTREAM0x00040003End of stream. Sample not updated.
MS_E_SAMPLEALLOC0x80040401An IMediaStream object could not be removed from an IMultiMediaStream object because it still contains at least one allocated sample.
MS_E_PURPOSEID0x80040402The specified purpose ID can't be used for the call.
MS_E_NOSTREAM0x80040403No stream can be found with the specified attributes.
MS_E_NOSEEKING0x80040404Seeking not supported for this IMultiMediaStream object.
MS_E_INCOMPATIBLE0x80040405The stream formats are not compatible.
MS_E_BUSY0x80040406The sample is busy.
MS_E_NOTINIT0x80040407The object can't accept the call because its initialize function or equivalent has not been called.
MS_E_SOURCEALREADYDEFINED0x80040408Source already defined.
MS_E_INVALIDSTREAMTYPE0x80040409The stream type is not valid for this operation.
MS_E_NOTRUNNING0x8004040AThe IMultiMediaStream object is not in running state.
13 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.