Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ SecureStringToGlobalAllocUnicode()

static IntPtr System.Runtime.InteropServices.Marshal.SecureStringToGlobalAllocUnicode ( SecureString s)
inlinestatic

Definition at line 1284 of file Marshal.cs.

1285 {
1286 if (s == null)
1287 {
1288 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
1289 }
1290 return s.MarshalToString(globalAlloc: true, unicode: true);
1291 }

References System.s, and System.ThrowHelper.ThrowArgumentNullException().

Referenced by Microsoft.Win32.SafeHandles.SafePasswordHandle.SafePasswordHandle(), System.Net.NetworkCredential.MarshalToString(), System.Security.SecureStringMarshal.SecureStringToGlobalAllocUnicode(), and System.Diagnostics.Process.StartWithCreateProcess().