IMFAttributes::GetGUID Method

Retrieves a GUID value associated with a key.

Syntax

public:
HRESULT GetGUID(
         REFGUID guidKey,
         GUID *pguidValue
)  

Parameters

guidKey
Type: REFGUID 

[in]

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

pguidValue
Type: GUID *

[out]

Receives a GUID value. If the key is found and the data type is GUID, the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.

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 GUID.

Refer to Media Foundation return codes.

Remarks

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use Mfuuid.lib.