36 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 (1)
NativeWin32Exception.cs (1)
33: base(nativeErrorCode, GetFormattedMessageForNativeErrorCode(nativeErrorCode, messagePrefix))
Microsoft.Build.Utilities.Core (2)
LockCheck.cs (1)
394throw new Win32Exception(res, $"{message} ({apiName}() error {res}: {reason})");
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)
192throw new Win32Exception(errorCode, SR.Format(SR.Cursor_LoadImageFailure, fileName));
PresentationFramework (1)
System\Windows\Standard\ErrorCodes.cs (1)
463return new Win32Exception(code, message);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
1747return new Win32Exception(errorCode, msg);
System\Diagnostics\Process.Unix.cs (1)
1058throw 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)
System.Private.Windows.Core (4)
System\Private\Windows\Ole\DragDropHelper.cs (4)
208throw new Win32Exception(Marshal.GetLastSystemError(), SR.ExternalException); 215throw new Win32Exception(Marshal.GetLastSystemError(), SR.ExternalException); 366throw new Win32Exception(Marshal.GetLastSystemError(), SR.ExternalException); 373throw new Win32Exception(Marshal.GetLastSystemError(), SR.ExternalException);
System.Windows.Forms (10)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
858throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
System\Windows\Forms\Control.cs (5)
1299throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32)); 6998throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 9273throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 10213throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 10229throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
268throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.RichEdit41));
System\Windows\Forms\Dialogs\MessageBox.cs (1)
470throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Shell32));
System\Windows\Forms\NativeWindow.cs (1)
472throw new Win32Exception(lastWin32Error, SR.ErrorCreatingHandle);
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
147throw new Win32Exception(Marshal.GetLastWin32Error(), SR.InvalidWndClsName);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (4)
49throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32GetThreadsDpiContextFailed); 64throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, behavior)); 79throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, _originalDpiHostingBehavior)); 85throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed, _originalDpiAwarenessContext));
System.Windows.Forms.Tests (1)
System\Windows\Forms\RichTextBoxTests.cs (1)
11069throw new Win32Exception(lastWin32Error, $"Failed to load '{NativeDll}'");
System.Windows.Forms.UI.IntegrationTests (1)
ImageListTests.cs (1)
82throw new Win32Exception(lastWin32Error, "Failed to retrieves the count of GDI handles");