IMFMediaSourceTopologyProvider::GetMediaSourceTopology method (mfidl.h)

Returns a topology for a media source that builds an internal topology.


HRESULT GetMediaSourceTopology(
  [in]  IMFPresentationDescriptor *pPresentationDescriptor,
  [out] IMFTopology               **ppTopology


[in] pPresentationDescriptor

A pointer to the IMFPresentationDescriptor interface of the media source's presentation descriptor. To get this pointer, either call IMFMediaSource::CreatePresentationDescriptor on the media source, or get the pointer from the MENewPresentation event.

[out] ppTopology

Receives a pointer to the topology's IMFTopology interface. The caller must release the interface.

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.
Invalid argument. For example, a NULL input parameter, or the presentation descriptor is not valid.


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


Sequencer Source