WindowsGetStringLen function winrt
Gets the length, in Unicode characters, of the specified string.
To learn more, see learn.microsoft.com/windows/win32/api/winstring/nf-winstring-windowsgetstringlen.
Implementation
@pragma('vm:prefer-inline')
int WindowsGetStringLen(HSTRING? string) =>
_WindowsGetStringLen(string ?? nullptr);