4 * Copyright 2000 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
35 static const struct error_table error_table[];
37 /**************************************************************************
38 * RtlNtStatusToDosError (NTDLL.@)
40 DWORD WINAPI RtlNtStatusToDosError( DWORD status )
42 const struct error_table *table = error_table;
44 if (!status || (status & 0x20000000)) return status;
46 /* 0xd... is equivalent to 0xc... */
47 if ((status & 0xf0000000) == 0xd0000000) status &= ~0x10000000;
51 if (status < table->start) break;
52 if (status < table->end)
54 DWORD ret = table->table[status - table->start];
55 if (!ret) ret = status; /* 0 means 1:1 mapping */
56 else if (ret == ERROR_MR_MID_NOT_FOUND) FIXME( "no mapping for %08lx\n", status );
62 /* now some special cases */
63 if (HIWORD(status) == 0xc001) return LOWORD(status);
64 if (HIWORD(status) == 0x8007) return LOWORD(status);
65 FIXME( "no mapping for %08lx\n", status );
66 return ERROR_MR_MID_NOT_FOUND;
70 /* conversion tables */
72 static const WORD table_00000103[11] =
74 ERROR_IO_PENDING, /* 00000103 (STATUS_PENDING) */
75 ERROR_MR_MID_NOT_FOUND, /* 00000104 */
76 ERROR_MORE_DATA, /* 00000105 */
77 ERROR_NOT_ALL_ASSIGNED, /* 00000106 */
78 ERROR_SOME_NOT_MAPPED, /* 00000107 */
79 ERROR_MR_MID_NOT_FOUND, /* 00000108 */
80 ERROR_MR_MID_NOT_FOUND, /* 00000109 */
81 ERROR_MR_MID_NOT_FOUND, /* 0000010a */
82 ERROR_MR_MID_NOT_FOUND, /* 0000010b */
83 ERROR_NOTIFY_ENUM_DIR, /* 0000010c */
84 ERROR_NO_QUOTAS_FOR_ACCOUNT /* 0000010d */
87 static const WORD table_40000002[12] =
89 ERROR_INVALID_PARAMETER, /* 40000002 */
90 ERROR_MR_MID_NOT_FOUND, /* 40000003 */
91 ERROR_MR_MID_NOT_FOUND, /* 40000004 */
92 ERROR_MR_MID_NOT_FOUND, /* 40000005 */
93 ERROR_LOCAL_USER_SESSION_KEY, /* 40000006 */
94 ERROR_MR_MID_NOT_FOUND, /* 40000007 */
95 ERROR_MORE_WRITES, /* 40000008 */
96 ERROR_REGISTRY_RECOVERED, /* 40000009 */
97 ERROR_MR_MID_NOT_FOUND, /* 4000000a */
98 ERROR_MR_MID_NOT_FOUND, /* 4000000b */
99 ERROR_COUNTER_TIMEOUT, /* 4000000c */
100 ERROR_NULL_LM_PASSWORD /* 4000000d */
103 static const WORD table_40020056[1] =
105 RPC_S_UUID_LOCAL_ONLY /* 40020056 */
108 static const WORD table_400200af[1] =
110 RPC_S_SEND_INCOMPLETE /* 400200af */
113 static const WORD table_80000001[37] =
115 0, /* 80000001 (STATUS_GUARD_PAGE_VIOLATION) */
116 ERROR_NOACCESS, /* 80000002 (STATUS_DATATYPE_MISALIGNMENT) */
117 0, /* 80000003 (STATUS_BREAKPOINT) */
118 0, /* 80000004 (STATUS_SINGLE_STEP) */
119 ERROR_MORE_DATA, /* 80000005 (STATUS_BUFFER_OVERFLOW) */
120 ERROR_NO_MORE_FILES, /* 80000006 (STATUS_NO_MORE_FILES) */
121 ERROR_MR_MID_NOT_FOUND, /* 80000007 (STATUS_WAKE_SYSTEM_DEBUGGER) */
122 ERROR_MR_MID_NOT_FOUND, /* 80000008 */
123 ERROR_MR_MID_NOT_FOUND, /* 80000009 */
124 ERROR_MR_MID_NOT_FOUND, /* 8000000a (STATUS_HANDLES_CLOSED) */
125 ERROR_NO_INHERITANCE, /* 8000000b (STATUS_NO_INHERITANCE) */
126 ERROR_MR_MID_NOT_FOUND, /* 8000000c (STATUS_GUID_SUBSTITUTION_MADE) */
127 ERROR_PARTIAL_COPY, /* 8000000d (STATUS_PARTIAL_COPY) */
128 ERROR_OUT_OF_PAPER, /* 8000000e (STATUS_DEVICE_PAPER_EMPTY) */
129 ERROR_NOT_READY, /* 8000000f (STATUS_DEVICE_POWERED_OFF) */
130 ERROR_NOT_READY, /* 80000010 (STATUS_DEVICE_OFF_LINE) */
131 ERROR_BUSY, /* 80000011 (STATUS_DEVICE_BUSY) */
132 ERROR_NO_MORE_ITEMS, /* 80000012 (STATUS_NO_MORE_EAS) */
133 ERROR_INVALID_EA_NAME, /* 80000013 (STATUS_INVALID_EA_NAME) */
134 ERROR_EA_LIST_INCONSISTENT, /* 80000014 (STATUS_EA_LIST_INCONSISTENT) */
135 ERROR_EA_LIST_INCONSISTENT, /* 80000015 (STATUS_INVALID_EA_FLAG) */
136 ERROR_MEDIA_CHANGED, /* 80000016 (STATUS_VERIFY_REQUIRED) */
137 ERROR_MR_MID_NOT_FOUND, /* 80000017 (STATUS_EXTRANEOUS_INFORMATION) */
138 ERROR_MR_MID_NOT_FOUND, /* 80000018 (STATUS_RXACT_COMMIT_NECESSARY) */
139 ERROR_MR_MID_NOT_FOUND, /* 80000019 */
140 ERROR_NO_MORE_ITEMS, /* 8000001a (STATUS_NO_MORE_ENTRIES) */
141 ERROR_FILEMARK_DETECTED, /* 8000001b (STATUS_FILEMARK_DETECTED) */
142 ERROR_MEDIA_CHANGED, /* 8000001c (STATUS_MEDIA_CHANGED) */
143 ERROR_BUS_RESET, /* 8000001d (STATUS_BUS_RESET) */
144 ERROR_END_OF_MEDIA, /* 8000001e (STATUS_END_OF_MEDIA) */
145 ERROR_BEGINNING_OF_MEDIA, /* 8000001f (STATUS_BEGINNING_OF_MEDIA) */
146 ERROR_MR_MID_NOT_FOUND, /* 80000020 (STATUS_MEDIA_CHECK) */
147 ERROR_SETMARK_DETECTED, /* 80000021 (STATUS_SETMARK_DETECTED) */
148 ERROR_NO_DATA_DETECTED, /* 80000022 (STATUS_NO_DATA_DETECTED) */
149 ERROR_MR_MID_NOT_FOUND, /* 80000023 (STATUS_REDIRECTOR_HAS_OPEN_HANDLES) */
150 ERROR_MR_MID_NOT_FOUND, /* 80000024 (STATUS_SERVER_HAS_OPEN_HANDLES) */
151 ERROR_ACTIVE_CONNECTIONS /* 80000025 (STATUS_ALREADY_DISCONNECTED) */
154 static const WORD table_80090300[23] =
156 ERROR_NO_SYSTEM_RESOURCES, /* 80090300 */
157 ERROR_INVALID_HANDLE, /* 80090301 */
158 ERROR_INVALID_FUNCTION, /* 80090302 */
159 ERROR_BAD_NETPATH, /* 80090303 */
160 ERROR_INTERNAL_ERROR, /* 80090304 */
161 ERROR_NO_SUCH_PACKAGE, /* 80090305 */
162 ERROR_NOT_OWNER, /* 80090306 */
163 ERROR_NO_SUCH_PACKAGE, /* 80090307 */
164 ERROR_INVALID_PARAMETER, /* 80090308 */
165 ERROR_INVALID_PARAMETER, /* 80090309 */
166 ERROR_NOT_SUPPORTED, /* 8009030a */
167 ERROR_CANNOT_IMPERSONATE, /* 8009030b */
168 ERROR_LOGON_FAILURE, /* 8009030c */
169 ERROR_INVALID_PARAMETER, /* 8009030d */
170 ERROR_NO_SUCH_LOGON_SESSION, /* 8009030e */
171 ERROR_ACCESS_DENIED, /* 8009030f */
172 ERROR_ACCESS_DENIED, /* 80090310 */
173 ERROR_NO_LOGON_SERVERS, /* 80090311 */
174 ERROR_MR_MID_NOT_FOUND, /* 80090312 */
175 ERROR_MR_MID_NOT_FOUND, /* 80090313 */
176 ERROR_MR_MID_NOT_FOUND, /* 80090314 */
177 ERROR_MR_MID_NOT_FOUND, /* 80090315 */
178 ERROR_NO_SUCH_PACKAGE /* 80090316 */
181 static const WORD table_c0000001[411] =
183 ERROR_GEN_FAILURE, /* c0000001 (STATUS_UNSUCCESSFUL) */
184 ERROR_INVALID_FUNCTION, /* c0000002 (STATUS_NOT_IMPLEMENTED) */
185 ERROR_INVALID_PARAMETER, /* c0000003 (STATUS_INVALID_INFO_CLASS) */
186 ERROR_BAD_LENGTH, /* c0000004 (STATUS_INFO_LENGTH_MISMATCH) */
187 ERROR_NOACCESS, /* c0000005 (STATUS_ACCESS_VIOLATION) */
188 ERROR_SWAPERROR, /* c0000006 (STATUS_IN_PAGE_ERROR) */
189 ERROR_PAGEFILE_QUOTA, /* c0000007 (STATUS_PAGEFILE_QUOTA) */
190 ERROR_INVALID_HANDLE, /* c0000008 (STATUS_INVALID_HANDLE) */
191 ERROR_STACK_OVERFLOW, /* c0000009 (STATUS_BAD_INITIAL_STACK) */
192 ERROR_BAD_EXE_FORMAT, /* c000000a (STATUS_BAD_INITIAL_PC) */
193 ERROR_INVALID_PARAMETER, /* c000000b (STATUS_INVALID_CID) */
194 ERROR_MR_MID_NOT_FOUND, /* c000000c (STATUS_TIMER_NOT_CANCELED) */
195 ERROR_INVALID_PARAMETER, /* c000000d (STATUS_INVALID_PARAMETER) */
196 ERROR_FILE_NOT_FOUND, /* c000000e (STATUS_NO_SUCH_DEVICE) */
197 ERROR_FILE_NOT_FOUND, /* c000000f (STATUS_NO_SUCH_FILE) */
198 ERROR_INVALID_FUNCTION, /* c0000010 (STATUS_INVALID_DEVICE_REQUEST) */
199 ERROR_HANDLE_EOF, /* c0000011 (STATUS_END_OF_FILE) */
200 ERROR_WRONG_DISK, /* c0000012 (STATUS_WRONG_VOLUME) */
201 ERROR_NOT_READY, /* c0000013 (STATUS_NO_MEDIA_IN_DEVICE) */
202 ERROR_UNRECOGNIZED_MEDIA, /* c0000014 (STATUS_UNRECOGNIZED_MEDIA) */
203 ERROR_SECTOR_NOT_FOUND, /* c0000015 (STATUS_NONEXISTENT_SECTOR) */
204 ERROR_MORE_DATA, /* c0000016 (STATUS_MORE_PROCESSING_REQUIRED) */
205 ERROR_NOT_ENOUGH_MEMORY, /* c0000017 (STATUS_NO_MEMORY) */
206 ERROR_INVALID_ADDRESS, /* c0000018 (STATUS_CONFLICTING_ADDRESSES) */
207 ERROR_INVALID_ADDRESS, /* c0000019 (STATUS_NOT_MAPPED_VIEW) */
208 ERROR_INVALID_PARAMETER, /* c000001a (STATUS_UNABLE_TO_FREE_VM) */
209 ERROR_INVALID_PARAMETER, /* c000001b (STATUS_UNABLE_TO_DELETE_SECTION) */
210 ERROR_INVALID_FUNCTION, /* c000001c (STATUS_INVALID_SYSTEM_SERVICE) */
211 0, /* c000001d (STATUS_ILLEGAL_INSTRUCTION) */
212 ERROR_ACCESS_DENIED, /* c000001e (STATUS_INVALID_LOCK_SEQUENCE) */
213 ERROR_ACCESS_DENIED, /* c000001f (STATUS_INVALID_VIEW_SIZE) */
214 ERROR_BAD_EXE_FORMAT, /* c0000020 (STATUS_INVALID_FILE_FOR_SECTION) */
215 ERROR_ACCESS_DENIED, /* c0000021 (STATUS_ALREADY_COMMITTED) */
216 ERROR_ACCESS_DENIED, /* c0000022 (STATUS_ACCESS_DENIED) */
217 ERROR_INSUFFICIENT_BUFFER, /* c0000023 (STATUS_BUFFER_TOO_SMALL) */
218 ERROR_INVALID_HANDLE, /* c0000024 (STATUS_OBJECT_TYPE_MISMATCH) */
219 0, /* c0000025 (STATUS_NONCONTINUABLE_EXCEPTION) */
220 0, /* c0000026 (STATUS_INVALID_DISPOSITION) */
221 ERROR_MR_MID_NOT_FOUND, /* c0000027 (STATUS_UNWIND) */
222 ERROR_MR_MID_NOT_FOUND, /* c0000028 (STATUS_BAD_STACK) */
223 ERROR_MR_MID_NOT_FOUND, /* c0000029 (STATUS_INVALID_UNWIND_TARGET) */
224 ERROR_NOT_LOCKED, /* c000002a (STATUS_NOT_LOCKED) */
225 0, /* c000002b (STATUS_PARITY_ERROR) */
226 ERROR_INVALID_ADDRESS, /* c000002c (STATUS_UNABLE_TO_DECOMMIT_VM) */
227 ERROR_INVALID_ADDRESS, /* c000002d (STATUS_NOT_COMMITTED) */
228 ERROR_MR_MID_NOT_FOUND, /* c000002e (STATUS_INVALID_PORT_ATTRIBUTES) */
229 ERROR_MR_MID_NOT_FOUND, /* c000002f (STATUS_PORT_MESSAGE_TOO_LONG) */
230 ERROR_INVALID_PARAMETER, /* c0000030 (STATUS_INVALID_PARAMETER_MIX) */
231 ERROR_MR_MID_NOT_FOUND, /* c0000031 (STATUS_INVALID_QUOTA_LOWER) */
232 ERROR_DISK_CORRUPT, /* c0000032 (STATUS_DISK_CORRUPT_ERROR) */
233 ERROR_INVALID_NAME, /* c0000033 (STATUS_OBJECT_NAME_INVALID) */
234 ERROR_FILE_NOT_FOUND, /* c0000034 (STATUS_OBJECT_NAME_NOT_FOUND) */
235 ERROR_ALREADY_EXISTS, /* c0000035 (STATUS_OBJECT_NAME_COLLISION) */
236 ERROR_MR_MID_NOT_FOUND, /* c0000036 */
237 ERROR_INVALID_HANDLE, /* c0000037 (STATUS_PORT_DISCONNECTED) */
238 ERROR_MR_MID_NOT_FOUND, /* c0000038 (STATUS_DEVICE_ALREADY_ATTACHED) */
239 ERROR_BAD_PATHNAME, /* c0000039 (STATUS_OBJECT_PATH_INVALID) */
240 ERROR_PATH_NOT_FOUND, /* c000003a (STATUS_OBJECT_PATH_NOT_FOUND) */
241 ERROR_BAD_PATHNAME, /* c000003b (STATUS_PATH_SYNTAX_BAD) */
242 ERROR_IO_DEVICE, /* c000003c (STATUS_DATA_OVERRUN) */
243 ERROR_IO_DEVICE, /* c000003d (STATUS_DATA_LATE_ERROR) */
244 ERROR_CRC, /* c000003e (STATUS_DATA_ERROR) */
245 ERROR_CRC, /* c000003f (STATUS_CRC_ERROR) */
246 ERROR_NOT_ENOUGH_MEMORY, /* c0000040 (STATUS_SECTION_TOO_BIG) */
247 ERROR_ACCESS_DENIED, /* c0000041 (STATUS_PORT_CONNECTION_REFUSED) */
248 ERROR_INVALID_HANDLE, /* c0000042 (STATUS_INVALID_PORT_HANDLE) */
249 ERROR_SHARING_VIOLATION, /* c0000043 (STATUS_SHARING_VIOLATION) */
250 ERROR_NOT_ENOUGH_QUOTA, /* c0000044 (STATUS_QUOTA_EXCEEDED) */
251 ERROR_INVALID_PARAMETER, /* c0000045 (STATUS_INVALID_PAGE_PROTECTION) */
252 ERROR_NOT_OWNER, /* c0000046 (STATUS_MUTANT_NOT_OWNED) */
253 ERROR_TOO_MANY_POSTS, /* c0000047 (STATUS_SEMAPHORE_LIMIT_EXCEEDED) */
254 ERROR_INVALID_PARAMETER, /* c0000048 (STATUS_PORT_ALREADY_SET) */
255 ERROR_INVALID_PARAMETER, /* c0000049 */
256 ERROR_SIGNAL_REFUSED, /* c000004a (STATUS_SUSPEND_COUNT_EXCEEDED) */
257 ERROR_ACCESS_DENIED, /* c000004b */
258 ERROR_INVALID_PARAMETER, /* c000004c */
259 ERROR_INVALID_PARAMETER, /* c000004d */
260 ERROR_INVALID_PARAMETER, /* c000004e */
261 ERROR_MR_MID_NOT_FOUND, /* c000004f */
262 ERROR_EA_LIST_INCONSISTENT, /* c0000050 */
263 ERROR_FILE_CORRUPT, /* c0000051 */
264 ERROR_FILE_CORRUPT, /* c0000052 */
265 ERROR_FILE_CORRUPT, /* c0000053 */
266 ERROR_LOCK_VIOLATION, /* c0000054 (STATUS_LOCK_NOT_GRANTED) */
267 ERROR_LOCK_VIOLATION, /* c0000055 (STATUS_FILE_LOCK_CONFLICT) */
268 ERROR_ACCESS_DENIED, /* c0000056 */
269 ERROR_NOT_SUPPORTED, /* c0000057 */
270 ERROR_UNKNOWN_REVISION, /* c0000058 (STATUS_UNKNOWN_REVISION) */
271 ERROR_REVISION_MISMATCH, /* c0000059 */
272 ERROR_INVALID_OWNER, /* c000005a */
273 ERROR_INVALID_PRIMARY_GROUP, /* c000005b */
274 ERROR_NO_IMPERSONATION_TOKEN, /* c000005c */
275 ERROR_CANT_DISABLE_MANDATORY, /* c000005d */
276 ERROR_NO_LOGON_SERVERS, /* c000005e */
277 ERROR_NO_SUCH_LOGON_SESSION, /* c000005f */
278 ERROR_NO_SUCH_PRIVILEGE, /* c0000060 */
279 ERROR_PRIVILEGE_NOT_HELD, /* c0000061 */
280 ERROR_INVALID_ACCOUNT_NAME, /* c0000062 */
281 ERROR_USER_EXISTS, /* c0000063 */
282 ERROR_NO_SUCH_USER, /* c0000064 */
283 ERROR_GROUP_EXISTS, /* c0000065 */
284 ERROR_NO_SUCH_GROUP, /* c0000066 */
285 ERROR_MEMBER_IN_GROUP, /* c0000067 */
286 ERROR_MEMBER_NOT_IN_GROUP, /* c0000068 */
287 ERROR_LAST_ADMIN, /* c0000069 */
288 ERROR_INVALID_PASSWORD, /* c000006a */
289 ERROR_ILL_FORMED_PASSWORD, /* c000006b */
290 ERROR_PASSWORD_RESTRICTION, /* c000006c */
291 ERROR_LOGON_FAILURE, /* c000006d */
292 ERROR_ACCOUNT_RESTRICTION, /* c000006e */
293 ERROR_INVALID_LOGON_HOURS, /* c000006f */
294 ERROR_INVALID_WORKSTATION, /* c0000070 */
295 ERROR_PASSWORD_EXPIRED, /* c0000071 */
296 ERROR_ACCOUNT_DISABLED, /* c0000072 */
297 ERROR_NONE_MAPPED, /* c0000073 */
298 ERROR_TOO_MANY_LUIDS_REQUESTED, /* c0000074 */
299 ERROR_LUIDS_EXHAUSTED, /* c0000075 */
300 ERROR_INVALID_SUB_AUTHORITY, /* c0000076 */
301 ERROR_INVALID_ACL, /* c0000077 */
302 ERROR_INVALID_SID, /* c0000078 */
303 ERROR_INVALID_SECURITY_DESCR, /* c0000079 (STATUS_INVALID_SECURITY_DESCR) */
304 ERROR_PROC_NOT_FOUND, /* c000007a */
305 ERROR_BAD_EXE_FORMAT, /* c000007b */
306 ERROR_NO_TOKEN, /* c000007c */
307 ERROR_BAD_INHERITANCE_ACL, /* c000007d */
308 ERROR_NOT_LOCKED, /* c000007e */
309 ERROR_DISK_FULL, /* c000007f (STATUS_DISK_FULL) */
310 ERROR_SERVER_DISABLED, /* c0000080 */
311 ERROR_SERVER_NOT_DISABLED, /* c0000081 */
312 ERROR_TOO_MANY_NAMES, /* c0000082 */
313 ERROR_NO_MORE_ITEMS, /* c0000083 */
314 ERROR_INVALID_ID_AUTHORITY, /* c0000084 */
315 ERROR_NO_MORE_ITEMS, /* c0000085 */
316 ERROR_LABEL_TOO_LONG, /* c0000086 */
317 ERROR_OUTOFMEMORY, /* c0000087 (STATUS_SECTION_NOT_EXTENDED) */
318 ERROR_INVALID_ADDRESS, /* c0000088 */
319 ERROR_RESOURCE_DATA_NOT_FOUND, /* c0000089 */
320 ERROR_RESOURCE_TYPE_NOT_FOUND, /* c000008a */
321 ERROR_RESOURCE_NAME_NOT_FOUND, /* c000008b */
322 0, /* c000008c (STATUS_ARRAY_BOUNDS_EXCEEDED) */
323 0, /* c000008d (STATUS_FLOAT_DENORMAL_OPERAND) */
324 0, /* c000008e (STATUS_FLOAT_DIVIDE_BY_ZERO) */
325 0, /* c000008f (STATUS_FLOAT_INEXACT_RESULT) */
326 0, /* c0000090 (STATUS_FLOAT_INVALID_OPERATION) */
327 0, /* c0000091 (STATUS_FLOAT_OVERFLOW) */
328 0, /* c0000092 (STATUS_FLOAT_STACK_CHECK) */
329 0, /* c0000093 (STATUS_FLOAT_UNDERFLOW) */
330 0, /* c0000094 (STATUS_INTEGER_DIVIDE_BY_ZERO) */
331 ERROR_ARITHMETIC_OVERFLOW, /* c0000095 (STATUS_INTEGER_OVERFLOW) */
332 0, /* c0000096 (STATUS_PRIVILEGED_INSTRUCTION) */
333 ERROR_NOT_ENOUGH_MEMORY, /* c0000097 */
334 ERROR_FILE_INVALID, /* c0000098 */
335 ERROR_ALLOTTED_SPACE_EXCEEDED, /* c0000099 */
336 ERROR_NO_SYSTEM_RESOURCES, /* c000009a */
337 ERROR_PATH_NOT_FOUND, /* c000009b */
338 ERROR_CRC, /* c000009c */
339 ERROR_NOT_READY, /* c000009d */
340 ERROR_NOT_READY, /* c000009e */
341 ERROR_INVALID_ADDRESS, /* c000009f */
342 ERROR_INVALID_ADDRESS, /* c00000a0 */
343 ERROR_WORKING_SET_QUOTA, /* c00000a1 */
344 ERROR_WRITE_PROTECT, /* c00000a2 */
345 ERROR_NOT_READY, /* c00000a3 */
346 ERROR_INVALID_GROUP_ATTRIBUTES, /* c00000a4 */
347 ERROR_BAD_IMPERSONATION_LEVEL, /* c00000a5 */
348 ERROR_CANT_OPEN_ANONYMOUS, /* c00000a6 */
349 ERROR_BAD_VALIDATION_CLASS, /* c00000a7 */
350 ERROR_BAD_TOKEN_TYPE, /* c00000a8 */
351 ERROR_MR_MID_NOT_FOUND, /* c00000a9 */
352 ERROR_MR_MID_NOT_FOUND, /* c00000aa */
353 ERROR_PIPE_BUSY, /* c00000ab */
354 ERROR_PIPE_BUSY, /* c00000ac */
355 ERROR_BAD_PIPE, /* c00000ad */
356 ERROR_PIPE_BUSY, /* c00000ae */
357 ERROR_INVALID_FUNCTION, /* c00000af */
358 ERROR_PIPE_NOT_CONNECTED, /* c00000b0 */
359 ERROR_NO_DATA, /* c00000b1 */
360 ERROR_PIPE_CONNECTED, /* c00000b2 */
361 ERROR_PIPE_LISTENING, /* c00000b3 */
362 ERROR_BAD_PIPE, /* c00000b4 */
363 ERROR_SEM_TIMEOUT, /* c00000b5 */
364 ERROR_HANDLE_EOF, /* c00000b6 */
365 ERROR_MR_MID_NOT_FOUND, /* c00000b7 */
366 ERROR_MR_MID_NOT_FOUND, /* c00000b8 */
367 ERROR_MR_MID_NOT_FOUND, /* c00000b9 */
368 ERROR_ACCESS_DENIED, /* c00000ba */
369 ERROR_NOT_SUPPORTED, /* c00000bb */
370 ERROR_REM_NOT_LIST, /* c00000bc */
371 ERROR_DUP_NAME, /* c00000bd */
372 ERROR_BAD_NETPATH, /* c00000be */
373 ERROR_NETWORK_BUSY, /* c00000bf */
374 ERROR_DEV_NOT_EXIST, /* c00000c0 */
375 ERROR_TOO_MANY_CMDS, /* c00000c1 */
376 ERROR_ADAP_HDW_ERR, /* c00000c2 */
377 ERROR_BAD_NET_RESP, /* c00000c3 */
378 ERROR_UNEXP_NET_ERR, /* c00000c4 */
379 ERROR_BAD_REM_ADAP, /* c00000c5 */
380 ERROR_PRINTQ_FULL, /* c00000c6 */
381 ERROR_NO_SPOOL_SPACE, /* c00000c7 */
382 ERROR_PRINT_CANCELLED, /* c00000c8 */
383 ERROR_NETNAME_DELETED, /* c00000c9 */
384 ERROR_NETWORK_ACCESS_DENIED, /* c00000ca */
385 ERROR_BAD_DEV_TYPE, /* c00000cb */
386 ERROR_BAD_NET_NAME, /* c00000cc */
387 ERROR_TOO_MANY_NAMES, /* c00000cd */
388 ERROR_TOO_MANY_SESS, /* c00000ce */
389 ERROR_SHARING_PAUSED, /* c00000cf */
390 ERROR_REQ_NOT_ACCEP, /* c00000d0 */
391 ERROR_REDIR_PAUSED, /* c00000d1 */
392 ERROR_NET_WRITE_FAULT, /* c00000d2 */
393 ERROR_MR_MID_NOT_FOUND, /* c00000d3 */
394 ERROR_NOT_SAME_DEVICE, /* c00000d4 */
395 ERROR_MR_MID_NOT_FOUND, /* c00000d5 */
396 ERROR_VC_DISCONNECTED, /* c00000d6 */
397 ERROR_NO_SECURITY_ON_OBJECT, /* c00000d7 */
398 ERROR_MR_MID_NOT_FOUND, /* c00000d8 */
399 ERROR_NO_DATA, /* c00000d9 */
400 ERROR_CANT_ACCESS_DOMAIN_INFO, /* c00000da */
401 ERROR_MR_MID_NOT_FOUND, /* c00000db */
402 ERROR_INVALID_SERVER_STATE, /* c00000dc */
403 ERROR_INVALID_DOMAIN_STATE, /* c00000dd */
404 ERROR_INVALID_DOMAIN_ROLE, /* c00000de */
405 ERROR_NO_SUCH_DOMAIN, /* c00000df */
406 ERROR_DOMAIN_EXISTS, /* c00000e0 */
407 ERROR_DOMAIN_LIMIT_EXCEEDED, /* c00000e1 */
408 ERROR_MR_MID_NOT_FOUND, /* c00000e2 */
409 ERROR_MR_MID_NOT_FOUND, /* c00000e3 */
410 ERROR_INTERNAL_DB_CORRUPTION, /* c00000e4 */
411 ERROR_INTERNAL_ERROR, /* c00000e5 */
412 ERROR_GENERIC_NOT_MAPPED, /* c00000e6 */
413 ERROR_BAD_DESCRIPTOR_FORMAT, /* c00000e7 */
414 ERROR_INVALID_USER_BUFFER, /* c00000e8 */
415 ERROR_MR_MID_NOT_FOUND, /* c00000e9 */
416 ERROR_MR_MID_NOT_FOUND, /* c00000ea */
417 ERROR_MR_MID_NOT_FOUND, /* c00000eb */
418 ERROR_MR_MID_NOT_FOUND, /* c00000ec */
419 ERROR_NOT_LOGON_PROCESS, /* c00000ed */
420 ERROR_LOGON_SESSION_EXISTS, /* c00000ee */
421 ERROR_INVALID_PARAMETER, /* c00000ef */
422 ERROR_INVALID_PARAMETER, /* c00000f0 (STATUS_INVALID_PARAMETER_2) */
423 ERROR_INVALID_PARAMETER, /* c00000f1 */
424 ERROR_INVALID_PARAMETER, /* c00000f2 */
425 ERROR_INVALID_PARAMETER, /* c00000f3 */
426 ERROR_INVALID_PARAMETER, /* c00000f4 */
427 ERROR_INVALID_PARAMETER, /* c00000f5 */
428 ERROR_INVALID_PARAMETER, /* c00000f6 */
429 ERROR_INVALID_PARAMETER, /* c00000f7 */
430 ERROR_INVALID_PARAMETER, /* c00000f8 */
431 ERROR_INVALID_PARAMETER, /* c00000f9 */
432 ERROR_INVALID_PARAMETER, /* c00000fa */
433 ERROR_PATH_NOT_FOUND, /* c00000fb */
434 ERROR_MR_MID_NOT_FOUND, /* c00000fc */
435 ERROR_STACK_OVERFLOW, /* c00000fd (STATUS_STACK_OVERFLOW) */
436 ERROR_NO_SUCH_PACKAGE, /* c00000fe */
437 ERROR_MR_MID_NOT_FOUND, /* c00000ff */
438 ERROR_ENVVAR_NOT_FOUND, /* c0000100 */
439 ERROR_DIR_NOT_EMPTY, /* c0000101 (STATUS_DIRECTORY_NOT_EMPTY) */
440 ERROR_FILE_CORRUPT, /* c0000102 */
441 ERROR_DIRECTORY, /* c0000103 */
442 ERROR_BAD_LOGON_SESSION_STATE, /* c0000104 */
443 ERROR_LOGON_SESSION_COLLISION, /* c0000105 */
444 ERROR_FILENAME_EXCED_RANGE, /* c0000106 */
445 ERROR_MR_MID_NOT_FOUND, /* c0000107 */
446 ERROR_DEVICE_IN_USE, /* c0000108 */
447 ERROR_MR_MID_NOT_FOUND, /* c0000109 */
448 ERROR_ACCESS_DENIED, /* c000010a */
449 ERROR_INVALID_LOGON_TYPE, /* c000010b */
450 ERROR_MR_MID_NOT_FOUND, /* c000010c */
451 ERROR_CANNOT_IMPERSONATE, /* c000010d */
452 ERROR_SERVICE_ALREADY_RUNNING, /* c000010e */
453 ERROR_MR_MID_NOT_FOUND, /* c000010f */
454 ERROR_MR_MID_NOT_FOUND, /* c0000110 */
455 ERROR_MR_MID_NOT_FOUND, /* c0000111 */
456 ERROR_MR_MID_NOT_FOUND, /* c0000112 */
457 ERROR_MR_MID_NOT_FOUND, /* c0000113 */
458 ERROR_MR_MID_NOT_FOUND, /* c0000114 */
459 ERROR_MR_MID_NOT_FOUND, /* c0000115 */
460 ERROR_MR_MID_NOT_FOUND, /* c0000116 */
461 ERROR_MR_MID_NOT_FOUND, /* c0000117 */
462 ERROR_MR_MID_NOT_FOUND, /* c0000118 */
463 ERROR_MR_MID_NOT_FOUND, /* c0000119 */
464 ERROR_MR_MID_NOT_FOUND, /* c000011a */
465 ERROR_BAD_EXE_FORMAT, /* c000011b */
466 ERROR_RXACT_INVALID_STATE, /* c000011c */
467 ERROR_RXACT_COMMIT_FAILURE, /* c000011d */
468 ERROR_FILE_INVALID, /* c000011e */
469 ERROR_TOO_MANY_OPEN_FILES, /* c000011f (STATUS_TOO_MANY_OPENED_FILES) */
470 ERROR_OPERATION_ABORTED, /* c0000120 */
471 ERROR_ACCESS_DENIED, /* c0000121 */
472 ERROR_INVALID_COMPUTERNAME, /* c0000122 */
473 ERROR_ACCESS_DENIED, /* c0000123 */
474 ERROR_SPECIAL_ACCOUNT, /* c0000124 */
475 ERROR_SPECIAL_GROUP, /* c0000125 */
476 ERROR_SPECIAL_USER, /* c0000126 */
477 ERROR_MEMBERS_PRIMARY_GROUP, /* c0000127 */
478 ERROR_INVALID_HANDLE, /* c0000128 */
479 ERROR_MR_MID_NOT_FOUND, /* c0000129 */
480 ERROR_MR_MID_NOT_FOUND, /* c000012a */
481 ERROR_TOKEN_ALREADY_IN_USE, /* c000012b */
482 ERROR_MR_MID_NOT_FOUND, /* c000012c */
483 ERROR_COMMITMENT_LIMIT, /* c000012d */
484 ERROR_BAD_EXE_FORMAT, /* c000012e */
485 ERROR_BAD_EXE_FORMAT, /* c000012f */
486 ERROR_BAD_EXE_FORMAT, /* c0000130 */
487 ERROR_BAD_EXE_FORMAT, /* c0000131 */
488 ERROR_MR_MID_NOT_FOUND, /* c0000132 */
489 ERROR_MR_MID_NOT_FOUND, /* c0000133 */
490 ERROR_MR_MID_NOT_FOUND, /* c0000134 */
491 ERROR_MOD_NOT_FOUND, /* c0000135 */
492 ERROR_MR_MID_NOT_FOUND, /* c0000136 */
493 ERROR_MR_MID_NOT_FOUND, /* c0000137 */
494 ERROR_INVALID_ORDINAL, /* c0000138 */
495 ERROR_PROC_NOT_FOUND, /* c0000139 */
496 ERROR_MR_MID_NOT_FOUND, /* c000013a (STATUS_CONTROL_C_EXIT) */
497 ERROR_NETNAME_DELETED, /* c000013b */
498 ERROR_NETNAME_DELETED, /* c000013c */
499 ERROR_REM_NOT_LIST, /* c000013d */
500 ERROR_UNEXP_NET_ERR, /* c000013e */
501 ERROR_UNEXP_NET_ERR, /* c000013f */
502 ERROR_UNEXP_NET_ERR, /* c0000140 */
503 ERROR_UNEXP_NET_ERR, /* c0000141 */
504 ERROR_DLL_INIT_FAILED, /* c0000142 */
505 ERROR_MR_MID_NOT_FOUND, /* c0000143 */
506 ERROR_MR_MID_NOT_FOUND, /* c0000144 */
507 ERROR_MR_MID_NOT_FOUND, /* c0000145 */
508 ERROR_MR_MID_NOT_FOUND, /* c0000146 */
509 ERROR_MR_MID_NOT_FOUND, /* c0000147 */
510 ERROR_INVALID_LEVEL, /* c0000148 */
511 ERROR_INVALID_PASSWORD, /* c0000149 */
512 ERROR_MR_MID_NOT_FOUND, /* c000014a */
513 ERROR_BROKEN_PIPE, /* c000014b (STATUS_PIPE_BROKEN) */
514 ERROR_BADDB, /* c000014c */
515 ERROR_REGISTRY_IO_FAILED, /* c000014d */
516 ERROR_MR_MID_NOT_FOUND, /* c000014e */
517 ERROR_UNRECOGNIZED_VOLUME, /* c000014f */
518 ERROR_SERIAL_NO_DEVICE, /* c0000150 */
519 ERROR_NO_SUCH_ALIAS, /* c0000151 */
520 ERROR_MEMBER_NOT_IN_ALIAS, /* c0000152 */
521 ERROR_MEMBER_IN_ALIAS, /* c0000153 */
522 ERROR_ALIAS_EXISTS, /* c0000154 */
523 ERROR_LOGON_NOT_GRANTED, /* c0000155 */
524 ERROR_TOO_MANY_SECRETS, /* c0000156 */
525 ERROR_SECRET_TOO_LONG, /* c0000157 */
526 ERROR_INTERNAL_DB_ERROR, /* c0000158 */
527 ERROR_FULLSCREEN_MODE, /* c0000159 */
528 ERROR_TOO_MANY_CONTEXT_IDS, /* c000015a */
529 ERROR_LOGON_TYPE_NOT_GRANTED, /* c000015b */
530 ERROR_NOT_REGISTRY_FILE, /* c000015c (STATUS_NOT_REGISTRY_FILE) */
531 ERROR_NT_CROSS_ENCRYPTION_REQUIRED, /* c000015d */
532 ERROR_MR_MID_NOT_FOUND, /* c000015e */
533 ERROR_IO_DEVICE, /* c000015f */
534 ERROR_MR_MID_NOT_FOUND, /* c0000160 */
535 ERROR_MR_MID_NOT_FOUND, /* c0000161 */
536 ERROR_NO_UNICODE_TRANSLATION, /* c0000162 */
537 ERROR_MR_MID_NOT_FOUND, /* c0000163 */
538 ERROR_MR_MID_NOT_FOUND, /* c0000164 */
539 ERROR_FLOPPY_ID_MARK_NOT_FOUND, /* c0000165 */
540 ERROR_FLOPPY_WRONG_CYLINDER, /* c0000166 */
541 ERROR_FLOPPY_UNKNOWN_ERROR, /* c0000167 */
542 ERROR_FLOPPY_BAD_REGISTERS, /* c0000168 */
543 ERROR_DISK_RECALIBRATE_FAILED, /* c0000169 */
544 ERROR_DISK_OPERATION_FAILED, /* c000016a */
545 ERROR_DISK_RESET_FAILED, /* c000016b */
546 ERROR_IRQ_BUSY, /* c000016c */
547 ERROR_IO_DEVICE, /* c000016d */
548 ERROR_MR_MID_NOT_FOUND, /* c000016e */
549 ERROR_MR_MID_NOT_FOUND, /* c000016f */
550 ERROR_MR_MID_NOT_FOUND, /* c0000170 */
551 ERROR_MR_MID_NOT_FOUND, /* c0000171 */
552 ERROR_PARTITION_FAILURE, /* c0000172 (STATUS_PARTITION_FAILURE) */
553 ERROR_INVALID_BLOCK_LENGTH, /* c0000173 (STATUS_INVALID_BLOCK_LENGTH) */
554 ERROR_DEVICE_NOT_PARTITIONED, /* c0000174 (STATUS_DEVICE_NOT_PARTITIONED) */
555 ERROR_UNABLE_TO_LOCK_MEDIA, /* c0000175 (STATUS_UNABLE_TO_LOCK_MEDIA) */
556 ERROR_UNABLE_TO_UNLOAD_MEDIA, /* c0000176 (STATUS_UNABLE_TO_UNLOAD_MEDIA) */
557 ERROR_EOM_OVERFLOW, /* c0000177 (STATUS_EOM_OVERFLOW) */
558 ERROR_NO_MEDIA_IN_DRIVE, /* c0000178 (STATUS_NO_MEDIA) */
559 ERROR_MR_MID_NOT_FOUND, /* c0000179 */
560 ERROR_NO_SUCH_MEMBER, /* c000017a (STATUS_NO_SUCH_MEMBER) */
561 ERROR_INVALID_MEMBER, /* c000017b (STATUS_INVALID_MEMBER) */
562 ERROR_KEY_DELETED, /* c000017c (STATUS_KEY_DELETED) */
563 ERROR_NO_LOG_SPACE, /* c000017d (STATUS_NO_LOG_SPACE) */
564 ERROR_TOO_MANY_SIDS, /* c000017e (STATUS_TOO_MANY_SIDS) */
565 ERROR_LM_CROSS_ENCRYPTION_REQUIRED, /* c000017f (STATUS_LM_CROSS_ENCRYPTION_REQUIRED) */
566 ERROR_KEY_HAS_CHILDREN, /* c0000180 (STATUS_KEY_HAS_CHILDREN) */
567 ERROR_CHILD_MUST_BE_VOLATILE, /* c0000181 (STATUS_CHILD_MUST_BE_VOLATILE) */
568 ERROR_INVALID_PARAMETER, /* c0000182 */
569 ERROR_IO_DEVICE, /* c0000183 (STATUS_DRIVER_INTERNAL_ERROR) */
570 ERROR_BAD_COMMAND, /* c0000184 (STATUS_INVALID_DEVICE_STATE) */
571 ERROR_IO_DEVICE, /* c0000185 (STATUS_IO_DEVICE_ERROR) */
572 ERROR_IO_DEVICE, /* c0000186 (STATUS_DEVICE_PROTOCOL_ERROR) */
573 ERROR_MR_MID_NOT_FOUND, /* c0000187 (STATUS_BACKUP_CONTROLLER) */
574 ERROR_LOG_FILE_FULL, /* c0000188 (STATUS_LOG_FILE_FULL) */
575 ERROR_WRITE_PROTECT, /* c0000189 (STATUS_TOO_LATE) */
576 ERROR_NO_TRUST_LSA_SECRET, /* c000018a (STATUS_NO_TRUST_LSA_SECRET) */
577 ERROR_NO_TRUST_SAM_ACCOUNT, /* c000018b (STATUS_NO_TRUST_SAM_ACCOUNT) */
578 ERROR_TRUSTED_DOMAIN_FAILURE, /* c000018c (STATUS_TRUSTED_DOMAIN_FAILURE) */
579 ERROR_TRUSTED_RELATIONSHIP_FAILURE, /* c000018d (STATUS_TRUSTED_RELATIONSHIP_FAILURE) */
580 ERROR_EVENTLOG_FILE_CORRUPT, /* c000018e (STATUS_EVENTLOG_FILE_CORRUPT) */
581 ERROR_EVENTLOG_CANT_START, /* c000018f (STATUS_EVENTLOG_CANT_START) */
582 ERROR_TRUST_FAILURE, /* c0000190 (STATUS_TRUST_FAILURE) */
583 ERROR_MR_MID_NOT_FOUND, /* c0000191 (STATUS_MUTANT_LIMIT_EXCEEDED) */
584 ERROR_NETLOGON_NOT_STARTED, /* c0000192 (STATUS_NETLOGON_NOT_STARTED) */
585 ERROR_ACCOUNT_EXPIRED, /* c0000193 (STATUS_ACCOUNT_EXPIRED) */
586 ERROR_POSSIBLE_DEADLOCK, /* c0000194 (STATUS_POSSIBLE_DEADLOCK) */
587 ERROR_SESSION_CREDENTIAL_CONFLICT, /* c0000195 (STATUS_NETWORK_CREDENTIAL_CONFLICT) */
588 ERROR_REMOTE_SESSION_LIMIT_EXCEEDED, /* c0000196 (STATUS_REMOTE_SESSION_LIMIT) */
589 ERROR_EVENTLOG_FILE_CHANGED, /* c0000197 (STATUS_EVENTLOG_FILE_CHANGED) */
590 ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT,/* c0000198 (STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT) */
591 ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT,/* c0000199 (STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT) */
592 ERROR_NOLOGON_SERVER_TRUST_ACCOUNT, /* c000019a (STATUS_NOLOGON_SERVER_TRUST_ACCOUNT) */
593 ERROR_DOMAIN_TRUST_INCONSISTENT /* c000019b (STATUS_DOMAIN_TRUST_INCONSISTENT) */
596 static const WORD table_c0000202[109] =
598 ERROR_NO_USER_SESSION_KEY, /* c0000202 */
599 ERROR_UNEXP_NET_ERR, /* c0000203 */
600 ERROR_RESOURCE_LANG_NOT_FOUND, /* c0000204 (STATUS_RESOURCE_LANG_NOT_FOUND) */
601 ERROR_NOT_ENOUGH_SERVER_MEMORY, /* c0000205 */
602 ERROR_INVALID_USER_BUFFER, /* c0000206 */
603 ERROR_INVALID_NETNAME, /* c0000207 */
604 ERROR_INVALID_NETNAME, /* c0000208 */
605 ERROR_TOO_MANY_NAMES, /* c0000209 */
606 ERROR_DUP_NAME, /* c000020a */
607 ERROR_NETNAME_DELETED, /* c000020b */
608 ERROR_NETNAME_DELETED, /* c000020c */
609 ERROR_NETNAME_DELETED, /* c000020d */
610 ERROR_TOO_MANY_NAMES, /* c000020e */
611 ERROR_UNEXP_NET_ERR, /* c000020f */
612 ERROR_UNEXP_NET_ERR, /* c0000210 */
613 ERROR_UNEXP_NET_ERR, /* c0000211 */
614 ERROR_UNEXP_NET_ERR, /* c0000212 */
615 ERROR_UNEXP_NET_ERR, /* c0000213 */
616 ERROR_UNEXP_NET_ERR, /* c0000214 */
617 ERROR_UNEXP_NET_ERR, /* c0000215 */
618 ERROR_NOT_SUPPORTED, /* c0000216 */
619 ERROR_NOT_SUPPORTED, /* c0000217 */
620 ERROR_MR_MID_NOT_FOUND, /* c0000218 */
621 ERROR_MR_MID_NOT_FOUND, /* c0000219 */
622 ERROR_MR_MID_NOT_FOUND, /* c000021a */
623 ERROR_MR_MID_NOT_FOUND, /* c000021b */
624 ERROR_NO_BROWSER_SERVERS_FOUND, /* c000021c */
625 ERROR_MR_MID_NOT_FOUND, /* c000021d */
626 ERROR_MR_MID_NOT_FOUND, /* c000021e */
627 ERROR_MR_MID_NOT_FOUND, /* c000021f */
628 ERROR_MAPPED_ALIGNMENT, /* c0000220 */
629 ERROR_BAD_EXE_FORMAT, /* c0000221 */
630 ERROR_MR_MID_NOT_FOUND, /* c0000222 */
631 ERROR_MR_MID_NOT_FOUND, /* c0000223 */
632 ERROR_PASSWORD_MUST_CHANGE, /* c0000224 */
633 ERROR_MR_MID_NOT_FOUND, /* c0000225 */
634 ERROR_MR_MID_NOT_FOUND, /* c0000226 */
635 ERROR_MR_MID_NOT_FOUND, /* c0000227 */
636 ERROR_MR_MID_NOT_FOUND, /* c0000228 */
637 ERROR_MR_MID_NOT_FOUND, /* c0000229 */
640 ERROR_MR_MID_NOT_FOUND, /* c000022c */
641 ERROR_MR_MID_NOT_FOUND, /* c000022d */
642 ERROR_MR_MID_NOT_FOUND, /* c000022e */
643 ERROR_MR_MID_NOT_FOUND, /* c000022f */
644 ERROR_MR_MID_NOT_FOUND, /* c0000230 */
645 ERROR_MR_MID_NOT_FOUND, /* c0000231 */
646 ERROR_MR_MID_NOT_FOUND, /* c0000232 */
647 ERROR_DOMAIN_CONTROLLER_NOT_FOUND, /* c0000233 */
648 ERROR_ACCOUNT_LOCKED_OUT, /* c0000234 */
649 ERROR_INVALID_HANDLE, /* c0000235 */
650 ERROR_CONNECTION_REFUSED, /* c0000236 */
651 ERROR_GRACEFUL_DISCONNECT, /* c0000237 */
652 ERROR_ADDRESS_ALREADY_ASSOCIATED, /* c0000238 */
653 ERROR_ADDRESS_NOT_ASSOCIATED, /* c0000239 */
654 ERROR_CONNECTION_INVALID, /* c000023a */
655 ERROR_CONNECTION_ACTIVE, /* c000023b */
656 ERROR_NETWORK_UNREACHABLE, /* c000023c */
657 ERROR_HOST_UNREACHABLE, /* c000023d */
658 ERROR_PROTOCOL_UNREACHABLE, /* c000023e */
659 ERROR_PORT_UNREACHABLE, /* c000023f */
660 ERROR_REQUEST_ABORTED, /* c0000240 */
661 ERROR_CONNECTION_ABORTED, /* c0000241 */
662 ERROR_MR_MID_NOT_FOUND, /* c0000242 */
663 ERROR_USER_MAPPED_FILE, /* c0000243 */
664 ERROR_MR_MID_NOT_FOUND, /* c0000244 */
665 ERROR_MR_MID_NOT_FOUND, /* c0000245 */
666 ERROR_CONNECTION_COUNT_LIMIT, /* c0000246 */
667 ERROR_LOGIN_TIME_RESTRICTION, /* c0000247 */
668 ERROR_LOGIN_WKSTA_RESTRICTION, /* c0000248 */
669 ERROR_BAD_EXE_FORMAT, /* c0000249 */
670 ERROR_MR_MID_NOT_FOUND, /* c000024a */
671 ERROR_MR_MID_NOT_FOUND, /* c000024b */
672 ERROR_MR_MID_NOT_FOUND, /* c000024c */
673 ERROR_MR_MID_NOT_FOUND, /* c000024d */
674 ERROR_MR_MID_NOT_FOUND, /* c000024e */
675 ERROR_MR_MID_NOT_FOUND, /* c000024f */
676 ERROR_MR_MID_NOT_FOUND, /* c0000250 */
677 ERROR_MR_MID_NOT_FOUND, /* c0000251 */
678 ERROR_MR_MID_NOT_FOUND, /* c0000252 */
679 ERROR_INTERNAL_ERROR, /* c0000253 */
680 ERROR_MR_MID_NOT_FOUND, /* c0000254 */
681 ERROR_MR_MID_NOT_FOUND, /* c0000255 */
682 ERROR_MR_MID_NOT_FOUND, /* c0000256 */
683 ERROR_HOST_UNREACHABLE, /* c0000257 */
684 ERROR_MR_MID_NOT_FOUND, /* c0000258 */
685 ERROR_LICENSE_QUOTA_EXCEEDED, /* c0000259 */
686 ERROR_MR_MID_NOT_FOUND, /* c000025a */
687 ERROR_MR_MID_NOT_FOUND, /* c000025b */
688 ERROR_MR_MID_NOT_FOUND, /* c000025c */
689 ERROR_MR_MID_NOT_FOUND, /* c000025d */
690 ERROR_SERVICE_DISABLED, /* c000025e */
691 ERROR_MR_MID_NOT_FOUND, /* c000025f */
692 ERROR_MR_MID_NOT_FOUND, /* c0000260 */
693 ERROR_MR_MID_NOT_FOUND, /* c0000261 */
694 ERROR_INVALID_ORDINAL, /* c0000262 */
695 ERROR_PROC_NOT_FOUND, /* c0000263 */
696 ERROR_NOT_OWNER, /* c0000264 */
697 ERROR_TOO_MANY_LINKS, /* c0000265 */
698 ERROR_MR_MID_NOT_FOUND, /* c0000266 */
699 ERROR_MR_MID_NOT_FOUND, /* c0000267 */
700 ERROR_MR_MID_NOT_FOUND, /* c0000268 */
701 ERROR_MR_MID_NOT_FOUND, /* c0000269 */
702 ERROR_MR_MID_NOT_FOUND, /* c000026a */
703 ERROR_MR_MID_NOT_FOUND, /* c000026b */
704 ERROR_MR_MID_NOT_FOUND, /* c000026c */
705 ERROR_MR_MID_NOT_FOUND, /* c000026d */
706 ERROR_NOT_READY /* c000026e */
709 static const WORD table_c0020001[88] =
711 RPC_S_INVALID_STRING_BINDING, /* c0020001 */
712 RPC_S_WRONG_KIND_OF_BINDING, /* c0020002 */
713 ERROR_INVALID_HANDLE, /* c0020003 */
714 RPC_S_PROTSEQ_NOT_SUPPORTED, /* c0020004 */
715 RPC_S_INVALID_RPC_PROTSEQ, /* c0020005 */
716 RPC_S_INVALID_STRING_UUID, /* c0020006 */
717 RPC_S_INVALID_ENDPOINT_FORMAT, /* c0020007 */
718 RPC_S_INVALID_NET_ADDR, /* c0020008 */
719 RPC_S_NO_ENDPOINT_FOUND, /* c0020009 */
720 RPC_S_INVALID_TIMEOUT, /* c002000a */
721 RPC_S_OBJECT_NOT_FOUND, /* c002000b */
722 RPC_S_ALREADY_REGISTERED, /* c002000c */
723 RPC_S_TYPE_ALREADY_REGISTERED, /* c002000d */
724 RPC_S_ALREADY_LISTENING, /* c002000e */
725 RPC_S_NO_PROTSEQS_REGISTERED, /* c002000f */
726 RPC_S_NOT_LISTENING, /* c0020010 */
727 RPC_S_UNKNOWN_MGR_TYPE, /* c0020011 */
728 RPC_S_UNKNOWN_IF, /* c0020012 */
729 RPC_S_NO_BINDINGS, /* c0020013 */
730 RPC_S_NO_PROTSEQS, /* c0020014 */
731 RPC_S_CANT_CREATE_ENDPOINT, /* c0020015 */
732 RPC_S_OUT_OF_RESOURCES, /* c0020016 */
733 RPC_S_SERVER_UNAVAILABLE, /* c0020017 */
734 RPC_S_SERVER_TOO_BUSY, /* c0020018 */
735 RPC_S_INVALID_NETWORK_OPTIONS, /* c0020019 */
736 RPC_S_NO_CALL_ACTIVE, /* c002001a */
737 RPC_S_CALL_FAILED, /* c002001b */
738 RPC_S_CALL_FAILED_DNE, /* c002001c */
739 RPC_S_PROTOCOL_ERROR, /* c002001d */
740 ERROR_MR_MID_NOT_FOUND, /* c002001e */
741 RPC_S_UNSUPPORTED_TRANS_SYN, /* c002001f */
742 ERROR_MR_MID_NOT_FOUND, /* c0020020 */
743 RPC_S_UNSUPPORTED_TYPE, /* c0020021 */
744 RPC_S_INVALID_TAG, /* c0020022 */
745 RPC_S_INVALID_BOUND, /* c0020023 */
746 RPC_S_NO_ENTRY_NAME, /* c0020024 */
747 RPC_S_INVALID_NAME_SYNTAX, /* c0020025 */
748 RPC_S_UNSUPPORTED_NAME_SYNTAX, /* c0020026 */
749 ERROR_MR_MID_NOT_FOUND, /* c0020027 */
750 RPC_S_UUID_NO_ADDRESS, /* c0020028 */
751 RPC_S_DUPLICATE_ENDPOINT, /* c0020029 */
752 RPC_S_UNKNOWN_AUTHN_TYPE, /* c002002a */
753 RPC_S_MAX_CALLS_TOO_SMALL, /* c002002b */
754 RPC_S_STRING_TOO_LONG, /* c002002c */
755 RPC_S_PROTSEQ_NOT_FOUND, /* c002002d */
756 RPC_S_PROCNUM_OUT_OF_RANGE, /* c002002e */
757 RPC_S_BINDING_HAS_NO_AUTH, /* c002002f */
758 RPC_S_UNKNOWN_AUTHN_SERVICE, /* c0020030 */
759 RPC_S_UNKNOWN_AUTHN_LEVEL, /* c0020031 */
760 RPC_S_INVALID_AUTH_IDENTITY, /* c0020032 */
761 RPC_S_UNKNOWN_AUTHZ_SERVICE, /* c0020033 */
762 EPT_S_INVALID_ENTRY, /* c0020034 */
763 EPT_S_CANT_PERFORM_OP, /* c0020035 */
764 EPT_S_NOT_REGISTERED, /* c0020036 */
765 RPC_S_NOTHING_TO_EXPORT, /* c0020037 */
766 RPC_S_INCOMPLETE_NAME, /* c0020038 */
767 RPC_S_INVALID_VERS_OPTION, /* c0020039 */
768 RPC_S_NO_MORE_MEMBERS, /* c002003a */
769 RPC_S_NOT_ALL_OBJS_UNEXPORTED, /* c002003b */
770 RPC_S_INTERFACE_NOT_FOUND, /* c002003c */
771 RPC_S_ENTRY_ALREADY_EXISTS, /* c002003d */
772 RPC_S_ENTRY_NOT_FOUND, /* c002003e */
773 RPC_S_NAME_SERVICE_UNAVAILABLE, /* c002003f */
774 RPC_S_INVALID_NAF_ID, /* c0020040 */
775 RPC_S_CANNOT_SUPPORT, /* c0020041 */
776 RPC_S_NO_CONTEXT_AVAILABLE, /* c0020042 */
777 RPC_S_INTERNAL_ERROR, /* c0020043 */
778 RPC_S_ZERO_DIVIDE, /* c0020044 */
779 RPC_S_ADDRESS_ERROR, /* c0020045 */
780 RPC_S_FP_DIV_ZERO, /* c0020046 */
781 RPC_S_FP_UNDERFLOW, /* c0020047 */
782 RPC_S_FP_OVERFLOW, /* c0020048 */
783 RPC_S_CALL_IN_PROGRESS, /* c0020049 */
784 RPC_S_NO_MORE_BINDINGS, /* c002004a */
785 RPC_S_GROUP_MEMBER_NOT_FOUND, /* c002004b */
786 EPT_S_CANT_CREATE, /* c002004c */
787 RPC_S_INVALID_OBJECT, /* c002004d */
788 ERROR_MR_MID_NOT_FOUND, /* c002004e */
789 RPC_S_NO_INTERFACES, /* c002004f */
790 RPC_S_CALL_CANCELLED, /* c0020050 */
791 RPC_S_BINDING_INCOMPLETE, /* c0020051 */
792 RPC_S_COMM_FAILURE, /* c0020052 */
793 RPC_S_UNSUPPORTED_AUTHN_LEVEL, /* c0020053 */
794 RPC_S_NO_PRINC_NAME, /* c0020054 */
795 RPC_S_NOT_RPC_ERROR, /* c0020055 */
796 ERROR_MR_MID_NOT_FOUND, /* c0020056 */
797 RPC_S_SEC_PKG_ERROR, /* c0020057 */
798 RPC_S_NOT_CANCELLED /* c0020058 */
801 static const WORD table_c0030001[12] =
803 RPC_X_NO_MORE_ENTRIES, /* c0030001 */
804 RPC_X_SS_CHAR_TRANS_OPEN_FAIL, /* c0030002 */
805 RPC_X_SS_CHAR_TRANS_SHORT_FILE, /* c0030003 */
806 ERROR_INVALID_HANDLE, /* c0030004 */
807 ERROR_INVALID_HANDLE, /* c0030005 */
808 RPC_X_SS_CONTEXT_DAMAGED, /* c0030006 */
809 RPC_X_SS_HANDLES_MISMATCH, /* c0030007 */
810 RPC_X_SS_CANNOT_GET_CALL_HANDLE, /* c0030008 */
811 RPC_X_NULL_REF_POINTER, /* c0030009 */
812 RPC_X_ENUM_VALUE_OUT_OF_RANGE, /* c003000a */
813 RPC_X_BYTE_COUNT_TOO_SMALL, /* c003000b */
814 RPC_X_BAD_STUB_DATA /* c003000c */
817 static const WORD table_c0030059[6] =
819 RPC_X_INVALID_ES_ACTION, /* c0030059 */
820 RPC_X_WRONG_ES_VERSION, /* c003005a */
821 RPC_X_WRONG_STUB_VERSION, /* c003005b */
822 RPC_X_INVALID_PIPE_OBJECT, /* c003005c */
823 RPC_X_WRONG_PIPE_ORDER, /* c003005d */
824 RPC_X_WRONG_PIPE_VERSION /* c003005e */
827 static const struct error_table error_table[] =
829 { 0x00000103, 0x0000010e, table_00000103 },
830 { 0x40000002, 0x4000000e, table_40000002 },
831 { 0x40020056, 0x40020057, table_40020056 },
832 { 0x400200af, 0x400200b0, table_400200af },
833 { 0x80000001, 0x80000026, table_80000001 },
834 { 0x80090300, 0x80090317, table_80090300 },
835 { 0xc0000001, 0xc000019c, table_c0000001 },
836 { 0xc0000202, 0xc000026f, table_c0000202 },
837 { 0xc0020001, 0xc0020059, table_c0020001 },
838 { 0xc0030001, 0xc003000d, table_c0030001 },
839 { 0xc0030059, 0xc003005f, table_c0030059 },
840 { 0, 0, 0 } /* last entry */