Share via


MFGetAttribute2UINT32asUINT64 Function

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
);

Parameter

  • pAttributes [in]
    A pointer to the IMFAttributes interface of the attribute store.

  • guidKey [in]
    A GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_UINT64.

  • punHigh32 [out]
    Receives the high-order 32 bits.

  • punLow32 [out]
    Receives the low-order 32 bits.

Rückgabewert

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

Rückgabecode Beschreibung
S_OK

The method succeeded.

MF_E_ATTRIBUTENOTFOUND

The specified key was not found.

MF_E_INVALIDTYPE

The attribute value is not a UINT64.

 

Hinweise

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

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfobjects.h (include Mfidl.h)

Siehe auch

Attributes and Properties

Media Foundation Functions