Creates an empty attribute store.
HRESULT MFCreateAttributes(
IMFAttributes **ppMFAttributes,
UINT32 cInitialSize
)
ppMFAttributes
Type: IMFAttributes **
[out] Receives a pointer to the IMFAttributes interface. The caller must release the interface.
cInitialSize
Type: UINT32
[in] The initial number of elements allocated for the attribute store. The attribute store grows as needed.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Refer to Media Foundation return codes.
Attributes are used throughout Microsoft Media Foundation to configure objects, describe media formats, query object properties, and other purposes. For more information, see Attributes in Media Foundation.
For a complete list of all the defined attribute GUIDs in Microsoft Media Foundation, see Media Foundation Attributes.
Header: Declared in mfapi.h.
Library: Use Mfplat.lib.