MFGetAttribute2UINT32asUINT64 function (mfapi.h)

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

Syntax

HRESULT MFGetAttribute2UINT32asUINT64(
  [in]  IMFAttributes *pAttributes,
  [in]  REFGUID       guidKey,
  [out] UINT32        *punHigh32,
  [out] UINT32        *punLow32
);

Parameters

[in] pAttributes

A pointer to the IMFAttributes interface of the attribute store.

[in] guidKey

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

[out] punHigh32

Receives the high-order 32 bits.

[out] punLow32

Receives the low-order 32 bits.

Return value

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

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.

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h (include Mfapi.h)

See also

Attributes and Properties

Media Foundation Functions