Gets the backing buffer for the specified string.
- string [in]
The string for which the backing buffer is to be retrieved.
- length [out, optional]
The number of Unicode characters in the backing buffer for string, including embedded null characters, but excluding the terminating null; or 0 if string is NULL.
A pointer to the buffer that provides the backing store for string, or the empty string if string is NULL or the empty string.
Use the WindowsGetStringRawBuffer function to obtain a pointer to the backing buffer of an HSTRING.
Do not change the contents of the buffer as all HSTRINGs are required to be immutable.
Windows Phone 8: This API is supported.
Windows Phone 8.1: This API is supported.
Minimum supported client
|Windows 8 [desktop apps | Windows Store apps]|
Minimum supported server
|Windows Server 2012 [desktop apps | Windows Store apps]|