IMFAttributes Interface

Provides a generic way to store key/value pairs on an object. The keys are GUIDs, and the values can be any of the following data types: UINT32, UINT64, double, GUID, wide-character string, byte array, or IUnknown pointer. The standard implementation of this interface holds a thread lock while values are added, deleted, or retrieved.

For a list of predefined attribute GUIDs, see Media Foundation Attributes. Each attribute GUID has an expected data type. The various “set” methods in IMFAttributes do not validate the type against the attribute GUID. It is the application’s responsibility to set the correct type for the attribute.

To create an empty attribute store, call MFCreateAttributes.

Syntax

interface IMFAttributes : public IUnknown  

Remarks

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use Mfuuid.lib.