MFGetAttribute2UINT32asUINT64

Gets an attribute whose value is two UINT32 values packed into a UINT64.

Syntax

HRESULT MFGetAttribute2UINT32asUINT64(
         IMFAttributes *pAttributes,
         REFGUID guidKey,
         UINT32 *punHigh32,
         UINT32 *punLow32
)  

Parameters

pAttributes
Type: IMFAttributes *

A pointer to the IMFAttributes interface of the attribute store.

guidKey
Type: REFGUID 

A GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_UINT64.

punHigh32
Type: UINT32 *

[out] Receives the high-order 32 bits.

punLow32
Type: UINT32 *

[out] Receives the low-order 32 bits.

Return value

Type: HRESULT 

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.
MF_E_ATTRIBUTENOTFOUND The specified key was not found.
MF_E_INVALIDTYPE The attribute value is not a UINT64.

Refer to Media Foundation return codes.

Remarks

Internally, this function calls IMFAttributes::GetUINT64 to get the UINT64 value, and Unpack2UINT32AsUINT64 to unpack the two 32-bit values.

Requirements

Header: Declared in mfapi.h.