256 references to Win32Exception
PresentationCore (13)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
568throw new Win32Exception(Marshal.GetLastWin32Error());
Core\CSharp\System\Windows\DataObject.cs (8)
1177throw new System.ComponentModel.Win32Exception(win32Error); 1214throw new System.ComponentModel.Win32Exception(win32Error); 1231throw new System.ComponentModel.Win32Exception(win32Error); 1250throw new System.ComponentModel.Win32Exception(win32Error); 1269throw new System.ComponentModel.Win32Exception(win32Error); 1287throw new System.ComponentModel.Win32Exception(win32Error); 1410throw new System.ComponentModel.Win32Exception(win32Error); 1700throw new System.ComponentModel.Win32Exception(win32Error);
Core\CSharp\System\Windows\Input\Cursor.cs (1)
234throw new Win32Exception(errorCode);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
526throw new System.ComponentModel.Win32Exception(win32Err);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
75throw new System.ComponentModel.Win32Exception(win32Err);
Shared\MS\Internal\SecurityHelper.cs (1)
511throw new Win32Exception( hr ) ;
PresentationFramework (3)
src\Framework\System\windows\Documents\CaretElement.cs (2)
1032throw new System.ComponentModel.Win32Exception(win32Error); 1134throw new System.ComponentModel.Win32Exception(win32Error);
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
602throw new System.ComponentModel.Win32Exception(win32Error);
SMSvcHost (2)
System\ServiceModel\Activation\ListenerAdapterBase.cs (2)
262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(hresult)); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(hresult));
System (61)
compmod\system\codedom\compiler\Executor.cs (1)
324Win32Exception win32Exception = new Win32Exception(err);
compmod\system\componentmodel\Win32Exception.cs (1)
41public Win32Exception() : this(Marshal.GetLastWin32Error()) {
net\System\Net\_NTAuthentication.cs (11)
184throw new Win32Exception((int)SecurityStatus.InvalidHandle); 521throw new Win32Exception((int)result); 581throw new Win32Exception((int)SecurityStatus.InvalidHandle); 599throw new Win32Exception((int)status); 752Win32Exception exception = new Win32Exception((int) statusCode); 909Win32Exception exception = new Win32Exception((int) statusCode); 997throw new Win32Exception(errorCode); 1061throw new Win32Exception(errorCode); 1114throw new Win32Exception(errorCode); 1183throw new Win32Exception(errorCode); 1241throw new Win32Exception(errorCode);
net\System\Net\_SecureChannel.cs (3)
1362throw new Win32Exception((int)status); 1378throw new Win32Exception((int)status); 1989return this.Done ? null : new Win32Exception((int)Status);
net\System\Net\_SSPIWrapper.cs (5)
33throw new Win32Exception(errorCode); 135throw new Win32Exception(errorCode); 175throw new Win32Exception(errorCode); 193throw new Win32Exception(errorCode); 219throw new Win32Exception(errorCode);
net\System\Net\Cache\IERequestCache.cs (12)
131Win32Exception win32Exception = new Win32Exception((int)entry.Error); 315if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_lookup_failed, "WinInetCache.Retrieve()", new Win32Exception((int)entry.Error).Message)); 319Win32Exception win32Exception = new Win32Exception((int)entry.Error); 465Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_create_failed, new Win32Exception((int)entry.Error).Message)); 470Win32Exception win32Exception = new Win32Exception((int)entry.Error); 589Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetCache.Update()", entry.Key, new Win32Exception((int)entry.Error).Message)); 594Win32Exception win32Exception = new Win32Exception((int)entry.Error); 1023if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_delete_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1057if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_commit_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1073Win32Exception win32Exception = new Win32Exception((int)m_Entry.Error); 1091if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetWriteStream.Close(), Key = " + m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1094Win32Exception win32Exception = new Win32Exception((int)m_Entry.Error);
net\System\Net\HttpListenerException.cs (2)
17public HttpListenerException() : base(Marshal.GetLastWin32Error()) 22public HttpListenerException(int errorCode) : base(errorCode)
net\System\Net\NetworkInformation\NetworkInformationException.cs (3)
26public NetworkInformationException() : base(Marshal.GetLastWin32Error()) { 34public NetworkInformationException(int errorCode) : base(errorCode) { 38internal NetworkInformationException(SocketError socketError) : base((int)socketError) {
net\System\Net\NetworkInformation\ping.cs (1)
714throw new Win32Exception(error);
net\System\Net\NetworkInformation\TeredoHelper.cs (1)
108throw new Win32Exception((int)err);
net\System\Net\SecureProtocols\_NegoState.cs (2)
651e = new Win32Exception((int)error); 810e = new System.ComponentModel.Win32Exception((int) statusCode);
net\System\Net\SocketException.cs (5)
29public SocketException() : base(Marshal.GetLastWin32Error()) { 33internal SocketException(EndPoint endPoint) : base(Marshal.GetLastWin32Error()) { 42public SocketException(int errorCode) : base(errorCode) { 46internal SocketException(int errorCode, EndPoint endPoint) : base(errorCode) { 55internal SocketException(SocketError socketError) : base((int)socketError) {
net\System\Net\WebSockets\WebSocketException.cs (1)
61: base(nativeError)
services\io\system\io\FileSystemWatcher.cs (1)
486OnError(new ErrorEventArgs(new Win32Exception((int)errorCode)));
services\monitoring\system\diagnosticts\CounterSampleCalculator.cs (1)
237throw new Win32Exception( Marshal.GetLastWin32Error() );
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1200throw new Win32Exception(NativeMethods.ERROR_ACCESS_DENIED); 1204throw new Win32Exception(Marshal.GetHRForException(e));
services\monitoring\system\diagnosticts\Process.cs (3)
2104throw new Win32Exception(errorCode); 2138throw new Win32Exception(errorCode); 2266throw new Win32Exception(error);
services\monitoring\system\diagnosticts\ProcessManager.cs (5)
271throw new Win32Exception(5); 283throw new Win32Exception(result); 295throw new Win32Exception(result); 739throw new InvalidOperationException(SR.GetString(SR.CantGetProcessId), new Win32Exception(status)); 1107throw new InvalidOperationException(SR.GetString(SR.CouldntGetProcessInfos), new Win32Exception(status));
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
58newException = new Win32Exception(error);
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
331throw new System.ComponentModel.Win32Exception(Marshal.GetLastWin32Error()); // call failed
System.Core (7)
System\Diagnostics\Eventing\EventProvider.cs (1)
120throw new Win32Exception((int)status);
System\Diagnostics\Eventing\Reader\EventLogException.cs (1)
77Win32Exception win32Exception = new Win32Exception(errorCode);
System\Diagnostics\PerformanceData\CounterSet.cs (1)
243throw new Win32Exception((int) Status);
System\Diagnostics\PerformanceData\CounterSetInstance.cs (2)
69throw new Win32Exception(Status); 73throw new Win32Exception(Status);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
153throw new Win32Exception((int) Status);
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
30throw new Win32Exception((int) Status);
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlException.cs (1)
168innerException = new Win32Exception(errorCollection[0].Win32ErrorCode);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (3)
737System.ComponentModel.Win32Exception e = new System.ComponentModel.Win32Exception ( unchecked ( (int) error ) ); 745System.ComponentModel.Win32Exception e = new System.ComponentModel.Win32Exception ( UnsafeNativeMethods.ERROR_INVALID_HANDLE ); 769System.ComponentModel.Win32Exception e = new System.ComponentModel.Win32Exception ( Marshal.GetLastWin32Error() );
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
104System.ComponentModel.Win32Exception e = new System.ComponentModel.Win32Exception(lastError);
System.Drawing (5)
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
492ex = new Win32Exception(Marshal.GetLastWin32Error());
commonui\System\Drawing\Icon.cs (3)
743throw new Win32Exception(SafeNativeMethods.ERROR_INVALID_PARAMETER); 751throw new Win32Exception(SafeNativeMethods.ERROR_INVALID_PARAMETER); 773throw new Win32Exception(SafeNativeMethods.ERROR_INVALID_PARAMETER);
commonui\System\Drawing\Printing\DefaultPrintController.cs (1)
77throw new Win32Exception(error);
System.IdentityModel (34)
System\IdentityModel\Claims\WindowsClaimSet.cs (2)
338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode)); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode));
System\IdentityModel\Privilege.cs (6)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 247throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error));
System\IdentityModel\RijndaelCryptoServiceProvider.cs (1)
378string reason = (err != 0) ? new Win32Exception(err).Message : String.Empty;
System\IdentityModel\SafeCryptHandles.cs (1)
116string reason = (err != 0) ? new Win32Exception(err).Message : String.Empty;
System\IdentityModel\Selectors\WindowsUserNameSecurityTokenAuthenticator.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.FailLogonUser, userName), new Win32Exception(error)));
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (6)
175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 188message = SR.GetString(SR.RevertingPrivilegeFailed, new Win32Exception(revertResult)); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode)); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(subStatus)));
System\IdentityModel\SspiWrapper.cs (7)
318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 443throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 585throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 694throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode));
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (4)
238new SecurityTokenException(SR.GetString(SR.KerberosMultilegsNotSupported), new Win32Exception(statusCode))); 243new SecurityTokenException(SR.GetString(SR.KerberosApReqInvalidOrOutOfMemory), new Win32Exception(statusCode))); 248new SecurityTokenException(SR.GetString(SR.FailAcceptSecurityContext), new Win32Exception(statusCode))); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(statusCode));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (2)
187new SecurityTokenException(SR.GetString(SR.KerberosMultilegsNotSupported), new Win32Exception(statusCode))); 192new SecurityTokenException(SR.GetString(SR.FailInitializeSecurityContext), new Win32Exception(statusCode)));
System\IdentityModel\Tokens\RsaSecurityToken.cs (1)
106new InvalidOperationException(SR.GetString(SR.FailedToDeleteKeyContainerFile), new Win32Exception(error)));
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
1043throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4248, windowsLogonName), new Win32Exception(errorCode))); 1048throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4248, windowsLogonName), new Win32Exception(errorCode)));
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4063, userName), new Win32Exception(error)));
System.IdentityModel.Selectors (11)
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (3)
61throw IDT.ThrowHelperError(new Win32Exception(status)); 145throw IDT.ThrowHelperError(new Win32Exception(status)); 203throw IDT.ThrowHelperError(new Win32Exception(status));
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (4)
99throw IDT.ThrowHelperError(new Win32Exception(status)); 131throw IDT.ThrowHelperError(new Win32Exception(status)); 167throw IDT.ThrowHelperError(new Win32Exception(status)); 211throw IDT.ThrowHelperError(new Win32Exception(status));
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (3)
185throw IDT.ThrowHelperError(new Win32Exception(status)); 248throw IDT.ThrowHelperError(new Win32Exception(status)); 296throw IDT.ThrowHelperError(new Win32Exception(status));
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (1)
141throw IDT.ThrowHelperError(new Win32Exception(status));
System.Messaging (1)
System\Messaging\AccessControlList.cs (1)
169throw new Win32Exception(err);
System.Runtime.Remoting (3)
channels\core\corechannel.cs (3)
926throw new Win32Exception(lastError); 933throw new Win32Exception(lastError); 960throw new Win32Exception(lastError);
System.ServiceModel (62)
System\ServiceModel\Activation\SharedMemory.cs (4)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(UnsafeNativeMethods.ERROR_FILE_NOT_FOUND)); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode));
System\ServiceModel\Activation\Utility.cs (9)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 418throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode));
System\ServiceModel\Administration\WbemException.cs (2)
14: base((int)hr) 19: base(hr)
System\ServiceModel\Channels\AppContainerInfo.cs (3)
191throw FxTrace.Exception.AsError(new Win32Exception(errorCode)); 205throw FxTrace.Exception.AsError(new Win32Exception(errorCode)); 256throw FxTrace.Exception.AsError(new Win32Exception(error));
System\ServiceModel\Channels\PeerHelpers.cs (1)
736return new Win32Exception(Marshal.GetLastWin32Error());
System\ServiceModel\Channels\SelfSignedCertificate.cs (3)
120PeerExceptionHelper.ThrowInvalidOperation_PeerCertGenFailure(new Win32Exception(error)); 185PeerExceptionHelper.ThrowInvalidOperation_PeerCertGenFailure(new Win32Exception(error)); 197PeerExceptionHelper.ThrowInvalidOperation_PeerCertGenFailure(new Win32Exception(error));
System\ServiceModel\Channels\UnsafeNativeMethods.cs (4)
826throw FxTrace.Exception.AsError(new Win32Exception(errorCode)); 854throw FxTrace.Exception.AsError(new Win32Exception(error)); 876throw FxTrace.Exception.AsError(new Win32Exception(errorCode)); 894throw FxTrace.Exception.AsError(new Win32Exception(errorCode));
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (15)
584throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 605throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 631throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 647throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_NOT_SUPPORTED)); 666throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_NOT_SUPPORTED)); 678throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 684throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 698throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 704throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 717throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status)); 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(SafeNativeMethods.ERROR_INVALID_HANDLE)); 772throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(status));
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (5)
412throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.DownlevelNameCannotMapToUpn, downlevelName), new Win32Exception(errorCode))); 417throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.DownlevelNameCannotMapToUpn, downlevelName), new Win32Exception(errorCode))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 540new Win32Exception(error).Message)));
System\ServiceModel\Security\TlsSspiNegotiation.cs (8)
215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle)); 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle)); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle)); 417throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(statusCode)); 456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(statusCode)); 485throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 676throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
1080System.ServiceModel.Dispatcher.ErrorBehavior.ThrowAndCatch(new Win32Exception(error));
System\ServiceModel\Security\WindowsSspiNegotiation.cs (5)
262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 300throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 572throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle)); 618throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)SecurityStatus.InvalidHandle)); 626throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception((int)status));
System\ServiceModel\UpnEndpointIdentity.cs (2)
154throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new Win32Exception(errorCode)); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new Win32Exception(errorCode));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\ServiceMemoryGates.cs (1)
75new InvalidOperationException(SR.Hosting_GetGlobalMemoryFailed, new Win32Exception(error)));
System.ServiceModel.Internals (2)
System\Runtime\Interop\UnsafeNativeMethods.cs (2)
111throw Fx.Exception.AsError(new System.ComponentModel.Win32Exception(error)); 124throw Fx.Exception.AsError(new System.ComponentModel.Win32Exception(error));
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\MessageRpc.cs (1)
70Win32Exception errorDetail = new Win32Exception(ERROR_BAD_IMPERSONATION_LEVEL);
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Control.cs (3)
7057throw new Win32Exception(NativeMethods.ERROR_INVALID_HANDLE); 11249throw new Win32Exception(n); 11258throw new Win32Exception(n);
winforms\Managed\System\WinForms\NativeWindow.cs (1)
1666throw new Win32Exception(err);
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (2)
265throw new Win32Exception(n); 280throw new Win32Exception(n);
System.Workflow.ComponentModel (20)
AuthoringOM\Design\DesignerHelpers.cs (20)
922throw new Win32Exception(Marshal.GetLastWin32Error()); 927throw new Win32Exception(Marshal.GetLastWin32Error()); 931throw new Win32Exception(Marshal.GetLastWin32Error()); 937throw new Win32Exception(Marshal.GetLastWin32Error()); 943throw new Win32Exception(Marshal.GetLastWin32Error()); 1032throw new Win32Exception(Marshal.GetLastWin32Error()); 1039throw new Win32Exception(Marshal.GetLastWin32Error()); 1042throw new Win32Exception(Marshal.GetLastWin32Error()); 1049throw new Win32Exception(Marshal.GetLastWin32Error()); 1052throw new Win32Exception(Marshal.GetLastWin32Error()); 1055throw new Win32Exception(Marshal.GetLastWin32Error()); 1059throw new Win32Exception(Marshal.GetLastWin32Error()); 1068throw new Win32Exception(Marshal.GetLastWin32Error()); 1071throw new Win32Exception(Marshal.GetLastWin32Error()); 1078throw new Win32Exception(Marshal.GetLastWin32Error()); 1081throw new Win32Exception(Marshal.GetLastWin32Error()); 1084throw new Win32Exception(Marshal.GetLastWin32Error()); 1088throw new Win32Exception(Marshal.GetLastWin32Error()); 1097throw new Win32Exception(Marshal.GetLastWin32Error()); 1116throw new Win32Exception(Marshal.GetLastWin32Error());
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
291throw new Win32Exception(errorCode);
UIAutomationClientsideProviders (3)
MS\Internal\AutomationProxies\Input.cs (2)
128throw new Win32Exception(Marshal.GetLastWin32Error()); 151throw new Win32Exception(Marshal.GetLastWin32Error());
MS\Internal\AutomationProxies\Misc.cs (1)
1737throw new Win32Exception(errorCode);
WindowsBase (14)
Base\MS\Internal\Interop\ErrorCodes.cs (1)
447e = new Win32Exception(Code);
Shared\MS\Win32\HwndWrapper.cs (1)
98throw new System.ComponentModel.Win32Exception(Marshal.GetLastWin32Error());
Shared\MS\Win32\SafeNativeMethodsCLR.cs (2)
90throw new Win32Exception(win32Err); 296throw new System.ComponentModel.Win32Exception(win32Err);
Shared\MS\Win32\SafeNativeMethodsOther.cs (3)
187throw new Win32Exception(win32Error); 251throw new Win32Exception(Marshal.GetLastWin32Error()); 264throw new Win32Exception(Marshal.GetLastWin32Error());
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (4)
697throw new Win32Exception(win32Err); 835throw new Win32Exception(win32Err); 853throw new Win32Exception(win32Err); 1100throw new Win32Exception(errorCode);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (3)
722throw new System.ComponentModel.Win32Exception(errorCode); 828throw new Win32Exception(error); 1425throw new System.ComponentModel.Win32Exception(win32error);