Microsoft.Win32.SafeHandles.SafeUnicodeStringHandle sealed class SafeUnicodeStringHandle : SafeHandle Holds a managed string marshaled as a LPCWSTR. Documentation Code public SafeUnicodeStringHandle(string s) Marshal a String to a native LPCWSTR. It is permitted to pass "null" for the string. public SafeUnicodeStringHandle(ReadOnlySpan<char> s)