Return value

Remarks

Use the WindowsDuplicateString function to copy an
HSTRING. If string was created by calling the
WindowsCreateString function, the reference count of the backing buffer is incremented. If string was created by calling the
WindowsCreateStringReference function, the Windows Runtime copies its source string to a new buffer and starts a reference count, which means that newString is not a fast-pass string.

Each call to the WindowsDuplicateString function must be matched with a corresponding call to
WindowsDeleteString.