Associates a wide-character string with a key.
public:
HRESULT SetString(
REFGUID guidKey,
LPCWSTR wszValue
)
guidKey
Type: REFGUID
[in]
GUID that identifies the value to set. If this key already exists, the method overwrites the old value.
wszValue
Type: LPCWSTR
[in]
Null-terminated wide-character string to associate with this key. The method stores a copy of the string.
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. |
Refer to Media Foundation return codes.
To retrieve the string, call IMFAttributes::GetString or IMFAttributes::GetAllocatedString.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use Mfuuid.lib.