Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SecureStringToCoTaskMemAnsi()

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

Definition at line 1257 of file Marshal.cs.

1258 {
1259 if (s == null)
1260 {
1261 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
1262 }
1263 return s.MarshalToString(globalAlloc: false, unicode: false);
1264 }

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

Referenced by Internal.NativeCrypto.CapiHelper.CreateProvHandle(), and System.Security.SecureStringMarshal.SecureStringToCoTaskMemAnsi().