1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*++
6
7
8
9
10
11--*/
12
13#ifndef __PAL_ERROR_H__
14#define __PAL_ERROR_H__
15
16/******************* error codes *****************************************/
17/* STARTERRORCODES - do not remove this marker, it is consumed by the palsatellite tool */
18
19#define ERROR_SUCCESS 0L
20#define ERROR_INVALID_FUNCTION 1L
21#define ERROR_FILE_NOT_FOUND 2L
22#define ERROR_PATH_NOT_FOUND 3L
23#define ERROR_TOO_MANY_OPEN_FILES 4L
24#define ERROR_ACCESS_DENIED 5L
25#define ERROR_INVALID_HANDLE 6L
26#define ERROR_NOT_ENOUGH_MEMORY 8L
27#define ERROR_BAD_ENVIRONMENT 10L
28#define ERROR_BAD_FORMAT 11L
29#define ERROR_INVALID_ACCESS 12L
30#define ERROR_INVALID_DATA 13L
31#define ERROR_OUTOFMEMORY 14L
32#define ERROR_INVALID_DRIVE 15L
33#define ERROR_NO_MORE_FILES 18L
34#define ERROR_WRITE_PROTECT 19L
35#define ERROR_NOT_READY 21L
36#define ERROR_BAD_COMMAND 22L
37
38#define ERROR_BAD_LENGTH 24L
39#define ERROR_WRITE_FAULT 29L
40#define ERROR_READ_FAULT 30L
41#define ERROR_GEN_FAILURE 31L
42#define ERROR_SHARING_VIOLATION 32L
43#define ERROR_LOCK_VIOLATION 33L
44#define ERROR_SHARING_BUFFER_EXCEEDED 36L
45#define ERROR_HANDLE_EOF 38L
46#define ERROR_HANDLE_DISK_FULL 39L
47#define ERROR_NOT_SUPPORTED 50L
48#define ERROR_DUP_NAME 52L
49#define ERROR_BAD_NETPATH 53L
50#define ERROR_DEV_NOT_EXIST 55L
51#define ERROR_BAD_NET_NAME 67L
52#define ERROR_FILE_EXISTS 80L
53#define ERROR_CANNOT_MAKE 82L
54#define ERROR_INVALID_PARAMETER 87L
55#define ERROR_NET_WRITE_FAULT 88L
56#define ERROR_TOO_MANY_SEMAPHORES 100L
57#define ERROR_DRIVE_LOCKED 108L
58#define ERROR_BROKEN_PIPE 109L
59#define ERROR_OPEN_FAILED 110L
60#define ERROR_BUFFER_OVERFLOW 111L
61#define ERROR_DISK_FULL 112L
62#define ERROR_CALL_NOT_IMPLEMENTED 120L
63#define ERROR_SEM_TIMEOUT 121L
64#define ERROR_INSUFFICIENT_BUFFER 122L
65#define ERROR_INVALID_NAME 123L
66#define ERROR_MOD_NOT_FOUND 126L
67#define ERROR_PROC_NOT_FOUND 127L
68#define ERROR_WAIT_NO_CHILDREN 128L
69#define ERROR_NEGATIVE_SEEK 131L
70#define ERROR_SEEK_ON_DEVICE 132L
71#define ERROR_DIR_NOT_EMPTY 145L
72#define ERROR_SIGNAL_REFUSED 156L
73#define ERROR_NOT_LOCKED 158L
74#define ERROR_BAD_PATHNAME 161L
75#define ERROR_BUSY 170L
76
77#define ERROR_INVALID_ORDINAL 182L
78#define ERROR_ALREADY_EXISTS 183L
79#define ERROR_INVALID_EXE_SIGNATURE 191L
80#define ERROR_EXE_MARKED_INVALID 192L
81#define ERROR_BAD_EXE_FORMAT 193L
82#define ERROR_ENVVAR_NOT_FOUND 203L
83#define ERROR_FILENAME_EXCED_RANGE 206L
84#define ERROR_PIPE_BUSY 231L
85#define ERROR_NO_DATA 232L
86#define ERROR_MORE_DATA 234L
87#define ERROR_NO_MORE_ITEMS 259L
88#define ERROR_DIRECTORY 267L
89#define ERROR_NOT_OWNER 288L
90#define ERROR_TOO_MANY_POSTS 298L
91#define ERROR_PARTIAL_COPY 299L
92#define ERROR_INVALID_ADDRESS 487L
93#define ERROR_ARITHMETIC_OVERFLOW 534L
94#define ERROR_OPERATION_ABORTED 995L
95#define ERROR_IO_INCOMPLETE 996L
96#define ERROR_IO_PENDING 997L
97#define ERROR_NOACCESS 998L
98#define ERROR_STACK_OVERFLOW 1001L
99#define ERROR_INVALID_FLAGS 1004L
100#define ERROR_UNRECOGNIZED_VOLUME 1005L
101#define ERROR_FILE_INVALID 1006L
102#define ERROR_PROCESS_ABORTED 1067L
103#define ERROR_NO_UNICODE_TRANSLATION 1113L
104#define ERROR_DLL_INIT_FAILED 1114L
105#define ERROR_IO_DEVICE 1117L
106#define ERROR_DISK_OPERATION_FAILED 1127L
107#define ERROR_POSSIBLE_DEADLOCK 1131L
108#define ERROR_TOO_MANY_LINKS 1142L
109
110#define ERROR_INVALID_DLL 1154L
111#define ERROR_DLL_NOT_FOUND 1157L
112#define ERROR_NOT_FOUND 1168L
113#define ERROR_CANCELLED 1223L
114#define ERROR_NOT_AUTHENTICATED 1244L
115
116#define ERROR_INTERNAL_ERROR 1359L
117#define ERROR_FILE_CORRUPT 1392L
118#define ERROR_DISK_CORRUPT 1393L
119#define ERROR_WRONG_TARGET_NAME 1396L
120#define ERROR_NO_SYSTEM_RESOURCES 1450L
121#define ERROR_COMMITMENT_LIMIT 1455L
122#define ERROR_TIMEOUT 1460L
123#define ERROR_EVENTLOG_FILE_CORRUPT 1500L
124#define ERROR_LOG_FILE_FULL 1502L
125#define ERROR_UNSUPPORTED_TYPE 1630L
126
127#define RPC_S_INVALID_VERS_OPTION 1756L
128
129#define ERROR_RESOURCE_DATA_NOT_FOUND 1812L
130#define ERROR_RESOURCE_LANG_NOT_FOUND 1815L
131#define ERROR_TAG_NOT_PRESENT 2013L
132
133#define CRYPT_E_NO_MATCH 0x80092009
134
135/* ENDERRORCODES - do not remove this marker, it is consumed by the palsatellite tool */
136
137/******************* error code aliases **************************************/
138
139#define NOERROR 0
140#define NO_ERROR 0L
141
142#endif // __PAL_ERROR_H__
143