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