Returns a UINT64 value from an attribute store, or a default value if the attribute is not present.
UINT64 MFGetAttributeUINT64(
IMFAttributes *pAttributes,
REFGUID guidKey,
UINT64 unDefault
)
pAttributes
Type: IMFAttributes *
Pointer to the IMFAttributes interface of the attribute store.
guidKey
Type: REFGUID
GUID that identifies which value to retrieve.
unDefault
Type: UINT64
Default value to return if the attribute store does not contain the specified attribute.
Type: UINT64
Returns a UINT64 value.
| Return code | Description |
|---|
Refer to Media Foundation return codes.
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.
Header: Declared in mfapi.h.