IMFMediaSession::Shutdown method (mfidl.h)

Shuts down the Media Session and releases all the resources used by the Media Session.


HRESULT Shutdown();

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
The method succeeded.


Call this method when you are done using the Media Session, before the final call to IUnknown::Release. Otherwise, your application will leak memory.

After this method is called, other IMFMediaSession methods return MF_E_SHUTDOWN.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also