Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

MFSetAttribute2UINT32asUINT64 function

Packs two UINT32 values into a UINT64 attribute value.


HRESULT MFSetAttribute2UINT32asUINT64(
  _In_ IMFAttributes *pAttributes,
  _In_ REFGUID       guidKey,
  _In_ UINT32        unHigh32,
  _In_ UINT32        unLow32


pAttributes [in]

A pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

A GUID that identifies the value to set. If this key already exists, the function overwrites the old value.

unHigh32 [in]

The value to store in the high-order 32 bits of the UINT64 value.

unLow32 [in]

The value to store in the low-order 32 bits of the UINT64 value.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


Internally, this functions calls Pack2UINT32AsUINT64 to create the 64-bit value, and IMFAttributes::SetUINT64 to set the attribute.


Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]


Mfobjects.h (include Mfidl.h)

See also

Attributes and Properties
Media Foundation Functions



Community Additions

© 2015 Microsoft