16 references to Win32Exception
Microsoft.AspNetCore.Server.HttpSys (1)
HttpSysException.cs (1)
27: base(errorCode, message)
Microsoft.Build (1)
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
Microsoft.Build.Engine.OM.UnitTests (1)
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
Microsoft.Build.Tasks.Core (2)
LockCheck.cs (1)
381throw new Win32Exception(res, $"{message} ({apiName}() error {res}: {reason})");
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
Microsoft.Build.Utilities.Core (1)
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
MSBuild (1)
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
PresentationCore (1)
System\Windows\Input\Cursor.cs (1)
201throw new Win32Exception(errorCode, SR.Format(SR.Cursor_LoadImageFailure, fileName));
PresentationFramework (1)
System\Windows\Standard\ErrorCodes.cs (1)
472return new Win32Exception(code, message);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
1745return new Win32Exception(errorCode, msg);
System\Diagnostics\Process.Unix.cs (1)
1052throw new Win32Exception(errorInfo.RawErrno, errorInfo.GetErrorMessage());
System.Net.HttpListener (1)
System\Net\HttpListenerException.cs (1)
24public HttpListenerException(int errorCode, string message) : base(errorCode, message)
System.Net.Primitives (1)
System\Net\SocketException.cs (1)
45internal SocketException(SocketError socketError, string? message) : base(GetNativeErrorForSocketError(socketError), message)
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketException.cs (1)
51: base(nativeError, message)
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (2)
33public Win32Exception(int error) : this(error, Marshal.GetPInvokeErrorMessage(error)) 48public Win32Exception(string? message) : this(Marshal.GetLastPInvokeError(), message)