119 references to Win32Exception
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
ProcessTracker.cs (2)
43throw new Win32Exception(); 61throw new Win32Exception();
Microsoft.Build (1)
BackEnd\Components\Communications\NodeLauncher.cs (1)
165System.ComponentModel.Win32Exception e = new System.ComponentModel.Win32Exception();
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\NativePatching.cs (1)
73throw new Win32Exception();
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
206throw new Win32Exception();
Microsoft.DotNet.RemoteExecutor (1)
MiniDump.cs (1)
33throw new Win32Exception();
PresentationCore (12)
MS\Internal\AppModel\CookieHandler.cs (2)
120throw new Win32Exception(/*uses last error code*/); 137throw new Win32Exception(/*uses last error code*/);
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (1)
57throw new Win32Exception();
MS\Internal\FontCache\FontCacheUtil.cs (1)
357throw new Win32Exception();
MS\Internal\Text\TextInterface\DWriteLoader.cs (1)
21throw new DllNotFoundException("dwrite.dll", new Win32Exception());
System\Windows\Input\TextCompositionManager.cs (1)
411throw new Win32Exception(); // Initializes with Marshal.GetLastPInvokeError()
System\Windows\InterOp\D3DImage.cs (1)
701throw new Win32Exception();
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
234throw new System.ComponentModel.Win32Exception();
System\Windows\Media\Imaging\BitmapDownload.cs (1)
136throw new Win32Exception();
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1303throw new Win32Exception();
System\Windows\Ole\WpfOleServices.cs (1)
53throw new Win32Exception();
System\Windows\UIElement.cs (1)
1142throw new Win32Exception();
PresentationFramework (55)
MS\Internal\AppModel\AppSecurityManager.cs (1)
137new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
System\Windows\Controls\Primitives\Popup.cs (1)
3226throw new Win32Exception();
System\Windows\Standard\NativeMethods.cs (12)
2355throw new Win32Exception(); 2410throw new Win32Exception(); 2423throw new Win32Exception(); 2436throw new Win32Exception(); 2599throw new Win32Exception(); 2611throw new Win32Exception(); 2726throw new Win32Exception(); 2764throw new Win32Exception(); 2802throw new Win32Exception(); 2858throw new Win32Exception(); 2934throw new Win32Exception(); 2956throw new Win32Exception();
System\Windows\SystemParameters.cs (40)
115throw new Win32Exception(); 146throw new Win32Exception(); 179throw new Win32Exception(); 208throw new Win32Exception(); 298throw new Win32Exception(); 327throw new Win32Exception(); 356throw new Win32Exception(); 463throw new Win32Exception(); 581throw new Win32Exception(); 609throw new Win32Exception(); 637throw new Win32Exception(); 665throw new Win32Exception(); 693throw new Win32Exception(); 721throw new Win32Exception(); 757throw new Win32Exception(); 788throw new Win32Exception(); 820throw new Win32Exception(); 1001throw new Win32Exception(); 1028throw new Win32Exception(); 1057throw new Win32Exception(); 1160throw new Win32Exception(); 1191throw new Win32Exception(); 1224throw new Win32Exception(); 1252throw new Win32Exception(); 1280throw new Win32Exception(); 1308throw new Win32Exception(); 1359throw new Win32Exception(); 1387throw new Win32Exception(); 1415throw new Win32Exception(); 1460throw new Win32Exception(); 1488throw new Win32Exception(); 1516throw new Win32Exception(); 1795throw new Win32Exception(); 1823throw new Win32Exception(); 1873throw new Win32Exception(); 1903throw new Win32Exception(); 1932throw new Win32Exception(); 1961throw new Win32Exception(); 4970throw new Win32Exception(); 5764throw new Win32Exception();
System\Windows\Window.cs (1)
3890throw new Win32Exception();
ReachFramework (3)
PrintConfig\FallbackPTProvider.cs (3)
514throw new Win32Exception(); 586throw new Win32Exception(); 602throw new Win32Exception();
System.Console (1)
System\ConsolePal.Unix.cs (1)
886throw new Win32Exception();
System.Diagnostics.Process (8)
System\Diagnostics\Process.Linux.cs (2)
193throw new Win32Exception(); // match Windows exception 204throw new Win32Exception(); // match Windows exception
System\Diagnostics\Process.Unix.cs (6)
87throw new Win32Exception(); // same exception as on Windows 119(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 133(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 301throw new Win32Exception(); // match Windows exception 833throw new Win32Exception(); 1084throw new Win32Exception();
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
52Debug.Fail($"GetWindowText failed. Error: {new Win32Exception().Message}");
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
357throw new Win32Exception();
System.Windows.Forms (16)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
591return height == -1 ? throw new Win32Exception() : height; 1968return h == -1 ? throw new Win32Exception() : h;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1428throw new Win32Exception(); 1483throw new Win32Exception();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1799throw new Win32Exception();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
237throw new Win32Exception();
System\Windows\Forms\Form.cs (1)
6056throw new Win32Exception();
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
710throw new Win32Exception();
System\Windows\Forms\NativeWindow.cs (1)
179throw new Win32Exception();
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
168throw new Win32Exception();
System\Windows\Forms\Rendering\ControlPaint.cs (2)
204throw new Win32Exception(); 216throw new Win32Exception();
System\Windows\Forms\SendKeys\SendKeys.cs (1)
742throw new Win32Exception();
System\Windows\Forms\WindowSubclassHandler.cs (3)
104throw new Win32Exception(); 189throw new Win32Exception(); 208throw new Win32Exception();
System.Windows.Forms.Interop.Tests (3)
PropertyGridTests.cs (3)
93throw new Win32Exception(); 101throw new Win32Exception(); 113throw new Win32Exception();
System.Windows.Forms.Primitives.TestUtilities (2)
Win32\WindowClass.cs (1)
118throw new Win32Exception();
Windows\Win32\System\Com\ComClassFactory.cs (1)
30throw new Win32Exception();
UIAutomationClient (1)
MS\Internal\Automation\WinEventWrap.cs (1)
113throw new Win32Exception();
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
1482throw new Win32Exception();
UIAutomationTypes (9)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (9)
101throw new Win32Exception(); 317throw new Win32Exception(); 451throw new Win32Exception(); 506throw new Win32Exception(); 525throw new Win32Exception(); 775throw new Win32Exception(); 842throw new Win32Exception(); 1055throw new Win32Exception(); 1067throw new Win32Exception();