Associates a GUID value with a key.
public:
HRESULT SetGUID(
REFGUID guidKey,
REFGUID guidValue
)
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.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
| E_OUTOFMEMORY | Insufficient memory. |
Refer to Media Foundation return codes.
To retrieve the GUID value, call IMFAttributes::GetGUID.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use Mfuuid.lib.