IMFAttributes::SetGUID Method

Associates a GUID value with a key.

Syntax

public:
HRESULT SetGUID(
         REFGUID guidKey,
         REFGUID guidValue
)  

Parameters

guidKey
Type: REFGUID 

[in]

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

guidValue
Type: REFGUID 

[in]

New value for this key.

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.
E_OUTOFMEMORY Insufficient memory.

Refer to Media Foundation return codes.

Remarks

To retrieve the GUID value, call IMFAttributes::GetGUID.

Requirements

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

Library: Use Mfuuid.lib.