195 references to Win32Exception
PresentationCore (11)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (2)
144throw new Win32Exception(/*uses last error code*/); 175throw new Win32Exception(/*uses last error code*/);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
506throw new Win32Exception();
Core\CSharp\System\Windows\DataFormats.cs (1)
122throw new System.ComponentModel.Win32Exception();
Core\CSharp\System\Windows\DataObject.cs (2)
1305throw new System.ComponentModel.Win32Exception(); 1393throw new System.ComponentModel.Win32Exception();
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
783throw new Win32Exception();
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
294throw new System.ComponentModel.Win32Exception();
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
174throw new Win32Exception();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1536throw new Win32Exception();
Core\CSharp\System\Windows\UIElement.cs (1)
1168throw new Win32Exception();
PresentationFramework (55)
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
223new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
3321throw new Win32Exception();
src\Framework\System\Windows\Standard\NativeMethods.cs (12)
2529throw new Win32Exception(); 2610throw new Win32Exception(); 2633throw new Win32Exception(); 2656throw new Win32Exception(); 2905throw new Win32Exception(); 2927throw new Win32Exception(); 3112throw new Win32Exception(); 3173throw new Win32Exception(); 3226throw new Win32Exception(); 3351throw new Win32Exception(); 3489throw new Win32Exception(); 3526throw new Win32Exception();
src\Framework\System\Windows\SystemParameters.cs (40)
131throw new Win32Exception(); 167throw new Win32Exception(); 205throw new Win32Exception(); 239throw new Win32Exception(); 334throw new Win32Exception(); 368throw new Win32Exception(); 402throw new Win32Exception(); 514throw new Win32Exception(); 638throw new Win32Exception(); 671throw new Win32Exception(); 704throw new Win32Exception(); 737throw new Win32Exception(); 770throw new Win32Exception(); 803throw new Win32Exception(); 844throw new Win32Exception(); 880throw new Win32Exception(); 917throw new Win32Exception(); 1104throw new Win32Exception(); 1136throw new Win32Exception(); 1170throw new Win32Exception(); 1278throw new Win32Exception(); 1314throw new Win32Exception(); 1352throw new Win32Exception(); 1385throw new Win32Exception(); 1418throw new Win32Exception(); 1451throw new Win32Exception(); 1507throw new Win32Exception(); 1540throw new Win32Exception(); 1573throw new Win32Exception(); 1623throw new Win32Exception(); 1656throw new Win32Exception(); 1689throw new Win32Exception(); 1973throw new Win32Exception(); 2006throw new Win32Exception(); 2062throw new Win32Exception(); 2097throw new Win32Exception(); 2131throw new Win32Exception(); 2165throw new Win32Exception(); 5559throw new Win32Exception(); 6398throw new Win32Exception();
src\Framework\System\Windows\Window.cs (1)
4007throw new Win32Exception();
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapterBase.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception());
System (41)
compmod\microsoft\win32\NativeMethods.cs (1)
247throw new Win32Exception();
net\System\Net\NetworkInformation\ping.cs (2)
636throw new Win32Exception(); // Gets last error 643throw new Win32Exception(); // Gets last error
net\System\Net\UnsafeNativeMethods.cs (1)
1720throw new Win32Exception(); // Calls GetLastError.
services\io\system\io\FileSystemWatcher.cs (1)
750OnError(new ErrorEventArgs(new Win32Exception()));
services\monitoring\system\diagnosticts\Process.cs (18)
271throw new Win32Exception(); 314throw new Win32Exception(); 733throw new Win32Exception(); 750throw new Win32Exception(); 775throw new Win32Exception(); 804throw new Win32Exception(); 907throw new Win32Exception(); 924throw new Win32Exception(); 1439throw new Win32Exception(); 1469throw new Win32Exception(); 1474throw new Win32Exception(); 1486throw new Win32Exception(); 1821throw new Win32Exception(); 1842throw new Win32Exception(); 1847throw new Win32Exception(); 1894throw new Win32Exception(); 1934throw new Win32Exception(); 2371throw new Win32Exception();
services\monitoring\system\diagnosticts\ProcessManager.cs (9)
357if (handle == (IntPtr)(-1)) throw new Win32Exception(); 427if (handle == (IntPtr)(-1)) throw new Win32Exception(); 536throw new Win32Exception(); 618throw new Win32Exception(); 623throw new Win32Exception(); 653throw new Win32Exception(); 670throw new Win32Exception(); 677if (ret == 0) throw new Win32Exception(); 682if (ret == 0) throw new Win32Exception();
services\monitoring\system\diagnosticts\ProcessThread.cs (7)
120throw new Win32Exception(); 142throw new Win32Exception(); 158throw new Win32Exception(); 182throw new Win32Exception(); 200throw new Win32Exception(); 361throw new Win32Exception(); 382throw new Win32Exception();
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
56newException = new Win32Exception();
sys\System\EnvironmentHelpers.cs (1)
42throw new Win32Exception();
System.Data (1)
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
147throw new System.ComponentModel.Win32Exception();
System.Drawing (12)
commonui\System\Drawing\Advanced\Font.cs (1)
899throw new Win32Exception();
commonui\System\Drawing\Graphics.cs (1)
930throw new Win32Exception();
commonui\System\Drawing\Icon.cs (1)
777throw new Win32Exception();
commonui\System\Drawing\Printing\DefaultPrintController.cs (3)
139throw new Win32Exception(); 162throw new Win32Exception(); 193throw new Win32Exception();
commonui\System\Drawing\Printing\PrinterSettings.cs (6)
251throw new Win32Exception(); 865throw new Win32Exception(); 888throw new Win32Exception(); 920throw new Win32Exception(); 944throw new Win32Exception(); 1020throw new Win32Exception();
System.IdentityModel.Selectors (2)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (1)
99throw NativeMethods.ThrowWin32ExceptionWithContext(new Win32Exception(), implDllPath);
infocard\client\System\IdentityModel\Selectors\NativeMethods.cs (1)
29ThrowWin32ExceptionWithContext(new Win32Exception(), procName);
System.Messaging (2)
System\Messaging\MessageQueue.cs (2)
3499throw new Win32Exception(); 3516throw new Win32Exception();
System.ServiceModel (8)
System\ServiceModel\Activation\Utility.cs (7)
40Exception exception = new Win32Exception(); 53Exception exception = new Win32Exception(); 106Exception exception = new Win32Exception(); 119Exception exception = new Win32Exception(); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception()); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception()); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception());
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception());
System.ServiceModel.Internals (2)
System\Runtime\IOThreadTimer.cs (2)
635Exception exception = new Win32Exception(); 645throw Fx.Exception.AsError(new Win32Exception());
System.Windows.Forms (15)
winforms\Managed\System\WinForms\ComboBox.cs (2)
741throw new Win32Exception(); 2179throw new Win32Exception();
winforms\Managed\System\WinForms\ContainerControl.cs (1)
741throw new Win32Exception();
winforms\Managed\System\WinForms\Control.cs (1)
10575throw new Win32Exception();
winforms\Managed\System\WinForms\ControlPaint.cs (3)
211throw new Win32Exception(); 217throw new Win32Exception(); 368throw new Win32Exception();
winforms\Managed\System\WinForms\Form.cs (1)
6470throw new Win32Exception();
winforms\Managed\System\WinForms\ListBox.cs (2)
1490throw new Win32Exception(); 1536throw new Win32Exception();
winforms\Managed\System\WinForms\NativeWindow.cs (2)
609throw new Win32Exception(); 1577throw new Win32Exception();
winforms\Managed\System\WinForms\SendKeys.cs (1)
688throw new Win32Exception();
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
2025throw new Win32Exception();
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
854throw new Win32Exception();
System.Workflow.ComponentModel (6)
AuthoringOM\Design\DesignerHelpers.cs (6)
956Win32Exception e = new Win32Exception(); 964Win32Exception e = new Win32Exception(); 972Win32Exception e = new Win32Exception(); 980Win32Exception e = new Win32Exception(); 988Win32Exception e = new Win32Exception(); 1130Win32Exception e = new Win32Exception();
UIAutomationClient (1)
MS\Internal\Automation\WinEventWrap.cs (1)
134throw new Win32Exception();
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
1491throw new Win32Exception();
WindowsBase (37)
Base\System\Windows\SplashScreen.cs (1)
197throw new Win32Exception();
Base\System\Windows\Threading\Dispatcher.cs (1)
2396throw new Win32Exception();
Shared\MS\Win32\SafeNativeMethodsCLR.cs (8)
108throw new Win32Exception(); 157throw new Win32Exception(); 195throw new Win32Exception(); 210throw new Win32Exception(); 233throw new Win32Exception(); 278throw new Win32Exception(); 313throw new Win32Exception(); 415throw new Win32Exception();
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (17)
262throw new Win32Exception(); 449throw new Win32Exception(); 486throw new Win32Exception(); 535throw new Win32Exception(); 640throw new Win32Exception(); 743throw new Win32Exception(); 1056throw new Win32Exception(); 1158throw new Win32Exception(); 1199throw new Win32Exception(); 1507throw new Win32Exception(); 1576throw new Win32Exception(); 1649throw new Win32Exception(); 1957throw new Win32Exception(); 1978throw new Win32Exception(); 2004throw new Win32Exception(); 2060throw new Win32Exception(); 2081throw new Win32Exception();
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (10)
63throw new Win32Exception(); 304throw new Win32Exception(); 327throw new Win32Exception(); 351throw new Win32Exception(); 373throw new Win32Exception(); 920throw new Win32Exception(); 981throw new Win32Exception(); 1010throw new Win32Exception(); 1029throw new Win32Exception(); 1605throw new Win32Exception();