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