IMFMediaSession::Shutdown method
Shuts down the Media Session and releases all the resources used by the Media Session.
Syntax
HRESULT Shutdown();
Parameters
This method has no parameters.
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. |
Remarks
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.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
See also
Show: