Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Gets an attribute from the underlying media source.
HRESULT GetPresentationAttribute(
[in] DWORD dwStreamIndex,
[in] REFGUID guidAttribute,
[out] PROPVARIANT *pvarAttribute
);
[in] dwStreamIndex
The stream or object to query. The value can be any of the following.
[in] guidAttribute
A GUID that identifies the attribute to retrieve. If the dwStreamIndex parameter equals MF_SOURCE_READER_MEDIASOURCE, guidAttribute can specify one of the following:
[out] pvarAttribute
A pointer to a PROPVARIANT that receives the value of the attribute. Call the PropVariantClear function to free the PROPVARIANT.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfreadwrite.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today