Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MFGetAttributeUINT64 function

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


UINT64 MFGetAttributeUINT64(
  _In_ IMFAttributes *pAttributes,
  _In_ REFGUID       guidKey,
  _In_ UINT64        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 UINT64 value.


This helper function queries the attribute store for the UINT64 value specified by guidKey. If the value is not present, 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::GetUINT64 and check for MF_E_ATTRIBUTENOTFOUND.


Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]



See also

Media Foundation Functions
Attributes and Properties



Community Additions

© 2015 Microsoft