diff options
Diffstat (limited to 'src/mscorlib/shared/Interop/Windows/Interop.Errors.cs')
-rw-r--r-- | src/mscorlib/shared/Interop/Windows/Interop.Errors.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mscorlib/shared/Interop/Windows/Interop.Errors.cs b/src/mscorlib/shared/Interop/Windows/Interop.Errors.cs new file mode 100644 index 0000000000..ff2653765c --- /dev/null +++ b/src/mscorlib/shared/Interop/Windows/Interop.Errors.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +internal partial class Interop +{ + // As defined in winerror.h and https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382.aspx + internal partial class Errors + { + internal const int ERROR_SUCCESS = 0x0; + internal const int ERROR_FILE_NOT_FOUND = 0x2; + internal const int ERROR_PATH_NOT_FOUND = 0x3; + internal const int ERROR_ACCESS_DENIED = 0x5; + internal const int ERROR_INVALID_HANDLE = 0x6; + internal const int ERROR_NOT_ENOUGH_MEMORY = 0x8; + internal const int ERROR_INVALID_DRIVE = 0xF; + internal const int ERROR_NO_MORE_FILES = 0x12; + internal const int ERROR_NOT_READY = 0x15; + internal const int ERROR_SHARING_VIOLATION = 0x20; + internal const int ERROR_HANDLE_EOF = 0x26; + internal const int ERROR_FILE_EXISTS = 0x50; + internal const int ERROR_INVALID_PARAMETER = 0x57; + internal const int ERROR_BROKEN_PIPE = 0x6D; + internal const int ERROR_INSUFFICIENT_BUFFER = 0x7A; + internal const int ERROR_INVALID_NAME = 0x7B; + internal const int ERROR_BAD_PATHNAME = 0xA1; + internal const int ERROR_ALREADY_EXISTS = 0xB7; + internal const int ERROR_ENVVAR_NOT_FOUND = 0xCB; + internal const int ERROR_FILENAME_EXCED_RANGE = 0xCE; + internal const int ERROR_NO_DATA = 0xE8; + internal const int ERROR_MORE_DATA = 0xEA; + internal const int ERROR_NO_MORE_ITEMS = 0x103; + internal const int ERROR_NOT_OWNER = 0x120; + internal const int ERROR_TOO_MANY_POSTS = 0x12A; + internal const int ERROR_ARITHMETIC_OVERFLOW = 0x216; + internal const int ERROR_MUTANT_LIMIT_EXCEEDED = 0x24B; + internal const int ERROR_OPERATION_ABORTED = 0x3E3; + internal const int ERROR_IO_PENDING = 0x3E5; + internal const int ERROR_NO_UNICODE_TRANSLATION = 0x459; + internal const int ERROR_NOT_FOUND = 0x490; + internal const int ERROR_BAD_IMPERSONATION_LEVEL = 0x542; + internal const int E_FILENOTFOUND = unchecked((int)0x80070002); + } +} |