diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-12-22 10:40:14 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-12-22 10:40:14 +0300 |
commit | ca7ce91a101d1e5f796394046b8326af6dc9012e (patch) | |
tree | fd5e43bdbd797d379b76b47249cc034d1fe1b7db /src/Common | |
parent | 119b9959ae527e708fdd39889125ba00797e3c12 (diff) |
Refactoring Windows error codes to match corefx conventions
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/src/Interop/Windows/mincore/Interop.Errors.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Common/src/Interop/Windows/mincore/Interop.Errors.cs b/src/Common/src/Interop/Windows/mincore/Interop.Errors.cs new file mode 100644 index 000000000..408015dec --- /dev/null +++ b/src/Common/src/Interop/Windows/mincore/Interop.Errors.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +internal partial class Interop +{ + internal partial class mincore + { + 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_DATA = 0xD; + internal const int ERROR_INVALID_DRIVE = 0xF; + internal const int ERROR_SHARING_VIOLATION = 0x20; + internal const int ERROR_INVALID_PARAMETER = 0x57; + 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_MORE_ITEMS = 0x103; + } + } +} |