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