Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFCreateAttributes
Collapse the table of content
Expand the table of content

MFCreateAttributes function

Creates an empty attribute store.

Syntax


HRESULT MFCreateAttributes(
  _Out_ IMFAttributes **ppMFAttributes,
  _In_  UINT32        cInitialSize
);

Parameters

ppMFAttributes [out]

Receives a pointer to the IMFAttributes interface. The caller must release the interface.

cInitialSize [in]

The initial number of elements allocated for the attribute store. The attribute store grows as needed.

Return value

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

Remarks

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 Media Foundation, see Media Foundation Attributes.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Attributes in Media Foundation
Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft