MFGetAttributeSize function (mfapi.h)

Retrieves an attribute whose value is a size, expressed as a width and height.


HRESULT MFGetAttributeSize(
  [in]  IMFAttributes *pAttributes,
  [in]  REFGUID       guidKey,
  [out] UINT32        *punWidth,
  [out] UINT32        *punHeight


[in] pAttributes

Pointer to the IMFAttributes interface of the attribute store.

[in] guidKey

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

[out] punWidth

Receives the width.

[out] punHeight

Receives the height.

Return value

This function can return one of these values.


Some attributes specify a size as a packed UINT64 value. Use this function to get the numerator and denominator as separate 32-bit values.


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

See also


Media Foundation Functions