52 references to Errors
System.Private.CoreLib (52)
src\libraries\Common\src\System\IO\Win32Marshal.cs (10)
29Debug.Assert(errorCode != Interop.Errors.ERROR_SUCCESS); 33case Interop.Errors.ERROR_FILE_NOT_FOUND: 36case Interop.Errors.ERROR_PATH_NOT_FOUND: 39case Interop.Errors.ERROR_ACCESS_DENIED: 42case Interop.Errors.ERROR_ALREADY_EXISTS: 46case Interop.Errors.ERROR_FILENAME_EXCED_RANGE: 49case Interop.Errors.ERROR_SHARING_VIOLATION: 53case Interop.Errors.ERROR_FILE_EXISTS: 57case Interop.Errors.ERROR_OPERATION_ABORTED: 59case Interop.Errors.ERROR_INVALID_PARAMETER:
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (5)
23if (length == 0 && Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_ENVVAR_NOT_FOUND) 50case Interop.Errors.ERROR_ENVVAR_NOT_FOUND: 54case Interop.Errors.ERROR_FILENAME_EXCED_RANGE: 59case Interop.Errors.ERROR_NOT_ENOUGH_MEMORY: 60case Interop.Errors.ERROR_NO_SYSTEM_RESOURCES:
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (3)
71Debug.Assert(ret >= 0 || Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_SUCCESS); 303Debug.Assert(result >= 0 || Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_SUCCESS); 509if (Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_INSUFFICIENT_BUFFER)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (1)
123lastError == Interop.Errors.ERROR_INVALID_NAME ? SR.Argument_IdnIllegalName :
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (18)
71case Interop.Errors.ERROR_SUCCESS: 78case Interop.Errors.ERROR_INSUFFICIENT_BUFFER: 92case Interop.Errors.ERROR_INVALID_PARAMETER: 93case Interop.Errors.ERROR_NO_UNICODE_TRANSLATION: 97case Interop.Errors.ERROR_NOT_ENOUGH_MEMORY: 142case Interop.Errors.ERROR_SUCCESS: 147case Interop.Errors.ERROR_INSUFFICIENT_BUFFER: 151case Interop.Errors.ERROR_INVALID_PARAMETER: 152case Interop.Errors.ERROR_NO_UNICODE_TRANSLATION: 156case Interop.Errors.ERROR_NOT_ENOUGH_MEMORY: 185case Interop.Errors.ERROR_SUCCESS: 188case Interop.Errors.ERROR_INVALID_PARAMETER: 189case Interop.Errors.ERROR_NO_UNICODE_TRANSLATION: 193case Interop.Errors.ERROR_NOT_ENOUGH_MEMORY: 208case Interop.Errors.ERROR_SUCCESS: 211case Interop.Errors.ERROR_INVALID_PARAMETER: 212case Interop.Errors.ERROR_NO_UNICODE_TRANSLATION: 215case Interop.Errors.ERROR_NOT_ENOUGH_MEMORY:
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
19bool result = Interop.Sys.LStat(fullPath, out Interop.Sys.FileStatus fileInfo) == Interop.Errors.ERROR_SUCCESS;
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Windows.cs (2)
89if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE) 117createdNew = errorCode != Interop.Errors.ERROR_ALREADY_EXISTS;
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (2)
98if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE) 129createdNew = errorCode != Interop.Errors.ERROR_ALREADY_EXISTS;
src\System\Threading\Mutex.CoreCLR.Unix.cs (9)
54if (errorCode == Interop.Errors.ERROR_FILENAME_EXCED_RANGE) 57if (errorCode == Interop.Errors.ERROR_INVALID_HANDLE) 63createdNew = errorCode != Interop.Errors.ERROR_ALREADY_EXISTS; 92if (errorCode == Interop.Errors.ERROR_FILENAME_EXCED_RANGE) 97if (Interop.Errors.ERROR_FILE_NOT_FOUND == errorCode || Interop.Errors.ERROR_INVALID_NAME == errorCode) 99if (Interop.Errors.ERROR_PATH_NOT_FOUND == errorCode) 101if (Interop.Errors.ERROR_INVALID_HANDLE == errorCode) 150errorCode = mutexHandle.IsInvalid ? Marshal.GetLastPInvokeError() : Interop.Errors.ERROR_SUCCESS;
src\System\Threading\WaitHandle.CoreCLR.cs (1)
24if (ret == Interop.Errors.ERROR_TOO_MANY_POSTS)