Skip to content

Fix docs for sourceString param in WindowsCreateString #2009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: docs
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ Creates a new [**HSTRING**](/windows/win32/winrt/hstring) based on the specified

Type: [in, optional] <b>LPCWSTR</b>

A null-terminated string to use as the source for the new [**HSTRING**](/windows/win32/winrt/hstring). To create a new, empty, or <b>NULL</b> string, pass <b>NULL</b> for <i>sourceString</i> and 0 for <i>length</i>.
The UTF-16LE-encoded text buffer to use as the source for the new [**HSTRING**](/windows/win32/winrt/hstring). To create a new, empty, or <b>NULL</b> string, pass <b>NULL</b> for <i>sourceString</i> and 0 for <i>length</i>.

This buffer is not required to be null-terminated. <b>WindowsCreateString</b> will copy its contents and add a null-terminator in the new buffer backing the returned [**HSTRING**](/windows/win32/winrt/hstring).

### -param length

Expand Down