120 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)
75throw new Win32Exception();
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
207throw new Win32Exception();
Microsoft.DotNet.RemoteExecutor (1)
MiniDump.cs (1)
33throw new Win32Exception();
PresentationCore (13)
MS\Internal\AppModel\CookieHandler.cs (2)
121throw new Win32Exception(/*uses last error code*/); 138throw new Win32Exception(/*uses last error code*/);
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (1)
58throw new Win32Exception();
MS\Internal\FontCache\FontCacheUtil.cs (1)
358throw new Win32Exception();
MS\Internal\Text\TextInterface\DWriteLoader.cs (1)
21throw new DllNotFoundException("dwrite.dll", new Win32Exception());
System\Windows\DataFormats.cs (1)
101throw new System.ComponentModel.Win32Exception();
System\Windows\dataobject.cs (2)
1072throw new System.ComponentModel.Win32Exception(); 1138throw new System.ComponentModel.Win32Exception();
System\Windows\InterOp\D3DImage.cs (1)
702throw new Win32Exception();
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
235throw new System.ComponentModel.Win32Exception();
System\Windows\Media\Imaging\BitmapDownload.cs (1)
138throw new Win32Exception();
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1311throw new Win32Exception();
System\Windows\UIElement.cs (1)
1143throw new Win32Exception();
PresentationFramework (55)
MS\Internal\AppModel\AppSecurityManager.cs (1)
138new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
System\Windows\Controls\Primitives\Popup.cs (1)
3227throw new Win32Exception();
System\Windows\Standard\NativeMethods.cs (12)
2364throw new Win32Exception(); 2419throw new Win32Exception(); 2432throw new Win32Exception(); 2445throw new Win32Exception(); 2608throw new Win32Exception(); 2620throw new Win32Exception(); 2735throw new Win32Exception(); 2773throw new Win32Exception(); 2811throw new Win32Exception(); 2867throw new Win32Exception(); 2943throw new Win32Exception(); 2965throw new Win32Exception();
System\Windows\SystemParameters.cs (40)
116throw new Win32Exception(); 147throw new Win32Exception(); 180throw new Win32Exception(); 209throw new Win32Exception(); 299throw new Win32Exception(); 328throw new Win32Exception(); 357throw new Win32Exception(); 464throw new Win32Exception(); 582throw new Win32Exception(); 610throw new Win32Exception(); 638throw new Win32Exception(); 666throw new Win32Exception(); 694throw new Win32Exception(); 722throw new Win32Exception(); 758throw new Win32Exception(); 789throw new Win32Exception(); 821throw new Win32Exception(); 1002throw new Win32Exception(); 1029throw new Win32Exception(); 1058throw new Win32Exception(); 1161throw new Win32Exception(); 1192throw new Win32Exception(); 1225throw new Win32Exception(); 1253throw new Win32Exception(); 1281throw new Win32Exception(); 1309throw new Win32Exception(); 1360throw new Win32Exception(); 1388throw new Win32Exception(); 1416throw new Win32Exception(); 1461throw new Win32Exception(); 1489throw new Win32Exception(); 1517throw new Win32Exception(); 1796throw new Win32Exception(); 1824throw new Win32Exception(); 1874throw new Win32Exception(); 1904throw new Win32Exception(); 1933throw new Win32Exception(); 1962throw new Win32Exception(); 4971throw new Win32Exception(); 5765throw new Win32Exception();
System\Windows\Window.cs (1)
3891throw new Win32Exception();
ReachFramework (3)
PrintConfig\FallbackPTProvider.cs (3)
515throw new Win32Exception(); 587throw new Win32Exception(); 603throw 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)
358throw 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)
1802throw new Win32Exception();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
237throw new Win32Exception();
System\Windows\Forms\Form.cs (1)
6062throw new Win32Exception();
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
716throw 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)
207throw new Win32Exception(); 219throw 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)
114throw new Win32Exception();
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
1483throw new Win32Exception();
UIAutomationTypes (9)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (9)
117throw new Win32Exception(); 433throw new Win32Exception(); 594throw new Win32Exception(); 662throw new Win32Exception(); 684throw new Win32Exception(); 934throw new Win32Exception(); 999throw new Win32Exception(); 1252throw new Win32Exception(); 1264throw new Win32Exception();