Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFGetAttributeUINT32 function

Returns a UINT32 value from an attribute store, or a default value if the attribute is not present.


UINT32 MFGetAttributeUINT32(
  _In_ IMFAttributes *pAttributes,
  _In_ REFGUID       guidKey,
  _In_ UINT32        unDefault


pAttributes [in]

Pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

GUID that identifies which value to retrieve.

unDefault [in]

Default value to return if the attribute store does not contain the specified attribute.

Return value

Returns a UINT32 value.


This helper function queries the attribute store for the UINT32 value specified by guidKey. If the value is not present or does not have type UINT32, the function returns unDefault.

This function is convenient because it never returns a failure code. However, if the attribute in question does not have a meaningful default value, you should call IMFAttributes::GetUINT32 and check for MF_E_ATTRIBUTENOTFOUND.


Minimum supported client

Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 [desktop apps | UWP apps]



See also

Media Foundation Functions
Attributes and Properties



© 2018 Microsoft