IMFMediaEngineEx::GetPresentationAttribute method (mfmediaengine.h)

Gets a presentation attribute from the media resource.


HRESULT GetPresentationAttribute(
  [in]  REFGUID     guidMFAttribute,
  [out] PROPVARIANT *pvValue


[in] guidMFAttribute

The attribute to query.

For a list of presentation attributes, see Presentation Descriptor Attributes.

[out] pvValue

A pointer to a PROPVARIANT that receives the value. The method fills the PROPVARIANT with a copy of the stored value. The caller must free the PROPVARIANT by calling PropVariantClear.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfmediaengine.h

See also