IPortableDeviceValues::SetStringValue method (portabledevicetypes.h)
Adds a new string value (type VT_LPWSTR) or overwrites an existing one.
Syntax
HRESULT SetStringValue(
[in] REFPROPERTYKEY key,
[in] LPCWSTR Value
);
Parameters
[in] key
A REFPROPERTYKEY that specifies the item to create or overwrite.
[in] Value
A LPCWSTR that specifies the new value. The string is copied, so the caller can release the memory allocated for this value after calling this method.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
Any existing key memory will be released appropriately.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | portabledevicetypes.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for