MFShutdownObject function (mfidl.h)

Shuts down a Media Foundation object and releases all resources associated with the object.

This function is a helper function that wraps the IMFShutdown::Shutdown method. The function queries the object for the IMFShutdown interface and, if successful, calls Shutdown on the object.

Syntax

HRESULT MFShutdownObject(
  IUnknown *pUnk
);

Parameters

pUnk

Pointer to the IUnknown interface of the object.

Return value

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

Return code Description
S_OK
The function succeeded.

Remarks

This function is not related to the MFShutdown function, which shuts down the Media Foundation platform, as described in Initializing Media Foundation.

Requirements

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

See also

IMFShutdown

Media Foundation Functions