5 references to GetPInvokeErrorMessage
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\Sockets\SocketExceptionFactory.cs (1)
12return Marshal.GetPInvokeErrorMessage(nativeSocketError) + " " + endPoint.ToString();
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
33public Win32Exception(int error) : this(error, Marshal.GetPInvokeErrorMessage(error))
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (2)
61throw new OutOfMemoryException(Marshal.GetPInvokeErrorMessage(errorCode)); 64throw new ArgumentException(Marshal.GetPInvokeErrorMessage(errorCode));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
1271return GetPInvokeErrorMessage(GetLastPInvokeError());