42 references to NativeErrorCode
System (22)
net\System\Net\_ConnectStream.cs (1)
1432
if (win32Exception != null && win32Exception.
NativeErrorCode
== (int)SocketError.TimedOut)
net\System\Net\HttpListener.cs (1)
2318
uint statusCode = (uint) exception.
NativeErrorCode
;
net\System\Net\HttpListenerException.cs (5)
19
GlobalLog.Print("HttpListenerException::.ctor() " +
NativeErrorCode
.ToString() + ":" + Message);
24
GlobalLog.Print("HttpListenerException::.ctor(int) " +
NativeErrorCode
.ToString() + ":" + Message);
29
GlobalLog.Print("HttpListenerException::.ctor(int) " +
NativeErrorCode
.ToString() + ":" + Message);
35
GlobalLog.Print("HttpListenerException::.ctor(serialized) " +
NativeErrorCode
.ToString() + ":" + Message);
46
return
NativeErrorCode
;
net\System\Net\NetworkInformation\NetworkInformationException.cs (1)
54
return
NativeErrorCode
;
net\System\Net\SecureProtocols\_NegoState.cs (3)
655
if (e.
NativeErrorCode
== (int)SecurityStatus.LogonDenied)
658
if (e.
NativeErrorCode
== ERROR_TRUST_FAILURE)
707
if (win32exception != null && win32exception.
NativeErrorCode
== (int)SecurityStatus.LogonDenied)
net\System\Net\SocketException.cs (5)
30
GlobalLog.Print("SocketException::.ctor() " +
NativeErrorCode
.ToString() + ":" + Message);
43
GlobalLog.Print("SocketException::.ctor(int) " +
NativeErrorCode
.ToString() + ":" + Message);
61
GlobalLog.Print("SocketException::.ctor(serialized) " +
NativeErrorCode
.ToString() + ":" + Message);
73
return
NativeErrorCode
;
95
return (SocketError)
NativeErrorCode
;
net\System\Net\Sockets\Socket.cs (1)
7426
UpdateStatusAfterSocketError((SocketError) socketException.
NativeErrorCode
);
net\System\Net\WebSockets\WebSocketBase.cs (2)
1331
convertedException = new WebSocketException(socketException.
NativeErrorCode
, socketException);
1346
convertedException = new WebSocketException(socketException.
NativeErrorCode
, ioException);
net\System\Net\WebSockets\WebSocketException.cs (1)
142
return base.
NativeErrorCode
;
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
702
if (e.
NativeErrorCode
== NativeMethods.ERROR_INVALID_HANDLE || e.
NativeErrorCode
== NativeMethods.ERROR_PARTIAL_COPY)
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\NativeMethods.cs (1)
37
wex.
NativeErrorCode
,
System.ServiceModel (14)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3207
switch (listenerException.
NativeErrorCode
)
System\ServiceModel\Channels\SharedConnectionListener.cs (11)
557
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerServiceSidLookupFailure, exception.
NativeErrorCode
)), exception));
570
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerServiceLookupFailure, exception.
NativeErrorCode
)), exception));
579
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerUserSidLookupFailure, exception.
NativeErrorCode
)), exception));
587
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerLogonSidLookupFailure, exception.
NativeErrorCode
)), exception));
676
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerCurrentUserSidLookupFailure, exception.
NativeErrorCode
)), exception));
1110
if (exception.
NativeErrorCode
== UnsafeNativeMethods.ERROR_FILE_NOT_FOUND)
1115
else if (exception.
NativeErrorCode
== UnsafeNativeMethods.ERROR_ACCESS_DENIED)
1122
serviceName, SR.GetString(SR.SharedManagerServiceEndpointReadFailure, exception.
NativeErrorCode
));
1186
if (win32Exception.
NativeErrorCode
== UnsafeNativeMethods.ERROR_SERVICE_DISABLED)
1191
else if (win32Exception.
NativeErrorCode
!= UnsafeNativeMethods.ERROR_SERVICE_ALREADY_RUNNING)
1193
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SR.GetString(SR.SharedManagerBase, serviceName, SR.GetString(SR.SharedManagerServiceStartFailure, win32Exception.
NativeErrorCode
)), exception));
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
605
switch (listenerException.
NativeErrorCode
)
System\ServiceModel\Security\TlsSspiNegotiation.cs (1)
111
if (ex.
NativeErrorCode
!= (int)SecurityStatus.UnknownCredential)
System.ServiceModel.Internals (2)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
361
xml.WriteElementString(DiagnosticStrings.NativeErrorCodeTag, win32Exception.
NativeErrorCode
.ToString("X", CultureInfo.InvariantCulture));
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
771
win32Exception.
NativeErrorCode
.ToString("X", CultureInfo.InvariantCulture)));
System.Transactions (1)
System\Transactions\Trace\DiagnosticTrace.cs (1)
700
xml.WriteElementString(DiagnosticStrings.NativeErrorCodeTag, win32Exception.
NativeErrorCode
.ToString("X", CultureInfo.InvariantCulture));
WindowsBase (2)
Shared\MS\Win32\HwndSubclass.cs (1)
613
if (e.
NativeErrorCode
!= 1400) // ERROR_INVALID_WINDOW_HANDLE
Shared\MS\Win32\ManagedWndProcTracker.cs (1)
181
if (e.
NativeErrorCode
!= 1400) // ERROR_INVALID_WINDOW_HANDLE