WindowsCreateString function winrt
Creates a new HSTRING based on the specified source string.
HRESULT WindowsCreateString(
PCNZWCH sourceString,
UINT32 length,
HSTRING *string
);
Implementation
int WindowsCreateString(
Pointer<Utf16> sourceString,
int length,
Pointer<IntPtr> string,
) => _WindowsCreateString(sourceString, length, string);