From 6aaeec0827121e438a62c5a2ca24dbd3c4238e55 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 30 Apr 2025 20:34:33 -0700 Subject: [PATCH] Update nf-winstring-windowscreatestring.md --- .../content/winstring/nf-winstring-windowscreatestring.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk-api-src/content/winstring/nf-winstring-windowscreatestring.md b/sdk-api-src/content/winstring/nf-winstring-windowscreatestring.md index 3f78247963dc..78299ae4eb4e 100644 --- a/sdk-api-src/content/winstring/nf-winstring-windowscreatestring.md +++ b/sdk-api-src/content/winstring/nf-winstring-windowscreatestring.md @@ -58,7 +58,9 @@ Creates a new [**HSTRING**](/windows/win32/winrt/hstring) based on the specified Type: [in, optional] LPCWSTR -A null-terminated string to use as the source for the new [**HSTRING**](/windows/win32/winrt/hstring). To create a new, empty, or NULL string, pass NULL for sourceString and 0 for length. +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 NULL string, pass NULL for sourceString and 0 for length. + +This buffer is not required to be null-terminated. WindowsCreateString will copy its contents and add a null-terminator in the new buffer backing the returned [**HSTRING**](/windows/win32/winrt/hstring). ### -param length