Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFGetAttributeDouble function

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


double MFGetAttributeDouble(
  _In_  IMFAttributes *pAttributes,
  _In_  REFGUID guidKey,
  _In_  double fDefault


pAttributes [in]

Pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

GUID that identifies which value to retrieve.

fDefault [in]

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

Return value

Returns a double value.


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

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::GetDouble 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



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.