First version of DLL preloader.
[wincetools.git] / loader / ntdll_error.c
1 /* From wine1.2-1.1.42/dlls/ntdll/error.c  */\r
2 \r
3 /*\r
4  * NTDLL error handling\r
5  *\r
6  * Copyright 2000 Alexandre Julliard\r
7  * Copyright 2002 Andriy Palamarchuk\r
8  *\r
9  * This library is free software; you can redistribute it and/or\r
10  * modify it under the terms of the GNU Lesser General Public\r
11  * License as published by the Free Software Foundation; either\r
12  * version 2.1 of the License, or (at your option) any later version.\r
13  *\r
14  * This library is distributed in the hope that it will be useful,\r
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
17  * Lesser General Public License for more details.\r
18  *\r
19  * You should have received a copy of the GNU Lesser General Public\r
20  * License along with this library; if not, write to the Free Software\r
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\r
22  */\r
23 \r
24 \r
25 #include "wine.h"\r
26 \r
27 \r
28 struct error_table\r
29 {\r
30     DWORD       start;\r
31     DWORD       end;\r
32     const DWORD *table;\r
33 };\r
34 \r
35 static const struct error_table error_table[20];\r
36 \r
37 /**************************************************************************\r
38  *           RtlNtStatusToDosErrorNoTeb (NTDLL.@)\r
39  *\r
40  * Convert an NTSTATUS code to a Win32 error code.\r
41  *\r
42  * PARAMS\r
43  *  status [I] Nt error code to map.\r
44  *\r
45  * RETURNS\r
46  *  The mapped Win32 error code, or ERROR_MR_MID_NOT_FOUND if there is no\r
47  *  mapping defined.\r
48  */\r
49 static ULONG WINAPI MyRtlNtStatusToDosErrorNoTeb( NTSTATUS status )\r
50 {\r
51     const struct error_table *table = error_table;\r
52 \r
53     if (!status || (status & 0x20000000)) return status;\r
54 \r
55     /* 0xd... is equivalent to 0xc... */\r
56     if ((status & 0xf0000000) == 0xd0000000) status &= ~0x10000000;\r
57 \r
58     while (table->start)\r
59     {\r
60         if ((DWORD)status < table->start) break;\r
61         if ((DWORD)status < table->end)\r
62         {\r
63             DWORD ret = table->table[status - table->start];\r
64             /* unknown entries are 0 */\r
65             if (!ret) goto no_mapping;\r
66             return ret;\r
67         }\r
68         table++;\r
69     }\r
70 \r
71     /* now some special cases */\r
72     if (HIWORD(status) == 0xc001) return LOWORD(status);\r
73     if (HIWORD(status) == 0x8007) return LOWORD(status);\r
74 \r
75 no_mapping:\r
76     TRACE( "no mapping for %08x\n", status );\r
77     return ERROR_MR_MID_NOT_FOUND;\r
78 }\r
79 \r
80 /**************************************************************************\r
81  *           RtlNtStatusToDosError (NTDLL.@)\r
82  *\r
83  * Convert an NTSTATUS code to a Win32 error code.\r
84  *\r
85  * PARAMS\r
86  *  status [I] Nt error code to map.\r
87  *\r
88  * RETURNS\r
89  *  The mapped Win32 error code, or ERROR_MR_MID_NOT_FOUND if there is no\r
90  *  mapping defined.\r
91  */\r
92 ULONG WINAPI MyRtlNtStatusToDosError( NTSTATUS status )\r
93 {\r
94     return MyRtlNtStatusToDosErrorNoTeb( status );\r
95 }\r
96 \r
97 /* conversion tables */\r
98 \r
99 static const DWORD table_00000102[32] =\r
100 {\r
101    ERROR_TIMEOUT,                          /* 00000102 (STATUS_TIMEOUT) */\r
102    ERROR_IO_PENDING,                       /* 00000103 (STATUS_PENDING) */\r
103    0,                                      /* 00000104 (STATUS_REPARSE) */\r
104    ERROR_MORE_DATA,                        /* 00000105 (STATUS_MORE_ENTRIES) */\r
105    ERROR_NOT_ALL_ASSIGNED,                 /* 00000106 (STATUS_NOT_ALL_ASSIGNED) */\r
106    ERROR_SOME_NOT_MAPPED,                  /* 00000107 (STATUS_SOME_NOT_MAPPED) */\r
107    0,                                      /* 00000108 (STATUS_OPLOCK_BREAK_IN_PROGRESS) */\r
108    0,                                      /* 00000109 (STATUS_VOLUME_MOUNTED) */\r
109    0,                                      /* 0000010a (STATUS_RXACT_COMMITTED) */\r
110    0,                                      /* 0000010b (STATUS_NOTIFY_CLEANUP) */\r
111    ERROR_NOTIFY_ENUM_DIR,                  /* 0000010c (STATUS_NOTIFY_ENUM_DIR) */\r
112    ERROR_NO_QUOTAS_FOR_ACCOUNT,            /* 0000010d (STATUS_NO_QUOTAS_FOR_ACCOUNT) */\r
113    0,                                      /* 0000010e (STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED) */\r
114    0,                                      /* 0000010f */\r
115    0,                                      /* 00000110 (STATUS_PAGE_FAULT_TRANSITION) */\r
116    0,                                      /* 00000111 (STATUS_PAGE_FAULT_DEMAND_ZERO) */\r
117    0,                                      /* 00000112 (STATUS_PAGE_FAULT_COPY_ON_WRITE) */\r
118    0,                                      /* 00000113 (STATUS_PAGE_FAULT_GUARD_PAGE) */\r
119    0,                                      /* 00000114 (STATUS_PAGE_FAULT_PAGING_FILE) */\r
120    0,                                      /* 00000115 (STATUS_CACHE_PAGE_LOCKED) */\r
121    0,                                      /* 00000116 (STATUS_CRASH_DUMP) */\r
122    0,                                      /* 00000117 (STATUS_BUFFER_ALL_ZEROS) */\r
123    0,                                      /* 00000118 (STATUS_REPARSE_OBJECT) */\r
124    0,                                      /* 00000119 (STATUS_RESOURCE_REQUIREMENTS_CHANGED) */\r
125    0,                                      /* 0000011a */\r
126    0,                                      /* 0000011b */\r
127    0,                                      /* 0000011c */\r
128    0,                                      /* 0000011d */\r
129    0,                                      /* 0000011e */\r
130    0,                                      /* 0000011f */\r
131    0,                                      /* 00000120 (STATUS_TRANSLATION_COMPLETE) */\r
132    ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY   /* 00000121 (STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY) */\r
133 };\r
134 \r
135 static const DWORD table_40000002[12] =\r
136 {\r
137    ERROR_INVALID_PARAMETER,                /* 40000002 (STATUS_WORKING_SET_LIMIT_RANGE) */\r
138    0,                                      /* 40000003 (STATUS_IMAGE_NOT_AT_BASE) */\r
139    0,                                      /* 40000004 (STATUS_RXACT_STATE_CREATED) */\r
140    0,                                      /* 40000005 (STATUS_SEGMENT_NOTIFICATION) */\r
141    ERROR_LOCAL_USER_SESSION_KEY,           /* 40000006 (STATUS_LOCAL_USER_SESSION_KEY) */\r
142    0,                                      /* 40000007 (STATUS_BAD_CURRENT_DIRECTORY) */\r
143    ERROR_MORE_WRITES,                      /* 40000008 (STATUS_SERIAL_MORE_WRITES) */\r
144    ERROR_REGISTRY_RECOVERED,               /* 40000009 (STATUS_REGISTRY_RECOVERED) */\r
145    0,                                      /* 4000000a (STATUS_FT_READ_RECOVERY_FROM_BACKUP) */\r
146    0,                                      /* 4000000b (STATUS_FT_WRITE_RECOVERY) */\r
147    ERROR_COUNTER_TIMEOUT,                  /* 4000000c (STATUS_SERIAL_COUNTER_TIMEOUT) */\r
148    ERROR_NULL_LM_PASSWORD                  /* 4000000d (STATUS_NULL_LM_PASSWORD) */\r
149 };\r
150 \r
151 static const DWORD table_40000370[1] =\r
152 {\r
153    ERROR_DS_SHUTTING_DOWN                  /* 40000370 (STATUS_DS_SHUTTING_DOWN) */\r
154 };\r
155 \r
156 static const DWORD table_40020056[1] =\r
157 {\r
158    RPC_S_UUID_LOCAL_ONLY                   /* 40020056 (RPC_NT_UUID_LOCAL_ONLY) */\r
159 };\r
160 \r
161 static const DWORD table_400200af[1] =\r
162 {\r
163    RPC_S_SEND_INCOMPLETE                   /* 400200af (RPC_NT_SEND_INCOMPLETE) */\r
164 };\r
165 static const DWORD table_80000001[39] =\r
166 {\r
167    STATUS_GUARD_PAGE_VIOLATION,            /* 80000001 (STATUS_GUARD_PAGE_VIOLATION) */\r
168    ERROR_NOACCESS,                         /* 80000002 (STATUS_DATATYPE_MISALIGNMENT) */\r
169    STATUS_BREAKPOINT,                      /* 80000003 (STATUS_BREAKPOINT) */\r
170    STATUS_SINGLE_STEP,                     /* 80000004 (STATUS_SINGLE_STEP) */\r
171    ERROR_MORE_DATA,                        /* 80000005 (STATUS_BUFFER_OVERFLOW) */\r
172    ERROR_NO_MORE_FILES,                    /* 80000006 (STATUS_NO_MORE_FILES) */\r
173    0,                                      /* 80000007 (STATUS_WAKE_SYSTEM_DEBUGGER) */\r
174    0,                                      /* 80000008 */\r
175    0,                                      /* 80000009 */\r
176    0, //ERROR_HANDLES_CLOSED,                   /* 8000000a (STATUS_HANDLES_CLOSED) */\r
177    ERROR_NO_INHERITANCE,                   /* 8000000b (STATUS_NO_INHERITANCE) */\r
178    0,                                      /* 8000000c (STATUS_GUID_SUBSTITUTION_MADE) */\r
179    ERROR_PARTIAL_COPY,                     /* 8000000d (STATUS_PARTIAL_COPY) */\r
180    ERROR_OUT_OF_PAPER,                     /* 8000000e (STATUS_DEVICE_PAPER_EMPTY) */\r
181    ERROR_NOT_READY,                        /* 8000000f (STATUS_DEVICE_POWERED_OFF) */\r
182    ERROR_NOT_READY,                        /* 80000010 (STATUS_DEVICE_OFF_LINE) */\r
183    ERROR_BUSY,                             /* 80000011 (STATUS_DEVICE_BUSY) */\r
184    ERROR_NO_MORE_ITEMS,                    /* 80000012 (STATUS_NO_MORE_EAS) */\r
185    ERROR_INVALID_EA_NAME,                  /* 80000013 (STATUS_INVALID_EA_NAME) */\r
186    ERROR_EA_LIST_INCONSISTENT,             /* 80000014 (STATUS_EA_LIST_INCONSISTENT) */\r
187    ERROR_EA_LIST_INCONSISTENT,             /* 80000015 (STATUS_INVALID_EA_FLAG) */\r
188    ERROR_MEDIA_CHANGED,                    /* 80000016 (STATUS_VERIFY_REQUIRED) */\r
189    0,                                      /* 80000017 (STATUS_EXTRANEOUS_INFORMATION) */\r
190    0,                                      /* 80000018 (STATUS_RXACT_COMMIT_NECESSARY) */\r
191    0,                                      /* 80000019 */\r
192    ERROR_NO_MORE_ITEMS,                    /* 8000001a (STATUS_NO_MORE_ENTRIES) */\r
193    ERROR_FILEMARK_DETECTED,                /* 8000001b (STATUS_FILEMARK_DETECTED) */\r
194    ERROR_MEDIA_CHANGED,                    /* 8000001c (STATUS_MEDIA_CHANGED) */\r
195    ERROR_BUS_RESET,                        /* 8000001d (STATUS_BUS_RESET) */\r
196    ERROR_END_OF_MEDIA,                     /* 8000001e (STATUS_END_OF_MEDIA) */\r
197    ERROR_BEGINNING_OF_MEDIA,               /* 8000001f (STATUS_BEGINNING_OF_MEDIA) */\r
198    0,                                      /* 80000020 (STATUS_MEDIA_CHECK) */\r
199    ERROR_SETMARK_DETECTED,                 /* 80000021 (STATUS_SETMARK_DETECTED) */\r
200    ERROR_NO_DATA_DETECTED,                 /* 80000022 (STATUS_NO_DATA_DETECTED) */\r
201    0,                                      /* 80000023 (STATUS_REDIRECTOR_HAS_OPEN_HANDLES) */\r
202    0,                                      /* 80000024 (STATUS_SERVER_HAS_OPEN_HANDLES) */\r
203    ERROR_ACTIVE_CONNECTIONS,               /* 80000025 (STATUS_ALREADY_DISCONNECTED) */\r
204    0,                                      /* 80000026 (STATUS_LONGJUMP) */\r
205    ERROR_CLEANER_CARTRIDGE_INSTALLED       /* 80000027 (STATUS_CLEANER_CARTRIDGE_INSTALLED) */\r
206 };\r
207 \r
208 static const DWORD table_80000288[2] =\r
209 {\r
210    ERROR_DEVICE_REQUIRES_CLEANING,         /* 80000288 (STATUS_DEVICE_REQUIRES_CLEANING) */\r
211    ERROR_DEVICE_DOOR_OPEN                  /* 80000289 (STATUS_DEVICE_DOOR_OPEN) */\r
212 };\r
213 \r
214 static const DWORD table_80090300[72] =\r
215 {\r
216    ERROR_NO_SYSTEM_RESOURCES,              /* 80090300 (SEC_E_INSUFFICIENT_MEMORY) */\r
217    ERROR_INVALID_HANDLE,                   /* 80090301 (SEC_E_INVALID_HANDLE) */\r
218    ERROR_INVALID_FUNCTION,                 /* 80090302 (SEC_E_UNSUPPORTED_FUNCTION) */\r
219    ERROR_BAD_NETPATH,                      /* 80090303 (SEC_E_TARGET_UNKNOWN) */\r
220    ERROR_INTERNAL_ERROR,                   /* 80090304 (SEC_E_INTERNAL_ERROR) */\r
221    ERROR_NO_SUCH_PACKAGE,                  /* 80090305 (SEC_E_SECPKG_NOT_FOUND) */\r
222    ERROR_NOT_OWNER,                        /* 80090306 (SEC_E_NOT_OWNER) */\r
223    ERROR_NO_SUCH_PACKAGE,                  /* 80090307 (SEC_E_CANNOT_INSTALL) */\r
224    ERROR_INVALID_PARAMETER,                /* 80090308 (SEC_E_INVALID_TOKEN) */\r
225    ERROR_INVALID_PARAMETER,                /* 80090309 (SEC_E_CANNOT_PACK) */\r
226    ERROR_NOT_SUPPORTED,                    /* 8009030a (SEC_E_QOP_NOT_SUPPORTED) */\r
227    ERROR_CANNOT_IMPERSONATE,               /* 8009030b (SEC_E_NO_IMPERSONATION) */\r
228    ERROR_LOGON_FAILURE,                    /* 8009030c (SEC_E_LOGON_DENIED) */\r
229    ERROR_INVALID_PARAMETER,                /* 8009030d (SEC_E_UNKNOWN_CREDENTIALS) */\r
230    ERROR_NO_SUCH_LOGON_SESSION,            /* 8009030e (SEC_E_NO_CREDENTIALS) */\r
231    ERROR_ACCESS_DENIED,                    /* 8009030f (SEC_E_MESSAGE_ALTERED) */\r
232    ERROR_ACCESS_DENIED,                    /* 80090310 (SEC_E_OUT_OF_SEQUENCE) */\r
233    ERROR_NO_LOGON_SERVERS,                 /* 80090311 (SEC_E_NO_AUTHENTICATING_AUTHORITY) */\r
234    0,                                      /* 80090312 */\r
235    0,                                      /* 80090313 */\r
236    0,                                      /* 80090314 */\r
237    0,                                      /* 80090315 */\r
238    ERROR_NO_SUCH_PACKAGE,                  /* 80090316 (SEC_E_BAD_PKGID) */\r
239    ERROR_CONTEXT_EXPIRED,                  /* 80090317 (SEC_E_CONTEXT_EXPIRED) */\r
240    ERROR_INVALID_USER_BUFFER,              /* 80090318 (SEC_E_INCOMPLETE_MESSAGE) */\r
241    0,                                      /* 80090319 */\r
242    0,                                      /* 8009031a */\r
243    0,                                      /* 8009031b */\r
244    0,                                      /* 8009031c */\r
245    0,                                      /* 8009031d */\r
246    0,                                      /* 8009031e */\r
247    0,                                      /* 8009031f */\r
248    ERROR_INVALID_PARAMETER,                /* 80090320 (SEC_E_INCOMPLETE_CREDENTIALS) */\r
249    ERROR_INSUFFICIENT_BUFFER,              /* 80090321 (SEC_E_BUFFER_TOO_SMALL) */\r
250    ERROR_WRONG_TARGET_NAME,                /* 80090322 (SEC_E_WRONG_PRINCIPAL) */\r
251    0,                                      /* 80090323 */\r
252    0,                                      /* 80090324 (SEC_E_TIME_SKEW) */\r
253    ERROR_TRUST_FAILURE,                    /* 80090325 (SEC_E_UNTRUSTED_ROOT) */\r
254    ERROR_INVALID_PARAMETER,                /* 80090326 (SEC_E_ILLEGAL_MESSAGE) */\r
255    ERROR_INVALID_PARAMETER,                /* 80090327 (SEC_E_CERT_UNKNOWN) */\r
256    ERROR_PASSWORD_EXPIRED,                 /* 80090328 (SEC_E_CERT_EXPIRED) */\r
257    ERROR_ENCRYPTION_FAILED,                /* 80090329 (SEC_E_ENCRYPT_FAILURE) */\r
258    0,                                      /* 8009032a */\r
259    0,                                      /* 8009032b */\r
260    0,                                      /* 8009032c */\r
261    0,                                      /* 8009032d */\r
262    0,                                      /* 8009032e */\r
263    0,                                      /* 8009032f */\r
264    ERROR_DECRYPTION_FAILED,                /* 80090330 (SEC_E_DECRYPT_FAILURE) */\r
265    ERROR_INVALID_FUNCTION,                 /* 80090331 (SEC_E_ALGORITHM_MISMATCH) */\r
266    0,                                      /* 80090332 (SEC_E_SECURITY_QOS_FAILED) */\r
267    0,                                      /* 80090333 (SEC_E_UNFINISHED_CONTEXT_DELETED) */\r
268    0,                                      /* 80090334 (SEC_E_NO_TGT_REPLY) */\r
269    0,                                      /* 80090335 (SEC_E_NO_IP_ADDRESSES) */\r
270    0,                                      /* 80090336 (SEC_E_WRONG_CREDENTIAL_HANDLE) */\r
271    0,                                      /* 80090337 (SEC_E_CRYPTO_SYSTEM_INVALID) */\r
272    0,                                      /* 80090338 (SEC_E_MAX_REFERRALS_EXCEEDED) */\r
273    0,                                      /* 80090339 (SEC_E_MUST_BE_KDC) */\r
274    0,                                      /* 8009033a (SEC_E_STRONG_CRYPTO_NOT_SUPPORTED) */\r
275    0,                                      /* 8009033b (SEC_E_TOO_MANY_PRINCIPALS) */\r
276    0,                                      /* 8009033c (SEC_E_NO_PA_DATA) */\r
277    0,                                      /* 8009033d (SEC_E_PKINIT_NAME_MISMATCH) */\r
278    0,                                      /* 8009033e (SEC_E_SMARTCARD_LOGON_REQUIRED) */\r
279    0,                                      /* 8009033f (SEC_E_SHUTDOWN_IN_PROGRESS) */\r
280    0,                                      /* 80090340 (SEC_E_KDC_INVALID_REQUEST) */\r
281    0,                                      /* 80090341 (SEC_E_KDC_UNABLE_TO_REFER) */\r
282    0,                                      /* 80090342 (SEC_E_KDC_UNKNOWN_ETYPE) */\r
283    0,                                      /* 80090343 (SEC_E_UNSUPPORTED_PREAUTH) */\r
284    0,                                      /* 80090344 */\r
285    0,                                      /* 80090345 (SEC_E_DELEGATION_REQUIRED) */\r
286    0,                                      /* 80090346 (SEC_E_BAD_BINDINGS) */\r
287    ERROR_CANNOT_IMPERSONATE                /* 80090347 (SEC_E_MULTIPLE_ACCOUNTS) */\r
288 };\r
289 \r
290 static const DWORD table_80092010[4] =\r
291 {\r
292     ERROR_MUTUAL_AUTH_FAILED,              /* 80092010 (CRYPT_E_REVOKED) */\r
293     0,                                     /* 80092011 (CRYPT_E_NO_REVOCATION_DLL) */\r
294     ERROR_MUTUAL_AUTH_FAILED,              /* 80092012 (CRYPT_E_NO_REVOCATION_CHECK) */\r
295     ERROR_MUTUAL_AUTH_FAILED               /* 80092013 (CRYPT_E_REVOCATION_OFFLINE) */\r
296 };\r
297 \r
298 static const DWORD table_80096004[1] =\r
299 {\r
300    ERROR_MUTUAL_AUTH_FAILED                /* 80096004 (TRUST_E_CERT_SIGNATURE) */\r
301 };\r
302 \r
303 static const DWORD table_80130001[5] =\r
304 {\r
305     ERROR_CLUSTER_NODE_ALREADY_UP,         /* 80130001 (STATUS_CLUSTER_NODE_ALREADY_UP) */\r
306     ERROR_CLUSTER_NODE_ALREADY_DOWN,       /* 80130002 (STATUS_CLUSTER_NODE_ALREADY_DOWN) */\r
307     ERROR_CLUSTER_NETWORK_ALREADY_ONLINE,  /* 80130003 (STATUS_CLUSTER_NETWORK_ALREADY_ONLINE) */\r
308     ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE, /* 80130004 (STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE) */\r
309     ERROR_CLUSTER_NODE_ALREADY_MEMBER      /* 80130005 (STATUS_CLUSTER_NODE_ALREADY_MEMBER) */\r
310 };\r
311 \r
312 static const DWORD table_c0000001[411] =\r
313 {\r
314    ERROR_GEN_FAILURE,                      /* c0000001 (STATUS_UNSUCCESSFUL) */\r
315    ERROR_INVALID_FUNCTION,                 /* c0000002 (STATUS_NOT_IMPLEMENTED) */\r
316    ERROR_INVALID_PARAMETER,                /* c0000003 (STATUS_INVALID_INFO_CLASS) */\r
317    ERROR_BAD_LENGTH,                       /* c0000004 (STATUS_INFO_LENGTH_MISMATCH) */\r
318    ERROR_NOACCESS,                         /* c0000005 (STATUS_ACCESS_VIOLATION) */\r
319    ERROR_SWAPERROR,                        /* c0000006 (STATUS_IN_PAGE_ERROR) */\r
320    ERROR_PAGEFILE_QUOTA,                   /* c0000007 (STATUS_PAGEFILE_QUOTA) */\r
321    ERROR_INVALID_HANDLE,                   /* c0000008 (STATUS_INVALID_HANDLE) */\r
322    ERROR_STACK_OVERFLOW,                   /* c0000009 (STATUS_BAD_INITIAL_STACK) */\r
323    ERROR_BAD_EXE_FORMAT,                   /* c000000a (STATUS_BAD_INITIAL_PC) */\r
324    ERROR_INVALID_PARAMETER,                /* c000000b (STATUS_INVALID_CID) */\r
325    0,                                      /* c000000c (STATUS_TIMER_NOT_CANCELED) */\r
326    ERROR_INVALID_PARAMETER,                /* c000000d (STATUS_INVALID_PARAMETER) */\r
327    ERROR_FILE_NOT_FOUND,                   /* c000000e (STATUS_NO_SUCH_DEVICE) */\r
328    ERROR_FILE_NOT_FOUND,                   /* c000000f (STATUS_NO_SUCH_FILE) */\r
329    ERROR_INVALID_FUNCTION,                 /* c0000010 (STATUS_INVALID_DEVICE_REQUEST) */\r
330    ERROR_HANDLE_EOF,                       /* c0000011 (STATUS_END_OF_FILE) */\r
331    ERROR_WRONG_DISK,                       /* c0000012 (STATUS_WRONG_VOLUME) */\r
332    ERROR_NOT_READY,                        /* c0000013 (STATUS_NO_MEDIA_IN_DEVICE) */\r
333    ERROR_UNRECOGNIZED_MEDIA,               /* c0000014 (STATUS_UNRECOGNIZED_MEDIA) */\r
334    ERROR_SECTOR_NOT_FOUND,                 /* c0000015 (STATUS_NONEXISTENT_SECTOR) */\r
335    ERROR_MORE_DATA,                        /* c0000016 (STATUS_MORE_PROCESSING_REQUIRED) */\r
336    ERROR_NOT_ENOUGH_MEMORY,                /* c0000017 (STATUS_NO_MEMORY) */\r
337    ERROR_INVALID_ADDRESS,                  /* c0000018 (STATUS_CONFLICTING_ADDRESSES) */\r
338    ERROR_INVALID_ADDRESS,                  /* c0000019 (STATUS_NOT_MAPPED_VIEW) */\r
339    ERROR_INVALID_PARAMETER,                /* c000001a (STATUS_UNABLE_TO_FREE_VM) */\r
340    ERROR_INVALID_PARAMETER,                /* c000001b (STATUS_UNABLE_TO_DELETE_SECTION) */\r
341    ERROR_INVALID_FUNCTION,                 /* c000001c (STATUS_INVALID_SYSTEM_SERVICE) */\r
342    ERROR_INVALID_FUNCTION,                 /* c000001d (STATUS_ILLEGAL_INSTRUCTION) */\r
343    ERROR_ACCESS_DENIED,                    /* c000001e (STATUS_INVALID_LOCK_SEQUENCE) */\r
344    ERROR_ACCESS_DENIED,                    /* c000001f (STATUS_INVALID_VIEW_SIZE) */\r
345    ERROR_BAD_EXE_FORMAT,                   /* c0000020 (STATUS_INVALID_FILE_FOR_SECTION) */\r
346    ERROR_ACCESS_DENIED,                    /* c0000021 (STATUS_ALREADY_COMMITTED) */\r
347    ERROR_ACCESS_DENIED,                    /* c0000022 (STATUS_ACCESS_DENIED) */\r
348    ERROR_INSUFFICIENT_BUFFER,              /* c0000023 (STATUS_BUFFER_TOO_SMALL) */\r
349    ERROR_INVALID_HANDLE,                   /* c0000024 (STATUS_OBJECT_TYPE_MISMATCH) */\r
350    STATUS_NONCONTINUABLE_EXCEPTION,        /* c0000025 (STATUS_NONCONTINUABLE_EXCEPTION) */\r
351    STATUS_INVALID_DISPOSITION,             /* c0000026 (STATUS_INVALID_DISPOSITION) */\r
352    0,                                      /* c0000027 (STATUS_UNWIND) */\r
353    0,                                      /* c0000028 (STATUS_BAD_STACK) */\r
354    0,                                      /* c0000029 (STATUS_INVALID_UNWIND_TARGET) */\r
355    ERROR_NOT_LOCKED,                       /* c000002a (STATUS_NOT_LOCKED) */\r
356    STATUS_PARITY_ERROR,                    /* c000002b (STATUS_PARITY_ERROR) */\r
357    ERROR_INVALID_ADDRESS,                  /* c000002c (STATUS_UNABLE_TO_DECOMMIT_VM) */\r
358    ERROR_INVALID_ADDRESS,                  /* c000002d (STATUS_NOT_COMMITTED) */\r
359    0,                                      /* c000002e (STATUS_INVALID_PORT_ATTRIBUTES) */\r
360    0,                                      /* c000002f (STATUS_PORT_MESSAGE_TOO_LONG) */\r
361    ERROR_INVALID_PARAMETER,                /* c0000030 (STATUS_INVALID_PARAMETER_MIX) */\r
362    0,                                      /* c0000031 (STATUS_INVALID_QUOTA_LOWER) */\r
363    ERROR_DISK_CORRUPT,                     /* c0000032 (STATUS_DISK_CORRUPT_ERROR) */\r
364    ERROR_INVALID_NAME,                     /* c0000033 (STATUS_OBJECT_NAME_INVALID) */\r
365    ERROR_FILE_NOT_FOUND,                   /* c0000034 (STATUS_OBJECT_NAME_NOT_FOUND) */\r
366    ERROR_ALREADY_EXISTS,                   /* c0000035 (STATUS_OBJECT_NAME_COLLISION) */\r
367    0,                                      /* c0000036 */\r
368    ERROR_INVALID_HANDLE,                   /* c0000037 (STATUS_PORT_DISCONNECTED) */\r
369    0,                                      /* c0000038 (STATUS_DEVICE_ALREADY_ATTACHED) */\r
370    ERROR_BAD_PATHNAME,                     /* c0000039 (STATUS_OBJECT_PATH_INVALID) */\r
371    ERROR_PATH_NOT_FOUND,                   /* c000003a (STATUS_OBJECT_PATH_NOT_FOUND) */\r
372    ERROR_BAD_PATHNAME,                     /* c000003b (STATUS_OBJECT_PATH_SYNTAX_BAD) */\r
373    ERROR_IO_DEVICE,                        /* c000003c (STATUS_DATA_OVERRUN) */\r
374    ERROR_IO_DEVICE,                        /* c000003d (STATUS_DATA_LATE_ERROR) */\r
375    ERROR_CRC,                              /* c000003e (STATUS_DATA_ERROR) */\r
376    ERROR_CRC,                              /* c000003f (STATUS_CRC_ERROR) */\r
377    ERROR_NOT_ENOUGH_MEMORY,                /* c0000040 (STATUS_SECTION_TOO_BIG) */\r
378    ERROR_ACCESS_DENIED,                    /* c0000041 (STATUS_PORT_CONNECTION_REFUSED) */\r
379    ERROR_INVALID_HANDLE,                   /* c0000042 (STATUS_INVALID_PORT_HANDLE) */\r
380    ERROR_SHARING_VIOLATION,                /* c0000043 (STATUS_SHARING_VIOLATION) */\r
381    ERROR_NOT_ENOUGH_QUOTA,                 /* c0000044 (STATUS_QUOTA_EXCEEDED) */\r
382    ERROR_INVALID_PARAMETER,                /* c0000045 (STATUS_INVALID_PAGE_PROTECTION) */\r
383    ERROR_NOT_OWNER,                        /* c0000046 (STATUS_MUTANT_NOT_OWNED) */\r
384    ERROR_TOO_MANY_POSTS,                   /* c0000047 (STATUS_SEMAPHORE_LIMIT_EXCEEDED) */\r
385    ERROR_INVALID_PARAMETER,                /* c0000048 (STATUS_PORT_ALREADY_SET) */\r
386    ERROR_INVALID_PARAMETER,                /* c0000049 (STATUS_SECTION_NOT_IMAGE) */\r
387    ERROR_SIGNAL_REFUSED,                   /* c000004a (STATUS_SUSPEND_COUNT_EXCEEDED) */\r
388    ERROR_ACCESS_DENIED,                    /* c000004b (STATUS_THREAD_IS_TERMINATING) */\r
389    ERROR_INVALID_PARAMETER,                /* c000004c (STATUS_BAD_WORKING_SET_LIMIT) */\r
390    ERROR_INVALID_PARAMETER,                /* c000004d (STATUS_INCOMPATIBLE_FILE_MAP) */\r
391    ERROR_INVALID_PARAMETER,                /* c000004e (STATUS_SECTION_PROTECTION) */\r
392    ERROR_EAS_NOT_SUPPORTED,                /* c000004f (STATUS_EAS_NOT_SUPPORTED) */\r
393    ERROR_EA_LIST_INCONSISTENT,             /* c0000050 (STATUS_EA_TOO_LARGE) */\r
394    ERROR_FILE_CORRUPT,                     /* c0000051 (STATUS_NONEXISTENT_EA_ENTRY) */\r
395    ERROR_FILE_CORRUPT,                     /* c0000052 (STATUS_NO_EAS_ON_FILE) */\r
396    ERROR_FILE_CORRUPT,                     /* c0000053 (STATUS_EA_CORRUPT_ERROR) */\r
397    ERROR_LOCK_VIOLATION,                   /* c0000054 (STATUS_FILE_LOCK_CONFLICT) */\r
398    ERROR_LOCK_VIOLATION,                   /* c0000055 (STATUS_LOCK_NOT_GRANTED) */\r
399    ERROR_ACCESS_DENIED,                    /* c0000056 (STATUS_DELETE_PENDING) */\r
400    ERROR_NOT_SUPPORTED,                    /* c0000057 (STATUS_CTL_FILE_NOT_SUPPORTED) */\r
401    ERROR_UNKNOWN_REVISION,                 /* c0000058 (STATUS_UNKNOWN_REVISION) */\r
402    ERROR_REVISION_MISMATCH,                /* c0000059 (STATUS_REVISION_MISMATCH) */\r
403    ERROR_INVALID_OWNER,                    /* c000005a (STATUS_INVALID_OWNER) */\r
404    ERROR_INVALID_PRIMARY_GROUP,            /* c000005b (STATUS_INVALID_PRIMARY_GROUP) */\r
405    ERROR_NO_IMPERSONATION_TOKEN,           /* c000005c (STATUS_NO_IMPERSONATION_TOKEN) */\r
406    ERROR_CANT_DISABLE_MANDATORY,           /* c000005d (STATUS_CANT_DISABLE_MANDATORY) */\r
407    ERROR_NO_LOGON_SERVERS,                 /* c000005e (STATUS_NO_LOGON_SERVERS) */\r
408    ERROR_NO_SUCH_LOGON_SESSION,            /* c000005f (STATUS_NO_SUCH_LOGON_SESSION) */\r
409    ERROR_NO_SUCH_PRIVILEGE,                /* c0000060 (STATUS_NO_SUCH_PRIVILEGE) */\r
410    ERROR_PRIVILEGE_NOT_HELD,               /* c0000061 (STATUS_PRIVILEGE_NOT_HELD) */\r
411    ERROR_INVALID_ACCOUNT_NAME,             /* c0000062 (STATUS_INVALID_ACCOUNT_NAME) */\r
412    ERROR_USER_EXISTS,                      /* c0000063 (STATUS_USER_EXISTS) */\r
413    ERROR_NO_SUCH_USER,                     /* c0000064 (STATUS_NO_SUCH_USER) */\r
414    ERROR_GROUP_EXISTS,                     /* c0000065 (STATUS_GROUP_EXISTS) */\r
415    ERROR_NO_SUCH_GROUP,                    /* c0000066 (STATUS_NO_SUCH_GROUP) */\r
416    ERROR_MEMBER_IN_GROUP,                  /* c0000067 (STATUS_MEMBER_IN_GROUP) */\r
417    ERROR_MEMBER_NOT_IN_GROUP,              /* c0000068 (STATUS_MEMBER_NOT_IN_GROUP) */\r
418    ERROR_LAST_ADMIN,                       /* c0000069 (STATUS_LAST_ADMIN) */\r
419    ERROR_INVALID_PASSWORD,                 /* c000006a (STATUS_WRONG_PASSWORD) */\r
420    ERROR_ILL_FORMED_PASSWORD,              /* c000006b (STATUS_ILL_FORMED_PASSWORD) */\r
421    ERROR_PASSWORD_RESTRICTION,             /* c000006c (STATUS_PASSWORD_RESTRICTION) */\r
422    ERROR_LOGON_FAILURE,                    /* c000006d (STATUS_LOGON_FAILURE) */\r
423    ERROR_ACCOUNT_RESTRICTION,              /* c000006e (STATUS_ACCOUNT_RESTRICTION) */\r
424    ERROR_INVALID_LOGON_HOURS,              /* c000006f (STATUS_INVALID_LOGON_HOURS) */\r
425    ERROR_INVALID_WORKSTATION,              /* c0000070 (STATUS_INVALID_WORKSTATION) */\r
426    ERROR_PASSWORD_EXPIRED,                 /* c0000071 (STATUS_PASSWORD_EXPIRED) */\r
427    ERROR_ACCOUNT_DISABLED,                 /* c0000072 (STATUS_ACCOUNT_DISABLED) */\r
428    ERROR_NONE_MAPPED,                      /* c0000073 (STATUS_NONE_MAPPED) */\r
429    ERROR_TOO_MANY_LUIDS_REQUESTED,         /* c0000074 (STATUS_TOO_MANY_LUIDS_REQUESTED) */\r
430    ERROR_LUIDS_EXHAUSTED,                  /* c0000075 (STATUS_LUIDS_EXHAUSTED) */\r
431    ERROR_INVALID_SUB_AUTHORITY,            /* c0000076 (STATUS_INVALID_SUB_AUTHORITY) */\r
432    ERROR_INVALID_ACL,                      /* c0000077 (STATUS_INVALID_ACL) */\r
433    ERROR_INVALID_SID,                      /* c0000078 (STATUS_INVALID_SID) */\r
434    ERROR_INVALID_SECURITY_DESCR,           /* c0000079 (STATUS_INVALID_SECURITY_DESCR) */\r
435    ERROR_PROC_NOT_FOUND,                   /* c000007a (STATUS_PROCEDURE_NOT_FOUND) */\r
436    ERROR_BAD_EXE_FORMAT,                   /* c000007b (STATUS_INVALID_IMAGE_FORMAT) */\r
437    ERROR_NO_TOKEN,                         /* c000007c (STATUS_NO_TOKEN) */\r
438    ERROR_BAD_INHERITANCE_ACL,              /* c000007d (STATUS_BAD_INHERITANCE_ACL) */\r
439    ERROR_NOT_LOCKED,                       /* c000007e (STATUS_RANGE_NOT_LOCKED) */\r
440    ERROR_DISK_FULL,                        /* c000007f (STATUS_DISK_FULL) */\r
441    ERROR_SERVER_DISABLED,                  /* c0000080 (STATUS_SERVER_DISABLED) */\r
442    ERROR_SERVER_NOT_DISABLED,              /* c0000081 (STATUS_SERVER_NOT_DISABLED) */\r
443    ERROR_TOO_MANY_NAMES,                   /* c0000082 (STATUS_TOO_MANY_GUIDS_REQUESTED) */\r
444    ERROR_NO_MORE_ITEMS,                    /* c0000083 (STATUS_GUIDS_EXHAUSTED) */\r
445    ERROR_INVALID_ID_AUTHORITY,             /* c0000084 (STATUS_INVALID_ID_AUTHORITY) */\r
446    ERROR_NO_MORE_ITEMS,                    /* c0000085 (STATUS_AGENTS_EXHAUSTED) */\r
447    ERROR_LABEL_TOO_LONG,                   /* c0000086 (STATUS_INVALID_VOLUME_LABEL) */\r
448    ERROR_OUTOFMEMORY,                      /* c0000087 (STATUS_SECTION_NOT_EXTENDED) */\r
449    ERROR_INVALID_ADDRESS,                  /* c0000088 (STATUS_NOT_MAPPED_DATA) */\r
450    ERROR_RESOURCE_DATA_NOT_FOUND,          /* c0000089 (STATUS_RESOURCE_DATA_NOT_FOUND) */\r
451    ERROR_RESOURCE_TYPE_NOT_FOUND,          /* c000008a (STATUS_RESOURCE_TYPE_NOT_FOUND) */\r
452    ERROR_RESOURCE_NAME_NOT_FOUND,          /* c000008b (STATUS_RESOURCE_NAME_NOT_FOUND) */\r
453    STATUS_ARRAY_BOUNDS_EXCEEDED,           /* c000008c (STATUS_ARRAY_BOUNDS_EXCEEDED) */\r
454    STATUS_FLOAT_DENORMAL_OPERAND,          /* c000008d (STATUS_FLOAT_DENORMAL_OPERAND) */\r
455    STATUS_FLOAT_DIVIDE_BY_ZERO,            /* c000008e (STATUS_FLOAT_DIVIDE_BY_ZERO) */\r
456    STATUS_FLOAT_INEXACT_RESULT,            /* c000008f (STATUS_FLOAT_INEXACT_RESULT) */\r
457    STATUS_FLOAT_INVALID_OPERATION,         /* c0000090 (STATUS_FLOAT_INVALID_OPERATION) */\r
458    STATUS_FLOAT_OVERFLOW,                  /* c0000091 (STATUS_FLOAT_OVERFLOW) */\r
459    STATUS_FLOAT_STACK_CHECK,               /* c0000092 (STATUS_FLOAT_STACK_CHECK) */\r
460    STATUS_FLOAT_UNDERFLOW,                 /* c0000093 (STATUS_FLOAT_UNDERFLOW) */\r
461    STATUS_INTEGER_DIVIDE_BY_ZERO,          /* c0000094 (STATUS_INTEGER_DIVIDE_BY_ZERO) */\r
462    ERROR_ARITHMETIC_OVERFLOW,              /* c0000095 (STATUS_INTEGER_OVERFLOW) */\r
463    STATUS_PRIVILEGED_INSTRUCTION,          /* c0000096 (STATUS_PRIVILEGED_INSTRUCTION) */\r
464    ERROR_NOT_ENOUGH_MEMORY,                /* c0000097 (STATUS_TOO_MANY_PAGING_FILES) */\r
465    ERROR_FILE_INVALID,                     /* c0000098 (STATUS_FILE_INVALID) */\r
466    ERROR_ALLOTTED_SPACE_EXCEEDED,          /* c0000099 (STATUS_ALLOTTED_SPACE_EXCEEDED) */\r
467    ERROR_NO_SYSTEM_RESOURCES,              /* c000009a (STATUS_INSUFFICIENT_RESOURCES) */\r
468    ERROR_PATH_NOT_FOUND,                   /* c000009b (STATUS_DFS_EXIT_PATH_FOUND) */\r
469    ERROR_CRC,                              /* c000009c (STATUS_DEVICE_DATA_ERROR) */\r
470    ERROR_DEVICE_NOT_CONNECTED,             /* c000009d (STATUS_DEVICE_NOT_CONNECTED) */\r
471    ERROR_NOT_READY,                        /* c000009e (STATUS_DEVICE_POWER_FAILURE) */\r
472    ERROR_INVALID_ADDRESS,                  /* c000009f (STATUS_FREE_VM_NOT_AT_BASE) */\r
473    ERROR_INVALID_ADDRESS,                  /* c00000a0 (STATUS_MEMORY_NOT_ALLOCATED) */\r
474    ERROR_WORKING_SET_QUOTA,                /* c00000a1 (STATUS_WORKING_SET_QUOTA) */\r
475    ERROR_WRITE_PROTECT,                    /* c00000a2 (STATUS_MEDIA_WRITE_PROTECTED) */\r
476    ERROR_NOT_READY,                        /* c00000a3 (STATUS_DEVICE_NOT_READY) */\r
477    ERROR_INVALID_GROUP_ATTRIBUTES,         /* c00000a4 (STATUS_INVALID_GROUP_ATTRIBUTES) */\r
478    ERROR_BAD_IMPERSONATION_LEVEL,          /* c00000a5 (STATUS_BAD_IMPERSONATION_LEVEL) */\r
479    ERROR_CANT_OPEN_ANONYMOUS,              /* c00000a6 (STATUS_CANT_OPEN_ANONYMOUS) */\r
480    ERROR_BAD_VALIDATION_CLASS,             /* c00000a7 (STATUS_BAD_VALIDATION_CLASS) */\r
481    ERROR_BAD_TOKEN_TYPE,                   /* c00000a8 (STATUS_BAD_TOKEN_TYPE) */\r
482    ERROR_INVALID_PARAMETER,                /* c00000a9 (STATUS_BAD_MASTER_BOOT_RECORD) */\r
483    0,                                      /* c00000aa (STATUS_INSTRUCTION_MISALIGNMENT) */\r
484    ERROR_PIPE_BUSY,                        /* c00000ab (STATUS_INSTANCE_NOT_AVAILABLE) */\r
485    ERROR_PIPE_BUSY,                        /* c00000ac (STATUS_PIPE_NOT_AVAILABLE) */\r
486    ERROR_BAD_PIPE,                         /* c00000ad (STATUS_INVALID_PIPE_STATE) */\r
487    ERROR_PIPE_BUSY,                        /* c00000ae (STATUS_PIPE_BUSY) */\r
488    ERROR_INVALID_FUNCTION,                 /* c00000af (STATUS_ILLEGAL_FUNCTION) */\r
489    ERROR_PIPE_NOT_CONNECTED,               /* c00000b0 (STATUS_PIPE_DISCONNECTED) */\r
490    ERROR_NO_DATA,                          /* c00000b1 (STATUS_PIPE_CLOSING) */\r
491    ERROR_PIPE_CONNECTED,                   /* c00000b2 (STATUS_PIPE_CONNECTED) */\r
492    ERROR_PIPE_LISTENING,                   /* c00000b3 (STATUS_PIPE_LISTENING) */\r
493    ERROR_BAD_PIPE,                         /* c00000b4 (STATUS_INVALID_READ_MODE) */\r
494    ERROR_SEM_TIMEOUT,                      /* c00000b5 (STATUS_IO_TIMEOUT) */\r
495    ERROR_HANDLE_EOF,                       /* c00000b6 (STATUS_FILE_FORCED_CLOSED) */\r
496    0,                                      /* c00000b7 (STATUS_PROFILING_NOT_STARTED) */\r
497    0,                                      /* c00000b8 (STATUS_PROFILING_NOT_STOPPED) */\r
498    0,                                      /* c00000b9 (STATUS_COULD_NOT_INTERPRET) */\r
499    ERROR_ACCESS_DENIED,                    /* c00000ba (STATUS_FILE_IS_A_DIRECTORY) */\r
500    ERROR_NOT_SUPPORTED,                    /* c00000bb (STATUS_NOT_SUPPORTED) */\r
501    ERROR_REM_NOT_LIST,                     /* c00000bc (STATUS_REMOTE_NOT_LISTENING) */\r
502    ERROR_DUP_NAME,                         /* c00000bd (STATUS_DUPLICATE_NAME) */\r
503    ERROR_BAD_NETPATH,                      /* c00000be (STATUS_BAD_NETWORK_PATH) */\r
504    ERROR_NETWORK_BUSY,                     /* c00000bf (STATUS_NETWORK_BUSY) */\r
505    ERROR_DEV_NOT_EXIST,                    /* c00000c0 (STATUS_DEVICE_DOES_NOT_EXIST) */\r
506    ERROR_TOO_MANY_CMDS,                    /* c00000c1 (STATUS_TOO_MANY_COMMANDS) */\r
507    ERROR_ADAP_HDW_ERR,                     /* c00000c2 (STATUS_ADAPTER_HARDWARE_ERROR) */\r
508    ERROR_BAD_NET_RESP,                     /* c00000c3 (STATUS_INVALID_NETWORK_RESPONSE) */\r
509    ERROR_UNEXP_NET_ERR,                    /* c00000c4 (STATUS_UNEXPECTED_NETWORK_ERROR) */\r
510    ERROR_BAD_REM_ADAP,                     /* c00000c5 (STATUS_BAD_REMOTE_ADAPTER) */\r
511    ERROR_PRINTQ_FULL,                      /* c00000c6 (STATUS_PRINT_QUEUE_FULL) */\r
512    ERROR_NO_SPOOL_SPACE,                   /* c00000c7 (STATUS_NO_SPOOL_SPACE) */\r
513    ERROR_PRINT_CANCELLED,                  /* c00000c8 (STATUS_PRINT_CANCELLED) */\r
514    ERROR_NETNAME_DELETED,                  /* c00000c9 (STATUS_NETWORK_NAME_DELETED) */\r
515    ERROR_NETWORK_ACCESS_DENIED,            /* c00000ca (STATUS_NETWORK_ACCESS_DENIED) */\r
516    ERROR_BAD_DEV_TYPE,                     /* c00000cb (STATUS_BAD_DEVICE_TYPE) */\r
517    ERROR_BAD_NET_NAME,                     /* c00000cc (STATUS_BAD_NETWORK_NAME) */\r
518    ERROR_TOO_MANY_NAMES,                   /* c00000cd (STATUS_TOO_MANY_NAMES) */\r
519    ERROR_TOO_MANY_SESS,                    /* c00000ce (STATUS_TOO_MANY_SESSIONS) */\r
520    ERROR_SHARING_PAUSED,                   /* c00000cf (STATUS_SHARING_PAUSED) */\r
521    ERROR_REQ_NOT_ACCEP,                    /* c00000d0 (STATUS_REQUEST_NOT_ACCEPTED) */\r
522    ERROR_REDIR_PAUSED,                     /* c00000d1 (STATUS_REDIRECTOR_PAUSED) */\r
523    ERROR_NET_WRITE_FAULT,                  /* c00000d2 (STATUS_NET_WRITE_FAULT) */\r
524    0,                                      /* c00000d3 (STATUS_PROFILING_AT_LIMIT) */\r
525    ERROR_NOT_SAME_DEVICE,                  /* c00000d4 (STATUS_NOT_SAME_DEVICE) */\r
526    ERROR_ACCESS_DENIED,                    /* c00000d5 (STATUS_FILE_RENAMED) */\r
527    ERROR_VC_DISCONNECTED,                  /* c00000d6 (STATUS_VIRTUAL_CIRCUIT_CLOSED) */\r
528    ERROR_NO_SECURITY_ON_OBJECT,            /* c00000d7 (STATUS_NO_SECURITY_ON_OBJECT) */\r
529    0,                                      /* c00000d8 (STATUS_CANT_WAIT) */\r
530    ERROR_NO_DATA,                          /* c00000d9 (STATUS_PIPE_EMPTY) */\r
531    ERROR_CANT_ACCESS_DOMAIN_INFO,          /* c00000da (STATUS_CANT_ACCESS_DOMAIN_INFO) */\r
532    0,                                      /* c00000db (STATUS_CANT_TERMINATE_SELF) */\r
533    ERROR_INVALID_SERVER_STATE,             /* c00000dc (STATUS_INVALID_SERVER_STATE) */\r
534    ERROR_INVALID_DOMAIN_STATE,             /* c00000dd (STATUS_INVALID_DOMAIN_STATE) */\r
535    ERROR_INVALID_DOMAIN_ROLE,              /* c00000de (STATUS_INVALID_DOMAIN_ROLE) */\r
536    ERROR_NO_SUCH_DOMAIN,                   /* c00000df (STATUS_NO_SUCH_DOMAIN) */\r
537    ERROR_DOMAIN_EXISTS,                    /* c00000e0 (STATUS_DOMAIN_EXISTS) */\r
538    ERROR_DOMAIN_LIMIT_EXCEEDED,            /* c00000e1 (STATUS_DOMAIN_LIMIT_EXCEEDED) */\r
539    ERROR_OPLOCK_NOT_GRANTED,               /* c00000e2 (STATUS_OPLOCK_NOT_GRANTED) */\r
540    ERROR_INVALID_OPLOCK_PROTOCOL,          /* c00000e3 (STATUS_INVALID_OPLOCK_PROTOCOL) */\r
541    ERROR_INTERNAL_DB_CORRUPTION,           /* c00000e4 (STATUS_INTERNAL_DB_CORRUPTION) */\r
542    ERROR_INTERNAL_ERROR,                   /* c00000e5 (STATUS_INTERNAL_ERROR) */\r
543    ERROR_GENERIC_NOT_MAPPED,               /* c00000e6 (STATUS_GENERIC_NOT_MAPPED) */\r
544    ERROR_BAD_DESCRIPTOR_FORMAT,            /* c00000e7 (STATUS_BAD_DESCRIPTOR_FORMAT) */\r
545    ERROR_INVALID_USER_BUFFER,              /* c00000e8 (STATUS_INVALID_USER_BUFFER) */\r
546    0,                                      /* c00000e9 (STATUS_UNEXPECTED_IO_ERROR) */\r
547    0,                                      /* c00000ea (STATUS_UNEXPECTED_MM_CREATE_ERR) */\r
548    0,                                      /* c00000eb (STATUS_UNEXPECTED_MM_MAP_ERROR) */\r
549    0,                                      /* c00000ec (STATUS_UNEXPECTED_MM_EXTEND_ERR) */\r
550    ERROR_NOT_LOGON_PROCESS,                /* c00000ed (STATUS_NOT_LOGON_PROCESS) */\r
551    ERROR_LOGON_SESSION_EXISTS,             /* c00000ee (STATUS_LOGON_SESSION_EXISTS) */\r
552    ERROR_INVALID_PARAMETER,                /* c00000ef (STATUS_INVALID_PARAMETER_1) */\r
553    ERROR_INVALID_PARAMETER,                /* c00000f0 (STATUS_INVALID_PARAMETER_2) */\r
554    ERROR_INVALID_PARAMETER,                /* c00000f1 (STATUS_INVALID_PARAMETER_3) */\r
555    ERROR_INVALID_PARAMETER,                /* c00000f2 (STATUS_INVALID_PARAMETER_4) */\r
556    ERROR_INVALID_PARAMETER,                /* c00000f3 (STATUS_INVALID_PARAMETER_5) */\r
557    ERROR_INVALID_PARAMETER,                /* c00000f4 (STATUS_INVALID_PARAMETER_6) */\r
558    ERROR_INVALID_PARAMETER,                /* c00000f5 (STATUS_INVALID_PARAMETER_7) */\r
559    ERROR_INVALID_PARAMETER,                /* c00000f6 (STATUS_INVALID_PARAMETER_8) */\r
560    ERROR_INVALID_PARAMETER,                /* c00000f7 (STATUS_INVALID_PARAMETER_9) */\r
561    ERROR_INVALID_PARAMETER,                /* c00000f8 (STATUS_INVALID_PARAMETER_10) */\r
562    ERROR_INVALID_PARAMETER,                /* c00000f9 (STATUS_INVALID_PARAMETER_11) */\r
563    ERROR_INVALID_PARAMETER,                /* c00000fa (STATUS_INVALID_PARAMETER_12) */\r
564    ERROR_PATH_NOT_FOUND,                   /* c00000fb (STATUS_REDIRECTOR_NOT_STARTED) */\r
565    ERROR_SERVICE_ALREADY_RUNNING,          /* c00000fc (STATUS_REDIRECTOR_STARTED) */\r
566    ERROR_STACK_OVERFLOW,                   /* c00000fd (STATUS_STACK_OVERFLOW) */\r
567    ERROR_NO_SUCH_PACKAGE,                  /* c00000fe (STATUS_NO_SUCH_PACKAGE) */\r
568    0,                                      /* c00000ff (STATUS_BAD_FUNCTION_TABLE) */\r
569    ERROR_ENVVAR_NOT_FOUND,                 /* c0000100 (STATUS_VARIABLE_NOT_FOUND) */\r
570    ERROR_DIR_NOT_EMPTY,                    /* c0000101 (STATUS_DIRECTORY_NOT_EMPTY) */\r
571    ERROR_FILE_CORRUPT,                     /* c0000102 (STATUS_FILE_CORRUPT_ERROR) */\r
572    ERROR_DIRECTORY,                        /* c0000103 (STATUS_NOT_A_DIRECTORY) */\r
573    ERROR_BAD_LOGON_SESSION_STATE,          /* c0000104 (STATUS_BAD_LOGON_SESSION_STATE) */\r
574    ERROR_LOGON_SESSION_COLLISION,          /* c0000105 (STATUS_LOGON_SESSION_COLLISION) */\r
575    ERROR_FILENAME_EXCED_RANGE,             /* c0000106 (STATUS_NAME_TOO_LONG) */\r
576    ERROR_OPEN_FILES,                       /* c0000107 (STATUS_FILES_OPEN) */\r
577    ERROR_DEVICE_IN_USE,                    /* c0000108 (STATUS_CONNECTION_IN_USE) */\r
578    ERROR_MR_MID_NOT_FOUND,                 /* c0000109 (STATUS_MESSAGE_NOT_FOUND) */\r
579    ERROR_ACCESS_DENIED,                    /* c000010a (STATUS_PROCESS_IS_TERMINATING) */\r
580    ERROR_INVALID_LOGON_TYPE,               /* c000010b (STATUS_INVALID_LOGON_TYPE) */\r
581    0,                                      /* c000010c (STATUS_NO_GUID_TRANSLATION) */\r
582    ERROR_CANNOT_IMPERSONATE,               /* c000010d (STATUS_CANNOT_IMPERSONATE) */\r
583    ERROR_SERVICE_ALREADY_RUNNING,          /* c000010e (STATUS_IMAGE_ALREADY_LOADED) */\r
584    0,                                      /* c000010f (STATUS_ABIOS_NOT_PRESENT) */\r
585    0,                                      /* c0000110 (STATUS_ABIOS_LID_NOT_EXIST) */\r
586    0,                                      /* c0000111 (STATUS_ABIOS_LID_ALREADY_OWNED) */\r
587    0,                                      /* c0000112 (STATUS_ABIOS_NOT_LID_OWNER) */\r
588    0,                                      /* c0000113 (STATUS_ABIOS_INVALID_COMMAND) */\r
589    0,                                      /* c0000114 (STATUS_ABIOS_INVALID_LID) */\r
590    0,                                      /* c0000115 (STATUS_ABIOS_SELECTOR_NOT_AVAILABLE) */\r
591    0,                                      /* c0000116 (STATUS_ABIOS_INVALID_SELECTOR) */\r
592    ERROR_INVALID_THREAD_ID,                /* c0000117 (STATUS_NO_LDT) */\r
593    0,                                      /* c0000118 (STATUS_INVALID_LDT_SIZE) */\r
594    0,                                      /* c0000119 (STATUS_INVALID_LDT_OFFSET) */\r
595    0,                                      /* c000011a (STATUS_INVALID_LDT_DESCRIPTOR) */\r
596    ERROR_BAD_EXE_FORMAT,                   /* c000011b (STATUS_INVALID_IMAGE_NE_FORMAT) */\r
597    ERROR_RXACT_INVALID_STATE,              /* c000011c (STATUS_RXACT_INVALID_STATE) */\r
598    ERROR_RXACT_COMMIT_FAILURE,             /* c000011d (STATUS_RXACT_COMMIT_FAILURE) */\r
599    ERROR_FILE_INVALID,                     /* c000011e (STATUS_MAPPED_FILE_SIZE_ZERO) */\r
600    ERROR_TOO_MANY_OPEN_FILES,              /* c000011f (STATUS_TOO_MANY_OPENED_FILES) */\r
601    ERROR_OPERATION_ABORTED,                /* c0000120 (STATUS_CANCELLED) */\r
602    ERROR_ACCESS_DENIED,                    /* c0000121 (STATUS_CANNOT_DELETE) */\r
603    ERROR_INVALID_COMPUTERNAME,             /* c0000122 (STATUS_INVALID_COMPUTER_NAME) */\r
604    ERROR_ACCESS_DENIED,                    /* c0000123 (STATUS_FILE_DELETED) */\r
605    ERROR_SPECIAL_ACCOUNT,                  /* c0000124 (STATUS_SPECIAL_ACCOUNT) */\r
606    ERROR_SPECIAL_GROUP,                    /* c0000125 (STATUS_SPECIAL_GROUP) */\r
607    ERROR_SPECIAL_USER,                     /* c0000126 (STATUS_SPECIAL_USER) */\r
608    ERROR_MEMBERS_PRIMARY_GROUP,            /* c0000127 (STATUS_MEMBERS_PRIMARY_GROUP) */\r
609    ERROR_INVALID_HANDLE,                   /* c0000128 (STATUS_FILE_CLOSED) */\r
610    0,                                      /* c0000129 (STATUS_TOO_MANY_THREADS) */\r
611    0,                                      /* c000012a (STATUS_THREAD_NOT_IN_PROCESS) */\r
612    ERROR_TOKEN_ALREADY_IN_USE,             /* c000012b (STATUS_TOKEN_ALREADY_IN_USE) */\r
613    0,                                      /* c000012c (STATUS_PAGEFILE_QUOTA_EXCEEDED) */\r
614    ERROR_COMMITMENT_LIMIT,                 /* c000012d (STATUS_COMMITMENT_LIMIT) */\r
615    ERROR_BAD_EXE_FORMAT,                   /* c000012e (STATUS_INVALID_IMAGE_LE_FORMAT) */\r
616    ERROR_BAD_EXE_FORMAT,                   /* c000012f (STATUS_INVALID_IMAGE_NOT_MZ) */\r
617    ERROR_BAD_EXE_FORMAT,                   /* c0000130 (STATUS_INVALID_IMAGE_PROTECT) */\r
618    ERROR_BAD_EXE_FORMAT,                   /* c0000131 (STATUS_INVALID_IMAGE_WIN_16) */\r
619    0,                                      /* c0000132 (STATUS_LOGON_SERVER_CONFLICT) */\r
620    ERROR_TIME_SKEW,                        /* c0000133 (STATUS_TIME_DIFFERENCE_AT_DC) */\r
621    0,                                      /* c0000134 (STATUS_SYNCHRONIZATION_REQUIRED) */\r
622    ERROR_MOD_NOT_FOUND,                    /* c0000135 (STATUS_DLL_NOT_FOUND) */\r
623    0,                                      /* c0000136 (STATUS_OPEN_FAILED) */\r
624    0,                                      /* c0000137 (STATUS_IO_PRIVILEGE_FAILED) */\r
625    ERROR_INVALID_ORDINAL,                  /* c0000138 (STATUS_ORDINAL_NOT_FOUND) */\r
626    ERROR_PROC_NOT_FOUND,                   /* c0000139 (STATUS_ENTRYPOINT_NOT_FOUND) */\r
627    0,                                      /* c000013a (STATUS_CONTROL_C_EXIT) */\r
628    ERROR_NETNAME_DELETED,                  /* c000013b (STATUS_LOCAL_DISCONNECT) */\r
629    ERROR_NETNAME_DELETED,                  /* c000013c (STATUS_REMOTE_DISCONNECT) */\r
630    ERROR_REM_NOT_LIST,                     /* c000013d (STATUS_REMOTE_RESOURCES) */\r
631    ERROR_UNEXP_NET_ERR,                    /* c000013e (STATUS_LINK_FAILED) */\r
632    ERROR_UNEXP_NET_ERR,                    /* c000013f (STATUS_LINK_TIMEOUT) */\r
633    ERROR_UNEXP_NET_ERR,                    /* c0000140 (STATUS_INVALID_CONNECTION) */\r
634    ERROR_UNEXP_NET_ERR,                    /* c0000141 (STATUS_INVALID_ADDRESS) */\r
635    ERROR_DLL_INIT_FAILED,                  /* c0000142 (STATUS_DLL_INIT_FAILED) */\r
636    0,                                      /* c0000143 (STATUS_MISSING_SYSTEMFILE) */\r
637    0,                                      /* c0000144 (STATUS_UNHANDLED_EXCEPTION) */\r
638    0,                                      /* c0000145 (STATUS_APP_INIT_FAILURE) */\r
639    0,                                      /* c0000146 (STATUS_PAGEFILE_CREATE_FAILED) */\r
640    0,                                      /* c0000147 (STATUS_NO_PAGEFILE) */\r
641    ERROR_INVALID_LEVEL,                    /* c0000148 (STATUS_INVALID_LEVEL) */\r
642    ERROR_INVALID_PASSWORD,                 /* c0000149 (STATUS_WRONG_PASSWORD_CORE) */\r
643    0,                                      /* c000014a (STATUS_ILLEGAL_FLOAT_CONTEXT) */\r
644    ERROR_BROKEN_PIPE,                      /* c000014b (STATUS_PIPE_BROKEN) */\r
645    ERROR_BADDB,                            /* c000014c (STATUS_REGISTRY_CORRUPT) */\r
646    ERROR_REGISTRY_IO_FAILED,               /* c000014d (STATUS_REGISTRY_IO_FAILED) */\r
647    0,                                      /* c000014e (STATUS_NO_EVENT_PAIR) */\r
648    ERROR_UNRECOGNIZED_VOLUME,              /* c000014f (STATUS_UNRECOGNIZED_VOLUME) */\r
649    ERROR_SERIAL_NO_DEVICE,                 /* c0000150 (STATUS_SERIAL_NO_DEVICE_INITED) */\r
650    ERROR_NO_SUCH_ALIAS,                    /* c0000151 (STATUS_NO_SUCH_ALIAS) */\r
651    ERROR_MEMBER_NOT_IN_ALIAS,              /* c0000152 (STATUS_MEMBER_NOT_IN_ALIAS) */\r
652    ERROR_MEMBER_IN_ALIAS,                  /* c0000153 (STATUS_MEMBER_IN_ALIAS) */\r
653    ERROR_ALIAS_EXISTS,                     /* c0000154 (STATUS_ALIAS_EXISTS) */\r
654    ERROR_LOGON_NOT_GRANTED,                /* c0000155 (STATUS_LOGON_NOT_GRANTED) */\r
655    ERROR_TOO_MANY_SECRETS,                 /* c0000156 (STATUS_TOO_MANY_SECRETS) */\r
656    ERROR_SECRET_TOO_LONG,                  /* c0000157 (STATUS_SECRET_TOO_LONG) */\r
657    ERROR_INTERNAL_DB_ERROR,                /* c0000158 (STATUS_INTERNAL_DB_ERROR) */\r
658    ERROR_FULLSCREEN_MODE,                  /* c0000159 (STATUS_FULLSCREEN_MODE) */\r
659    ERROR_TOO_MANY_CONTEXT_IDS,             /* c000015a (STATUS_TOO_MANY_CONTEXT_IDS) */\r
660    ERROR_LOGON_TYPE_NOT_GRANTED,           /* c000015b (STATUS_LOGON_TYPE_NOT_GRANTED) */\r
661    ERROR_NOT_REGISTRY_FILE,                /* c000015c (STATUS_NOT_REGISTRY_FILE) */\r
662    ERROR_NT_CROSS_ENCRYPTION_REQUIRED,     /* c000015d (STATUS_NT_CROSS_ENCRYPTION_REQUIRED) */\r
663    0,                                      /* c000015e (STATUS_DOMAIN_CTRLR_CONFIG_ERROR) */\r
664    ERROR_IO_DEVICE,                        /* c000015f (STATUS_FT_MISSING_MEMBER) */\r
665    0,                                      /* c0000160 (STATUS_ILL_FORMED_SERVICE_ENTRY) */\r
666    0,                                      /* c0000161 (STATUS_ILLEGAL_CHARACTER) */\r
667    ERROR_NO_UNICODE_TRANSLATION,           /* c0000162 (STATUS_UNMAPPABLE_CHARACTER) */\r
668    0,                                      /* c0000163 (STATUS_UNDEFINED_CHARACTER) */\r
669    0,                                      /* c0000164 (STATUS_FLOPPY_VOLUME) */\r
670    ERROR_FLOPPY_ID_MARK_NOT_FOUND,         /* c0000165 (STATUS_FLOPPY_ID_MARK_NOT_FOUND) */\r
671    ERROR_FLOPPY_WRONG_CYLINDER,            /* c0000166 (STATUS_FLOPPY_WRONG_CYLINDER) */\r
672    ERROR_FLOPPY_UNKNOWN_ERROR,             /* c0000167 (STATUS_FLOPPY_UNKNOWN_ERROR) */\r
673    ERROR_FLOPPY_BAD_REGISTERS,             /* c0000168 (STATUS_FLOPPY_BAD_REGISTERS) */\r
674    ERROR_DISK_RECALIBRATE_FAILED,          /* c0000169 (STATUS_DISK_RECALIBRATE_FAILED) */\r
675    ERROR_DISK_OPERATION_FAILED,            /* c000016a (STATUS_DISK_OPERATION_FAILED) */\r
676    ERROR_DISK_RESET_FAILED,                /* c000016b (STATUS_DISK_RESET_FAILED) */\r
677    ERROR_IRQ_BUSY,                         /* c000016c (STATUS_SHARED_IRQ_BUSY) */\r
678    ERROR_IO_DEVICE,                        /* c000016d (STATUS_FT_ORPHANING) */\r
679    0,                                      /* c000016e (STATUS_BIOS_FAILED_TO_CONNECT_INTER\r
680 RUPT) */\r
681    0,                                      /* c000016f */\r
682    0,                                      /* c0000170 */\r
683    0,                                      /* c0000171 */\r
684    ERROR_PARTITION_FAILURE,                /* c0000172 (STATUS_PARTITION_FAILURE) */\r
685    ERROR_INVALID_BLOCK_LENGTH,             /* c0000173 (STATUS_INVALID_BLOCK_LENGTH) */\r
686    ERROR_DEVICE_NOT_PARTITIONED,           /* c0000174 (STATUS_DEVICE_NOT_PARTITIONED) */\r
687    ERROR_UNABLE_TO_LOCK_MEDIA,             /* c0000175 (STATUS_UNABLE_TO_LOCK_MEDIA) */\r
688    ERROR_UNABLE_TO_UNLOAD_MEDIA,           /* c0000176 (STATUS_UNABLE_TO_UNLOAD_MEDIA) */\r
689    ERROR_EOM_OVERFLOW,                     /* c0000177 (STATUS_EOM_OVERFLOW) */\r
690    ERROR_NO_MEDIA_IN_DRIVE,                /* c0000178 (STATUS_NO_MEDIA) */\r
691    0,                                      /* c0000179 */\r
692    ERROR_NO_SUCH_MEMBER,                   /* c000017a (STATUS_NO_SUCH_MEMBER) */\r
693    ERROR_INVALID_MEMBER,                   /* c000017b (STATUS_INVALID_MEMBER) */\r
694    ERROR_KEY_DELETED,                      /* c000017c (STATUS_KEY_DELETED) */\r
695    ERROR_NO_LOG_SPACE,                     /* c000017d (STATUS_NO_LOG_SPACE) */\r
696    ERROR_TOO_MANY_SIDS,                    /* c000017e (STATUS_TOO_MANY_SIDS) */\r
697    ERROR_LM_CROSS_ENCRYPTION_REQUIRED,     /* c000017f (STATUS_LM_CROSS_ENCRYPTION_REQUIRED) */\r
698    ERROR_KEY_HAS_CHILDREN,                 /* c0000180 (STATUS_KEY_HAS_CHILDREN) */\r
699    ERROR_CHILD_MUST_BE_VOLATILE,           /* c0000181 (STATUS_CHILD_MUST_BE_VOLATILE) */\r
700    ERROR_INVALID_PARAMETER,                /* c0000182 (STATUS_DEVICE_CONFIGURATION_ERROR) */\r
701    ERROR_IO_DEVICE,                        /* c0000183 (STATUS_DRIVER_INTERNAL_ERROR) */\r
702    ERROR_BAD_COMMAND,                      /* c0000184 (STATUS_INVALID_DEVICE_STATE) */\r
703    ERROR_IO_DEVICE,                        /* c0000185 (STATUS_IO_DEVICE_ERROR) */\r
704    ERROR_IO_DEVICE,                        /* c0000186 (STATUS_DEVICE_PROTOCOL_ERROR) */\r
705    0,                                      /* c0000187 (STATUS_BACKUP_CONTROLLER) */\r
706    ERROR_LOG_FILE_FULL,                    /* c0000188 (STATUS_LOG_FILE_FULL) */\r
707    ERROR_WRITE_PROTECT,                    /* c0000189 (STATUS_TOO_LATE) */\r
708    ERROR_NO_TRUST_LSA_SECRET,              /* c000018a (STATUS_NO_TRUST_LSA_SECRET) */\r
709    ERROR_NO_TRUST_SAM_ACCOUNT,             /* c000018b (STATUS_NO_TRUST_SAM_ACCOUNT) */\r
710    ERROR_TRUSTED_DOMAIN_FAILURE,           /* c000018c (STATUS_TRUSTED_DOMAIN_FAILURE) */\r
711    ERROR_TRUSTED_RELATIONSHIP_FAILURE,     /* c000018d (STATUS_TRUSTED_RELATIONSHIP_FAILURE) */\r
712    ERROR_EVENTLOG_FILE_CORRUPT,            /* c000018e (STATUS_EVENTLOG_FILE_CORRUPT) */\r
713    ERROR_EVENTLOG_CANT_START,              /* c000018f (STATUS_EVENTLOG_CANT_START) */\r
714    ERROR_TRUST_FAILURE,                    /* c0000190 (STATUS_TRUST_FAILURE) */\r
715    0,                                      /* c0000191 (STATUS_MUTANT_LIMIT_EXCEEDED) */\r
716    ERROR_NETLOGON_NOT_STARTED,             /* c0000192 (STATUS_NETLOGON_NOT_STARTED) */\r
717    ERROR_ACCOUNT_EXPIRED,                  /* c0000193 (STATUS_ACCOUNT_EXPIRED) */\r
718    ERROR_POSSIBLE_DEADLOCK,                /* c0000194 (STATUS_POSSIBLE_DEADLOCK) */\r
719    ERROR_SESSION_CREDENTIAL_CONFLICT,      /* c0000195 (STATUS_NETWORK_CREDENTIAL_CONFLICT) */\r
720    ERROR_REMOTE_SESSION_LIMIT_EXCEEDED,    /* c0000196 (STATUS_REMOTE_SESSION_LIMIT) */\r
721    ERROR_EVENTLOG_FILE_CHANGED,            /* c0000197 (STATUS_EVENTLOG_FILE_CHANGED) */\r
722    ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT,/* c0000198 (STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT) */\r
723    ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT,/* c0000199 (STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT) */\r
724    ERROR_NOLOGON_SERVER_TRUST_ACCOUNT,     /* c000019a (STATUS_NOLOGON_SERVER_TRUST_ACCOUNT) */\r
725    ERROR_DOMAIN_TRUST_INCONSISTENT         /* c000019b (STATUS_DOMAIN_TRUST_INCONSISTENT) */\r
726 };\r
727 \r
728 static const DWORD table_c0000202[396] =\r
729 {\r
730    ERROR_NO_USER_SESSION_KEY,              /* c0000202 (STATUS_NO_USER_SESSION_KEY) */\r
731    ERROR_UNEXP_NET_ERR,                    /* c0000203 (STATUS_USER_SESSION_DELETED) */\r
732    ERROR_RESOURCE_LANG_NOT_FOUND,          /* c0000204 (STATUS_RESOURCE_LANG_NOT_FOUND) */\r
733    ERROR_NOT_ENOUGH_SERVER_MEMORY,         /* c0000205 (STATUS_INSUFF_SERVER_RESOURCES) */\r
734    ERROR_INVALID_USER_BUFFER,              /* c0000206 (STATUS_INVALID_BUFFER_SIZE) */\r
735    ERROR_INVALID_NETNAME,                  /* c0000207 (STATUS_INVALID_ADDRESS_COMPONENT) */\r
736    ERROR_INVALID_NETNAME,                  /* c0000208 (STATUS_INVALID_ADDRESS_WILDCARD) */\r
737    ERROR_TOO_MANY_NAMES,                   /* c0000209 (STATUS_TOO_MANY_ADDRESSES) */\r
738    ERROR_DUP_NAME,                         /* c000020a (STATUS_ADDRESS_ALREADY_EXISTS) */\r
739    ERROR_NETNAME_DELETED,                  /* c000020b (STATUS_ADDRESS_CLOSED) */\r
740    ERROR_NETNAME_DELETED,                  /* c000020c (STATUS_CONNECTION_DISCONNECTED) */\r
741    ERROR_NETNAME_DELETED,                  /* c000020d (STATUS_CONNECTION_RESET) */\r
742    ERROR_TOO_MANY_NAMES,                   /* c000020e (STATUS_TOO_MANY_NODES) */\r
743    ERROR_UNEXP_NET_ERR,                    /* c000020f (STATUS_TRANSACTION_ABORTED) */\r
744    ERROR_UNEXP_NET_ERR,                    /* c0000210 (STATUS_TRANSACTION_TIMED_OUT) */\r
745    ERROR_UNEXP_NET_ERR,                    /* c0000211 (STATUS_TRANSACTION_NO_RELEASE) */\r
746    ERROR_UNEXP_NET_ERR,                    /* c0000212 (STATUS_TRANSACTION_NO_MATCH) */\r
747    ERROR_UNEXP_NET_ERR,                    /* c0000213 (STATUS_TRANSACTION_RESPONDED) */\r
748    ERROR_UNEXP_NET_ERR,                    /* c0000214 (STATUS_TRANSACTION_INVALID_ID) */\r
749    ERROR_UNEXP_NET_ERR,                    /* c0000215 (STATUS_TRANSACTION_INVALID_TYPE) */\r
750    ERROR_NOT_SUPPORTED,                    /* c0000216 (STATUS_NOT_SERVER_SESSION) */\r
751    ERROR_NOT_SUPPORTED,                    /* c0000217 (STATUS_NOT_CLIENT_SESSION) */\r
752    0,                                      /* c0000218 (STATUS_CANNOT_LOAD_REGISTRY_FILE) */\r
753    0,                                      /* c0000219 (STATUS_DEBUG_ATTACH_FAILED) */\r
754    0,                                      /* c000021a (STATUS_SYSTEM_PROCESS_TERMINATED) */\r
755    0,                                      /* c000021b (STATUS_DATA_NOT_ACCEPTED) */\r
756    ERROR_NO_BROWSER_SERVERS_FOUND,         /* c000021c (STATUS_NO_BROWSER_SERVERS_FOUND) */\r
757    0,                                      /* c000021d (STATUS_VDM_HARD_ERROR) */\r
758    0,                                      /* c000021e (STATUS_DRIVER_CANCEL_TIMEOUT) */\r
759    0,                                      /* c000021f (STATUS_REPLY_MESSAGE_MISMATCH) */\r
760    ERROR_MAPPED_ALIGNMENT,                 /* c0000220 (STATUS_MAPPED_ALIGNMENT) */\r
761    ERROR_BAD_EXE_FORMAT,                   /* c0000221 (STATUS_IMAGE_CHECKSUM_MISMATCH) */\r
762    0,                                      /* c0000222 (STATUS_LOST_WRITEBEHIND_DATA) */\r
763    0,                                      /* c0000223 (STATUS_CLIENT_SERVER_PARAMETERS_INVALID) */\r
764    ERROR_PASSWORD_MUST_CHANGE,             /* c0000224 (STATUS_PASSWORD_MUST_CHANGE) */\r
765    ERROR_NOT_FOUND,                        /* c0000225 (STATUS_NOT_FOUND) */\r
766    0,                                      /* c0000226 (STATUS_NOT_TINY_STREAM) */\r
767    0,                                      /* c0000227 (STATUS_RECOVERY_FAILURE) */\r
768    0,                                      /* c0000228 (STATUS_STACK_OVERFLOW_READ) */\r
769    ERROR_INVALID_PARAMETER,                /* c0000229 (STATUS_FAIL_CHECK) */\r
770    ERROR_OBJECT_ALREADY_EXISTS,            /* c000022a (STATUS_DUPLICATE_OBJECTID) */\r
771    ERROR_OBJECT_ALREADY_EXISTS,            /* c000022b (STATUS_OBJECTID_EXISTS) */\r
772    0,                                      /* c000022c (STATUS_CONVERT_TO_LARGE) */\r
773    ERROR_RETRY,                            /* c000022d (STATUS_RETRY) */\r
774    0,                                      /* c000022e (STATUS_FOUND_OUT_OF_SCOPE) */\r
775    0,                                      /* c000022f (STATUS_ALLOCATE_BUCKET) */\r
776    ERROR_SET_NOT_FOUND,                    /* c0000230 (STATUS_PROPSET_NOT_FOUND) */\r
777    0,                                      /* c0000231 (STATUS_MARSHALL_OVERFLOW) */\r
778    0,                                      /* c0000232 (STATUS_INVALID_VARIANT) */\r
779    ERROR_DOMAIN_CONTROLLER_NOT_FOUND,      /* c0000233 (STATUS_DOMAIN_CONTROLLER_NOT_FOUND) */\r
780    ERROR_ACCOUNT_LOCKED_OUT,               /* c0000234 (STATUS_ACCOUNT_LOCKED_OUT) */\r
781    ERROR_INVALID_HANDLE,                   /* c0000235 (STATUS_HANDLE_NOT_CLOSABLE) */\r
782    ERROR_CONNECTION_REFUSED,               /* c0000236 (STATUS_CONNECTION_REFUSED) */\r
783    ERROR_GRACEFUL_DISCONNECT,              /* c0000237 (STATUS_GRACEFUL_DISCONNECT) */\r
784    ERROR_ADDRESS_ALREADY_ASSOCIATED,       /* c0000238 (STATUS_ADDRESS_ALREADY_ASSOCIATED) */\r
785    ERROR_ADDRESS_NOT_ASSOCIATED,           /* c0000239 (STATUS_ADDRESS_NOT_ASSOCIATED) */\r
786    ERROR_CONNECTION_INVALID,               /* c000023a (STATUS_CONNECTION_INVALID) */\r
787    ERROR_CONNECTION_ACTIVE,                /* c000023b (STATUS_CONNECTION_ACTIVE) */\r
788    ERROR_NETWORK_UNREACHABLE,              /* c000023c (STATUS_NETWORK_UNREACHABLE) */\r
789    ERROR_HOST_UNREACHABLE,                 /* c000023d (STATUS_HOST_UNREACHABLE) */\r
790    ERROR_PROTOCOL_UNREACHABLE,             /* c000023e (STATUS_PROTOCOL_UNREACHABLE) */\r
791    ERROR_PORT_UNREACHABLE,                 /* c000023f (STATUS_PORT_UNREACHABLE) */\r
792    ERROR_REQUEST_ABORTED,                  /* c0000240 (STATUS_REQUEST_ABORTED) */\r
793    ERROR_CONNECTION_ABORTED,               /* c0000241 (STATUS_CONNECTION_ABORTED) */\r
794    0,                                      /* c0000242 (STATUS_BAD_COMPRESSION_BUFFER) */\r
795    ERROR_USER_MAPPED_FILE,                 /* c0000243 (STATUS_USER_MAPPED_FILE) */\r
796    0,                                      /* c0000244 (STATUS_AUDIT_FAILED) */\r
797    0,                                      /* c0000245 (STATUS_TIMER_RESOLUTION_NOT_SET) */\r
798    ERROR_CONNECTION_COUNT_LIMIT,           /* c0000246 (STATUS_CONNECTION_COUNT_LIMIT) */\r
799    ERROR_LOGIN_TIME_RESTRICTION,           /* c0000247 (STATUS_LOGIN_TIME_RESTRICTION) */\r
800    ERROR_LOGIN_WKSTA_RESTRICTION,          /* c0000248 (STATUS_LOGIN_WKSTA_RESTRICTION) */\r
801    ERROR_BAD_EXE_FORMAT,                   /* c0000249 (STATUS_IMAGE_MP_UP_MISMATCH) */\r
802    0,                                      /* c000024a */\r
803    0,                                      /* c000024b */\r
804    0,                                      /* c000024c */\r
805    0,                                      /* c000024d */\r
806    0,                                      /* c000024e */\r
807    0,                                      /* c000024f */\r
808    0,                                      /* c0000250 (STATUS_INSUFFICIENT_LOGON_INFO) */\r
809    0,                                      /* c0000251 (STATUS_BAD_DLL_ENTRYPOINT) */\r
810    0,                                      /* c0000252 (STATUS_BAD_SERVICE_ENTRYPOINT) */\r
811    ERROR_CONNECTION_ABORTED,               /* c0000253 (STATUS_LPC_REPLY_LOST) */\r
812    0,                                      /* c0000254 (STATUS_IP_ADDRESS_CONFLICT1) */\r
813    0,                                      /* c0000255 (STATUS_IP_ADDRESS_CONFLICT2) */\r
814    0,                                      /* c0000256 (STATUS_REGISTRY_QUOTA_LIMIT) */\r
815    ERROR_HOST_UNREACHABLE,                 /* c0000257 (STATUS_PATH_NOT_COVERED) */\r
816    0,                                      /* c0000258 (STATUS_NO_CALLBACK_ACTIVE) */\r
817    ERROR_LICENSE_QUOTA_EXCEEDED,           /* c0000259 (STATUS_LICENSE_QUOTA_EXCEEDED) */\r
818    0,                                      /* c000025a (STATUS_PWD_TOO_SHORT) */\r
819    0,                                      /* c000025b (STATUS_PWD_TOO_RECENT) */\r
820    0,                                      /* c000025c (STATUS_PWD_HISTORY_CONFLICT) */\r
821    0,                                      /* c000025d */\r
822    ERROR_SERVICE_DISABLED,                 /* c000025e (STATUS_PLUGPLAY_NO_DEVICE) */\r
823    0,                                      /* c000025f (STATUS_UNSUPPORTED_COMPRESSION) */\r
824    0,                                      /* c0000260 (STATUS_INVALID_HW_PROFILE) */\r
825    0,                                      /* c0000261 (STATUS_INVALID_PLUGPLAY_DEVICE_PATH) */\r
826    ERROR_INVALID_ORDINAL,                  /* c0000262 (STATUS_DRIVER_ORDINAL_NOT_FOUND) */\r
827    ERROR_PROC_NOT_FOUND,                   /* c0000263 (STATUS_DRIVER_ENTRYPOINT_NOT_FOUND) */\r
828    ERROR_NOT_OWNER,                        /* c0000264 (STATUS_RESOURCE_NOT_OWNED) */\r
829    ERROR_TOO_MANY_LINKS,                   /* c0000265 (STATUS_TOO_MANY_LINKS) */\r
830    0,                                      /* c0000266 (STATUS_QUOTA_LIST_INCONSISTENT) */\r
831    ERROR_FILE_OFFLINE,                     /* c0000267 (STATUS_FILE_IS_OFFLINE) */\r
832    0,                                      /* c0000268 (STATUS_EVALUATION_EXPIRATION) */\r
833    0,                                      /* c0000269 (STATUS_ILLEGAL_DLL_RELOCATION) */\r
834    ERROR_CTX_LICENSE_NOT_AVAILABLE,        /* c000026a (STATUS_LICENSE_VIOLATION) */\r
835    0,                                      /* c000026b (STATUS_DLL_INIT_FAILED_LOGOFF) */\r
836    ERROR_BAD_DRIVER,                       /* c000026c (STATUS_DRIVER_UNABLE_TO_LOAD) */\r
837    ERROR_CONNECTION_UNAVAIL,               /* c000026d (STATUS_DFS_UNAVAILABLE) */\r
838    ERROR_NOT_READY,                        /* c000026e (STATUS_VOLUME_DISMOUNTED) */\r
839    0,                                      /* c000026f (STATUS_WX86_INTERNAL_ERROR) */\r
840    0,                                      /* c0000270 (STATUS_WX86_FLOAT_STACK_CHECK) */\r
841    0,                                      /* c0000271 (STATUS_VALIDATE_CONTINUE) */\r
842    ERROR_NO_MATCH,                         /* c0000272 (STATUS_NO_MATCH) */\r
843    0,                                      /* c0000273 (STATUS_NO_MORE_MATCHES) */\r
844    0,                                      /* c0000274 */\r
845    ERROR_NOT_A_REPARSE_POINT,              /* c0000275 (STATUS_NOT_A_REPARSE_POINT) */\r
846    ERROR_REPARSE_TAG_INVALID,              /* c0000276 (STATUS_IO_REPARSE_TAG_INVALID) */\r
847    ERROR_REPARSE_TAG_MISMATCH,             /* c0000277 (STATUS_IO_REPARSE_TAG_MISMATCH) */\r
848    ERROR_INVALID_REPARSE_DATA,             /* c0000278 (STATUS_IO_REPARSE_DATA_INVALID) */\r
849    ERROR_CANT_ACCESS_FILE,                 /* c0000279 (STATUS_IO_REPARSE_TAG_NOT_HANDLED) */\r
850    0,                                      /* c000027a */\r
851    0,                                      /* c000027b */\r
852    0,                                      /* c000027c */\r
853    0,                                      /* c000027d */\r
854    0,                                      /* c000027e */\r
855    0,                                      /* c000027f */\r
856    ERROR_CANT_RESOLVE_FILENAME,            /* c0000280 (STATUS_REPARSE_POINT_NOT_RESOLVED) */\r
857    ERROR_BAD_PATHNAME,                     /* c0000281 (STATUS_DIRECTORY_IS_A_REPARSE_POINT) */\r
858    0,                                      /* c0000282 (STATUS_RANGE_LIST_CONFLICT) */\r
859    ERROR_SOURCE_ELEMENT_EMPTY,             /* c0000283 (STATUS_SOURCE_ELEMENT_EMPTY) */\r
860    ERROR_DESTINATION_ELEMENT_FULL,         /* c0000284 (STATUS_DESTINATION_ELEMENT_FULL) */\r
861    ERROR_ILLEGAL_ELEMENT_ADDRESS,          /* c0000285 (STATUS_ILLEGAL_ELEMENT_ADDRESS) */\r
862    ERROR_MAGAZINE_NOT_PRESENT,             /* c0000286 (STATUS_MAGAZINE_NOT_PRESENT) */\r
863    ERROR_DEVICE_REINITIALIZATION_NEEDED,   /* c0000287 (STATUS_REINITIALIZATION_NEEDED) */\r
864    0,                                      /* c0000288 */\r
865    0,                                      /* c0000289 */\r
866    ERROR_ACCESS_DENIED,                    /* c000028a (STATUS_ENCRYPTION_FAILED) */\r
867    ERROR_ACCESS_DENIED,                    /* c000028b (STATUS_DECRYPTION_FAILED) */\r
868    0,                                      /* c000028c (STATUS_RANGE_NOT_FOUND) */\r
869    ERROR_ACCESS_DENIED,                    /* c000028d (STATUS_NO_RECOVERY_POLICY) */\r
870    ERROR_ACCESS_DENIED,                    /* c000028e (STATUS_NO_EFS) */\r
871    ERROR_ACCESS_DENIED,                    /* c000028f (STATUS_WRONG_EFS) */\r
872    ERROR_ACCESS_DENIED,                    /* c0000290 (STATUS_NO_USER_KEYS) */\r
873    ERROR_FILE_NOT_ENCRYPTED,               /* c0000291 (STATUS_FILE_NOT_ENCRYPTED) */\r
874    ERROR_NOT_EXPORT_FORMAT,                /* c0000292 (STATUS_NOT_EXPORT_FORMAT) */\r
875    ERROR_FILE_ENCRYPTED,                   /* c0000293 (STATUS_FILE_ENCRYPTED) */\r
876    0,                                      /* c0000294 */\r
877    ERROR_WMI_GUID_NOT_FOUND,               /* c0000295 (STATUS_WMI_GUID_NOT_FOUND) */\r
878    ERROR_WMI_INSTANCE_NOT_FOUND,           /* c0000296 (STATUS_WMI_INSTANCE_NOT_FOUND) */\r
879    ERROR_WMI_ITEMID_NOT_FOUND,             /* c0000297 (STATUS_WMI_ITEMID_NOT_FOUND) */\r
880    ERROR_WMI_TRY_AGAIN,                    /* c0000298 (STATUS_WMI_TRY_AGAIN) */\r
881    ERROR_SHARED_POLICY,                    /* c0000299 (STATUS_SHARED_POLICY) */\r
882    ERROR_POLICY_OBJECT_NOT_FOUND,          /* c000029a (STATUS_POLICY_OBJECT_NOT_FOUND) */\r
883    ERROR_POLICY_ONLY_IN_DS,                /* c000029b (STATUS_POLICY_ONLY_IN_DS) */\r
884    ERROR_INVALID_FUNCTION,                 /* c000029c (STATUS_VOLUME_NOT_UPGRADED) */\r
885    ERROR_REMOTE_STORAGE_NOT_ACTIVE,        /* c000029d (STATUS_REMOTE_STORAGE_NOT_ACTIVE) */\r
886    ERROR_REMOTE_STORAGE_MEDIA_ERROR,       /* c000029e (STATUS_REMOTE_STORAGE_MEDIA_ERROR) */\r
887    ERROR_NO_TRACKING_SERVICE,              /* c000029f (STATUS_NO_TRACKING_SERVICE) */\r
888    0,                                      /* c00002a0 (STATUS_SERVER_SID_MISMATCH) */\r
889    ERROR_DS_NO_ATTRIBUTE_OR_VALUE,         /* c00002a1 (STATUS_DS_NO_ATTRIBUTE_OR_VALUE) */\r
890    ERROR_DS_INVALID_ATTRIBUTE_SYNTAX,      /* c00002a2 (STATUS_DS_INVALID_ATTRIBUTE_SYNTAX) */\r
891    ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED,      /* c00002a3 (STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED) */\r
892    ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS,     /* c00002a4 (STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS) */\r
893    ERROR_DS_BUSY,                          /* c00002a5 (STATUS_DS_BUSY) */\r
894    ERROR_DS_UNAVAILABLE,                   /* c00002a6 (STATUS_DS_UNAVAILABLE) */\r
895    ERROR_DS_NO_RIDS_ALLOCATED,             /* c00002a7 (STATUS_DS_NO_RIDS_ALLOCATED) */\r
896    ERROR_DS_NO_MORE_RIDS,                  /* c00002a8 (STATUS_DS_NO_MORE_RIDS) */\r
897    ERROR_DS_INCORRECT_ROLE_OWNER,          /* c00002a9 (STATUS_DS_INCORRECT_ROLE_OWNER) */\r
898    ERROR_DS_RIDMGR_INIT_ERROR,             /* c00002aa (STATUS_DS_RIDMGR_INIT_ERROR) */\r
899    ERROR_DS_OBJ_CLASS_VIOLATION,           /* c00002ab (STATUS_DS_OBJ_CLASS_VIOLATION) */\r
900    ERROR_DS_CANT_ON_NON_LEAF,              /* c00002ac (STATUS_DS_CANT_ON_NON_LEAF) */\r
901    ERROR_DS_CANT_ON_RDN,                   /* c00002ad (STATUS_DS_CANT_ON_RDN) */\r
902    ERROR_DS_CANT_MOD_OBJ_CLASS,            /* c00002ae (STATUS_DS_CANT_MOD_OBJ_CLASS) */\r
903    ERROR_DS_CROSS_DOM_MOVE_ERROR,          /* c00002af (STATUS_DS_CROSS_DOM_MOVE_FAILED) */\r
904    ERROR_DS_GC_NOT_AVAILABLE,              /* c00002b0 (STATUS_DS_GC_NOT_AVAILABLE) */\r
905    ERROR_DS_DS_REQUIRED,                   /* c00002b1 (STATUS_DIRECTORY_SERVICE_REQUIRED) */\r
906    ERROR_REPARSE_ATTRIBUTE_CONFLICT,       /* c00002b2 (STATUS_REPARSE_ATTRIBUTE_CONFLICT) */\r
907    0,                                      /* c00002b3 (STATUS_CANT_ENABLE_DENY_ONLY) */\r
908    0,                                      /* c00002b4 (STATUS_FLOAT_MULTIPLE_FAULTS) */\r
909    0,                                      /* c00002b5 (STATUS_FLOAT_MULTIPLE_TRAPS) */\r
910    ERROR_DEVICE_REMOVED,                   /* c00002b6 (STATUS_DEVICE_REMOVED) */\r
911    ERROR_JOURNAL_DELETE_IN_PROGRESS,       /* c00002b7 (STATUS_JOURNAL_DELETE_IN_PROGRESS) */\r
912    ERROR_JOURNAL_NOT_ACTIVE,               /* c00002b8 (STATUS_JOURNAL_NOT_ACTIVE) */\r
913    0,                                      /* c00002b9 (STATUS_NOINTERFACE) */\r
914    0,                                      /* c00002ba */\r
915    0,                                      /* c00002bb */\r
916    0,                                      /* c00002bc */\r
917    0,                                      /* c00002bd */\r
918    0,                                      /* c00002be */\r
919    0,                                      /* c00002bf */\r
920    0,                                      /* c00002c0 */\r
921    ERROR_DS_ADMIN_LIMIT_EXCEEDED,          /* c00002c1 (STATUS_DS_ADMIN_LIMIT_EXCEEDED) */\r
922    0,                                      /* c00002c2 (STATUS_DRIVER_FAILED_SLEEP) */\r
923    ERROR_MUTUAL_AUTH_FAILED,               /* c00002c3 (STATUS_MUTUAL_AUTHENTICATION_FAILED) */\r
924    0,                                      /* c00002c4 (STATUS_CORRUPT_SYSTEM_FILE) */\r
925    ERROR_NOACCESS,                         /* c00002c5 (STATUS_DATATYPE_MISALIGNMENT_ERROR) */\r
926    ERROR_WMI_READ_ONLY,                    /* c00002c6 (STATUS_WMI_READ_ONLY) */\r
927    ERROR_WMI_SET_FAILURE,                  /* c00002c7 (STATUS_WMI_SET_FAILURE) */\r
928    0,                                      /* c00002c8 (STATUS_COMMITMENT_MINIMUM) */\r
929    ERROR_REG_NAT_CONSUMPTION,              /* c00002c9 (STATUS_REG_NAT_CONSUMPTION) */\r
930    ERROR_TRANSPORT_FULL,                   /* c00002ca (STATUS_TRANSPORT_FULL) */\r
931    ERROR_DS_SAM_INIT_FAILURE,              /* c00002cb (STATUS_DS_SAM_INIT_FAILURE) */\r
932    ERROR_ONLY_IF_CONNECTED,                /* c00002cc (STATUS_ONLY_IF_CONNECTED) */\r
933    ERROR_DS_SENSITIVE_GROUP_VIOLATION,     /* c00002cd (STATUS_DS_SENSITIVE_GROUP_VIOLATION) */\r
934    0,                                      /* c00002ce (STATUS_PNP_RESTART_ENUMERATION) */\r
935    ERROR_JOURNAL_ENTRY_DELETED,            /* c00002cf (STATUS_JOURNAL_ENTRY_DELETED) */\r
936    ERROR_DS_CANT_MOD_PRIMARYGROUPID,       /* c00002d0 (STATUS_DS_CANT_MOD_PRIMARYGROUPID) */\r
937    0,                                      /* c00002d1 (STATUS_SYSTEM_IMAGE_BAD_SIGNATURE) */\r
938    0,                                      /* c00002d2 (STATUS_PNP_REBOOT_REQUIRED) */\r
939    0,                                      /* c00002d3 (STATUS_POWER_STATE_INVALID) */\r
940    ERROR_DS_INVALID_GROUP_TYPE,            /* c00002d4 (STATUS_DS_INVALID_GROUP_TYPE) */\r
941    ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN, /* c00002d5 (STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN) */\r
942    ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN,  /* c00002d6 (STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN) */\r
943    ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER,      /* c00002d7 (STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER) */\r
944    ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER,  /* c00002d8 (STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER) */\r
945    ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER,   /* c00002d9 (STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER) */\r
946    ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER,/* c00002da (STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER) */\r
947    ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER,   /* c00002db (STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER) */\r
948    ERROR_DS_HAVE_PRIMARY_MEMBERS,               /* c00002dc (STATUS_DS_HAVE_PRIMARY_MEMBERS) */\r
949    ERROR_NOT_SUPPORTED,                    /* c00002dd (STATUS_WMI_NOT_SUPPORTED) */\r
950    0,                                      /* c00002de (STATUS_INSUFFICIENT_POWER) */\r
951    ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD,     /* c00002df (STATUS_SAM_NEED_BOOTKEY_PASSWORD) */\r
952    ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY,       /* c00002e0 (STATUS_SAM_NEED_BOOTKEY_FLOPPY) */\r
953    ERROR_DS_CANT_START,                    /* c00002e1 (STATUS_DS_CANT_START) */\r
954    ERROR_DS_INIT_FAILURE,                  /* c00002e2 (STATUS_DS_INIT_FAILURE) */\r
955    ERROR_SAM_INIT_FAILURE,                 /* c00002e3 (STATUS_SAM_INIT_FAILURE) */\r
956    ERROR_DS_GC_REQUIRED,                   /* c00002e4 (STATUS_DS_GC_REQUIRED) */\r
957    ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY,    /* c00002e5 (STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY) */\r
958    ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS,    /* c00002e6 (STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS) */\r
959    ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED,     /* c00002e7 (STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED) */\r
960    0,                                      /* c00002e8 (STATUS_MULTIPLE_FAULT_VIOLATION) */\r
961    ERROR_CURRENT_DOMAIN_NOT_ALLOWED,       /* c00002e9 (STATUS_CURRENT_DOMAIN_NOT_ALLOWED) */\r
962    ERROR_CANNOT_MAKE,                      /* c00002ea (STATUS_CANNOT_MAKE) */\r
963    0,                                      /* c00002eb (STATUS_SYSTEM_SHUTDOWN) */\r
964    ERROR_DS_INIT_FAILURE_CONSOLE,          /* c00002ec (STATUS_DS_INIT_FAILURE_CONSOLE) */\r
965    ERROR_DS_SAM_INIT_FAILURE_CONSOLE,      /* c00002ed (STATUS_DS_SAM_INIT_FAILURE_CONSOLE) */\r
966    SEC_E_UNFINISHED_CONTEXT_DELETED,       /* c00002ee (STATUS_UNFINISHED_CONTEXT_DELETED) */\r
967    SEC_E_NO_TGT_REPLY,                     /* c00002ef (STATUS_NO_TGT_REPLY) */\r
968    ERROR_FILE_NOT_FOUND,                   /* c00002f0 (STATUS_OBJECTID_NOT_FOUND) */\r
969    SEC_E_NO_IP_ADDRESSES,                  /* c00002f1 (STATUS_NO_IP_ADDRESSES) */\r
970    SEC_E_WRONG_CREDENTIAL_HANDLE,          /* c00002f2 (STATUS_WRONG_CREDENTIAL_HANDLE) */\r
971    SEC_E_CRYPTO_SYSTEM_INVALID,            /* c00002f3 (STATUS_CRYPTO_SYSTEM_INVALID) */\r
972    SEC_E_MAX_REFERRALS_EXCEEDED,           /* c00002f4 (STATUS_MAX_REFERRALS_EXCEEDED) */\r
973    SEC_E_MUST_BE_KDC,                      /* c00002f5 (STATUS_MUST_BE_KDC) */\r
974    SEC_E_STRONG_CRYPTO_NOT_SUPPORTED,      /* c00002f6 (STATUS_STRONG_CRYPTO_NOT_SUPPORTED) */\r
975    SEC_E_TOO_MANY_PRINCIPALS,              /* c00002f7 (STATUS_TOO_MANY_PRINCIPALS) */\r
976    SEC_E_NO_PA_DATA,                       /* c00002f8 (STATUS_NO_PA_DATA) */\r
977    SEC_E_PKINIT_NAME_MISMATCH,             /* c00002f9 (STATUS_PKINIT_NAME_MISMATCH) */\r
978    SEC_E_SMARTCARD_LOGON_REQUIRED,         /* c00002fa (STATUS_SMARTCARD_LOGON_REQUIRED) */\r
979    SEC_E_KDC_INVALID_REQUEST,              /* c00002fb (STATUS_KDC_INVALID_REQUEST) */\r
980    SEC_E_KDC_UNABLE_TO_REFER,              /* c00002fc (STATUS_KDC_UNABLE_TO_REFER) */\r
981    SEC_E_KDC_UNKNOWN_ETYPE,                /* c00002fd (STATUS_KDC_UNKNOWN_ETYPE) */\r
982    ERROR_SHUTDOWN_IN_PROGRESS,             /* c00002fe (STATUS_SHUTDOWN_IN_PROGRESS) */\r
983    ERROR_SERVER_SHUTDOWN_IN_PROGRESS,      /* c00002ff (STATUS_SERVER_SHUTDOWN_IN_PROGRESS) */\r
984    ERROR_NOT_SUPPORTED_ON_SBS,             /* c0000300 (STATUS_NOT_SUPPORTED_ON_SBS) */\r
985    ERROR_WMI_GUID_DISCONNECTED,            /* c0000301 (STATUS_WMI_GUID_DISCONNECTED) */\r
986    ERROR_WMI_ALREADY_DISABLED,             /* c0000302 (STATUS_WMI_ALREADY_DISABLED) */\r
987    ERROR_WMI_ALREADY_ENABLED,              /* c0000303 (STATUS_WMI_ALREADY_ENABLED) */\r
988    ERROR_DISK_TOO_FRAGMENTED,              /* c0000304 (STATUS_MFT_TOO_FRAGMENTED) */\r
989    STG_E_STATUS_COPY_PROTECTION_FAILURE,   /* c0000305 (STATUS_COPY_PROTECTION_FAILURE) */\r
990    STG_E_CSS_AUTHENTICATION_FAILURE,       /* c0000306 (STATUS_CSS_AUTHENTICATION_FAILURE) */\r
991    STG_E_CSS_KEY_NOT_PRESENT,              /* c0000307 (STATUS_CSS_KEY_NOT_PRESENT) */\r
992    STG_E_CSS_KEY_NOT_ESTABLISHED,          /* c0000308 (STATUS_CSS_KEY_NOT_ESTABLISHED) */\r
993    STG_E_CSS_SCRAMBLED_SECTOR,             /* c0000309 (STATUS_CSS_SCRAMBLED_SECTOR) */\r
994    STG_E_CSS_REGION_MISMATCH,              /* c000030a (STATUS_CSS_REGION_MISMATCH) */\r
995    STG_E_RESETS_EXHAUSTED,                 /* c000030b (STATUS_CSS_RESETS_EXHAUSTED) */\r
996    0,                                      /* c000030c */\r
997    0,                                      /* c000030d */\r
998    0,                                      /* c000030e */\r
999    0,                                      /* c000030f */\r
1000    0,                                      /* c0000310 */\r
1001    0,                                      /* c0000311 */\r
1002    0,                                      /* c0000312 */\r
1003    0,                                      /* c0000313 */\r
1004    0,                                      /* c0000314 */\r
1005    0,                                      /* c0000315 */\r
1006    0,                                      /* c0000316 */\r
1007    0,                                      /* c0000317 */\r
1008    0,                                      /* c0000318 */\r
1009    0,                                      /* c0000319 */\r
1010    0,                                      /* c000031a */\r
1011    0,                                      /* c000031b */\r
1012    0,                                      /* c000031c */\r
1013    0,                                      /* c000031d */\r
1014    0,                                      /* c000031e */\r
1015    0,                                      /* c000031f */\r
1016    ERROR_PKINIT_FAILURE,                   /* c0000320 (STATUS_PKINIT_FAILURE) */\r
1017    ERROR_SMARTCARD_SUBSYSTEM_FAILURE,      /* c0000321 (STATUS_SMARTCARD_SUBSYSTEM_FAILURE) */\r
1018    SEC_E_NO_KERB_KEY,                      /* c0000322 (STATUS_NO_KERB_KEY) */\r
1019    0,                                      /* c0000323 */\r
1020    0,                                      /* c0000324 */\r
1021    0,                                      /* c0000325 */\r
1022    0,                                      /* c0000326 */\r
1023    0,                                      /* c0000327 */\r
1024    0,                                      /* c0000328 */\r
1025    0,                                      /* c0000329 */\r
1026    0,                                      /* c000032a */\r
1027    0,                                      /* c000032b */\r
1028    0,                                      /* c000032c */\r
1029    0,                                      /* c000032d */\r
1030    0,                                      /* c000032e */\r
1031    0,                                      /* c000032f */\r
1032    0,                                      /* c0000330 */\r
1033    0,                                      /* c0000331 */\r
1034    0,                                      /* c0000332 */\r
1035    0,                                      /* c0000333 */\r
1036    0,                                      /* c0000334 */\r
1037    0,                                      /* c0000335 */\r
1038    0,                                      /* c0000336 */\r
1039    0,                                      /* c0000337 */\r
1040    0,                                      /* c0000338 */\r
1041    0,                                      /* c0000339 */\r
1042    0,                                      /* c000033a */\r
1043    0,                                      /* c000033b */\r
1044    0,                                      /* c000033c */\r
1045    0,                                      /* c000033d */\r
1046    0,                                      /* c000033e */\r
1047    0,                                      /* c000033f */\r
1048    0,                                      /* c0000340 */\r
1049    0,                                      /* c0000341 */\r
1050    0,                                      /* c0000342 */\r
1051    0,                                      /* c0000343 */\r
1052    0,                                      /* c0000344 */\r
1053    0,                                      /* c0000345 */\r
1054    0,                                      /* c0000346 */\r
1055    0,                                      /* c0000347 */\r
1056    0,                                      /* c0000348 */\r
1057    0,                                      /* c0000349 */\r
1058    0,                                      /* c000034a */\r
1059    0,                                      /* c000034b */\r
1060    0,                                      /* c000034c */\r
1061    0,                                      /* c000034d */\r
1062    0,                                      /* c000034e */\r
1063    0,                                      /* c000034f */\r
1064    ERROR_HOST_DOWN,                        /* c0000350 (STATUS_HOST_DOWN) */\r
1065    SEC_E_UNSUPPORTED_PREAUTH,              /* c0000351 (STATUS_UNSUPPORTED_PREAUTH) */\r
1066    ERROR_EFS_ALG_BLOB_TOO_BIG,             /* c0000352 (STATUS_EFS_ALG_BLOB_TOO_BIG) */\r
1067    0,                                      /* c0000353 (STATUS_PORT_NOT_SET) */\r
1068    0,                                      /* c0000354 (STATUS_DEBUGGER_INACTIVE) */\r
1069    0,                                      /* c0000355 (STATUS_DS_VERSION_CHECK_FAILURE) */\r
1070    ERROR_AUDITING_DISABLED,                /* c0000356 (STATUS_AUDITING_DISABLED) */\r
1071    ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4,/* c0000357 (STATUS_PRENT4_MACHINE_ACCOUNT) */\r
1072    ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER, /* c0000358 (STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER) */\r
1073    ERROR_BAD_EXE_FORMAT,                   /* c0000359 (STATUS_INVALID_IMAGE_WIN_32) */\r
1074    ERROR_BAD_EXE_FORMAT,                   /* c000035a (STATUS_INVALID_IMAGE_WIN_64) */\r
1075    SEC_E_BAD_BINDINGS,                     /* c000035b (STATUS_BAD_BINDINGS) */\r
1076    ERROR_NO_USER_SESSION_KEY,              /* c000035c (STATUS_NETWORK_SESSION_EXPIRED) */\r
1077    0,                                      /* c000035d (STATUS_APPHELP_BLOCK) */\r
1078    0,                                      /* c000035e (STATUS_ALL_SIDS_FILTERED) */\r
1079    0,                                      /* c000035f (STATUS_NOT_SAFE_MODE_DRIVER) */\r
1080    0,                                      /* c0000360 */\r
1081    ERROR_ACCESS_DISABLED_BY_POLICY,        /* c0000361 (STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT) */\r
1082    ERROR_ACCESS_DISABLED_BY_POLICY,        /* c0000362 (STATUS_ACCESS_DISABLED_BY_POLICY_PATH) */\r
1083    ERROR_ACCESS_DISABLED_BY_POLICY,        /* c0000363 (STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER) */\r
1084    ERROR_ACCESS_DISABLED_BY_POLICY,        /* c0000364 (STATUS_ACCESS_DISABLED_BY_POLICY_OTHER) */\r
1085    0,                                      /* c0000365 (STATUS_FAILED_DRIVER_ENTRY) */\r
1086    0,                                      /* c0000366 (STATUS_DEVICE_ENUMERATION_ERROR) */\r
1087    0,                                      /* c0000367 */\r
1088    0,                                      /* c0000368 (STATUS_MOUNT_POINT_NOT_RESOLVED) */\r
1089    0,                                      /* c0000369 (STATUS_INVALID_DEVICE_OBJECT_PARAMETER) */\r
1090    0,                                      /* c000036a (STATUS_MCA_OCCURED) */\r
1091    ERROR_DRIVER_BLOCKED,                   /* c000036b (STATUS_DRIVER_BLOCKED_CRITICAL) */\r
1092    ERROR_DRIVER_BLOCKED,                   /* c000036c (STATUS_DRIVER_BLOCKED) */\r
1093    0,                                      /* c000036d (STATUS_DRIVER_DATABASE_ERROR) */\r
1094    0,                                      /* c000036e (STATUS_SYSTEM_HIVE_TOO_LARGE) */\r
1095    ERROR_INVALID_IMPORT_OF_NON_DLL,        /* c000036f (STATUS_INVALID_IMPORT_OF_NON_DLL) */\r
1096    0,                                      /* c0000370 */\r
1097    0,                                      /* c0000371 */\r
1098    0,                                      /* c0000372 */\r
1099    0,                                      /* c0000373 */\r
1100    0,                                      /* c0000374 */\r
1101    0,                                      /* c0000375 */\r
1102    0,                                      /* c0000376 */\r
1103    0,                                      /* c0000377 */\r
1104    0,                                      /* c0000378 */\r
1105    0,                                      /* c0000379 */\r
1106    0,                                      /* c000037a */\r
1107    0,                                      /* c000037b */\r
1108    0,                                      /* c000037c */\r
1109    0,                                      /* c000037d */\r
1110    0,                                      /* c000037e */\r
1111    0,                                      /* c000037f */\r
1112    SCARD_W_WRONG_CHV,                      /* c0000380 (STATUS_SMARTCARD_WRONG_PIN) */\r
1113    SCARD_W_CHV_BLOCKED,                    /* c0000381 (STATUS_SMARTCARD_CARD_BLOCKED) */\r
1114    SCARD_W_CARD_NOT_AUTHENTICATED,         /* c0000382 (STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED) */\r
1115    SCARD_E_NO_SMARTCARD,                   /* c0000383 (STATUS_SMARTCARD_NO_CARD) */\r
1116    NTE_NO_KEY,                             /* c0000384 (STATUS_SMARTCARD_NO_KEY_CONTAINER) */\r
1117    SCARD_E_NO_SUCH_CERTIFICATE,            /* c0000385 (STATUS_SMARTCARD_NO_CERTIFICATE) */\r
1118    NTE_BAD_KEYSET,                         /* c0000386 (STATUS_SMARTCARD_NO_KEYSET) */\r
1119    SCARD_E_COMM_DATA_LOST,                 /* c0000387 (STATUS_SMARTCARD_IO_ERROR) */\r
1120    ERROR_DOWNGRADE_DETECTED,               /* c0000388 (STATUS_DOWNGRADE_DETECTED) */\r
1121    SEC_E_SMARTCARD_CERT_REVOKED,           /* c0000389 (STATUS_SMARTCARD_CERT_REVOKED) */\r
1122    SEC_E_ISSUING_CA_UNTRUSTED,             /* c000038a (STATUS_ISSUING_CA_UNTRUSTED) */\r
1123    SEC_E_REVOCATION_OFFLINE_C,             /* c000038b (STATUS_REVOCATION_OFFLINE_C) */\r
1124    SEC_E_PKINIT_CLIENT_FAILURE,            /* c000038c (STATUS_PKINIT_CLIENT_FAILURE) */\r
1125    SEC_E_SMARTCARD_CERT_EXPIRED            /* c000038d (STATUS_SMARTCARD_CERT_EXPIRED) */\r
1126 };\r
1127 \r
1128 static const DWORD table_c0020001[99] =\r
1129 {\r
1130    RPC_S_INVALID_STRING_BINDING,           /* c0020001 (RPC_NT_INVALID_STRING_BINDING) */\r
1131    RPC_S_WRONG_KIND_OF_BINDING,            /* c0020002 (RPC_NT_WRONG_KIND_OF_BINDING) */\r
1132    ERROR_INVALID_HANDLE,                   /* c0020003 (RPC_NT_INVALID_BINDING) */\r
1133    RPC_S_PROTSEQ_NOT_SUPPORTED,            /* c0020004 (RPC_NT_PROTSEQ_NOT_SUPPORTED) */\r
1134    RPC_S_INVALID_RPC_PROTSEQ,              /* c0020005 (RPC_NT_INVALID_RPC_PROTSEQ) */\r
1135    RPC_S_INVALID_STRING_UUID,              /* c0020006 (RPC_NT_INVALID_STRING_UUID) */\r
1136    RPC_S_INVALID_ENDPOINT_FORMAT,          /* c0020007 (RPC_NT_INVALID_ENDPOINT_FORMAT) */\r
1137    RPC_S_INVALID_NET_ADDR,                 /* c0020008 (RPC_NT_INVALID_NET_ADDR) */\r
1138    RPC_S_NO_ENDPOINT_FOUND,                /* c0020009 (RPC_NT_NO_ENDPOINT_FOUND) */\r
1139    RPC_S_INVALID_TIMEOUT,                  /* c002000a (RPC_NT_INVALID_TIMEOUT) */\r
1140    RPC_S_OBJECT_NOT_FOUND,                 /* c002000b (RPC_NT_OBJECT_NOT_FOUND) */\r
1141    RPC_S_ALREADY_REGISTERED,               /* c002000c (RPC_NT_ALREADY_REGISTERED) */\r
1142    RPC_S_TYPE_ALREADY_REGISTERED,          /* c002000d (RPC_NT_TYPE_ALREADY_REGISTERED) */\r
1143    RPC_S_ALREADY_LISTENING,                /* c002000e (RPC_NT_ALREADY_LISTENING) */\r
1144    RPC_S_NO_PROTSEQS_REGISTERED,           /* c002000f (RPC_NT_NO_PROTSEQS_REGISTERED) */\r
1145    RPC_S_NOT_LISTENING,                    /* c0020010 (RPC_NT_NOT_LISTENING) */\r
1146    RPC_S_UNKNOWN_MGR_TYPE,                 /* c0020011 (RPC_NT_UNKNOWN_MGR_TYPE) */\r
1147    RPC_S_UNKNOWN_IF,                       /* c0020012 (RPC_NT_UNKNOWN_IF) */\r
1148    RPC_S_NO_BINDINGS,                      /* c0020013 (RPC_NT_NO_BINDINGS) */\r
1149    RPC_S_NO_PROTSEQS,                      /* c0020014 (RPC_NT_NO_PROTSEQS) */\r
1150    RPC_S_CANT_CREATE_ENDPOINT,             /* c0020015 (RPC_NT_CANT_CREATE_ENDPOINT) */\r
1151    RPC_S_OUT_OF_RESOURCES,                 /* c0020016 (RPC_NT_OUT_OF_RESOURCES) */\r
1152    RPC_S_SERVER_UNAVAILABLE,               /* c0020017 (RPC_NT_SERVER_UNAVAILABLE) */\r
1153    RPC_S_SERVER_TOO_BUSY,                  /* c0020018 (RPC_NT_SERVER_TOO_BUSY) */\r
1154    RPC_S_INVALID_NETWORK_OPTIONS,          /* c0020019 (RPC_NT_INVALID_NETWORK_OPTIONS) */\r
1155    RPC_S_NO_CALL_ACTIVE,                   /* c002001a (RPC_NT_NO_CALL_ACTIVE) */\r
1156    RPC_S_CALL_FAILED,                      /* c002001b (RPC_NT_CALL_FAILED) */\r
1157    RPC_S_CALL_FAILED_DNE,                  /* c002001c (RPC_NT_CALL_FAILED_DNE) */\r
1158    RPC_S_PROTOCOL_ERROR,                   /* c002001d (RPC_NT_PROTOCOL_ERROR) */\r
1159    0,                                      /* c002001e */\r
1160    RPC_S_UNSUPPORTED_TRANS_SYN,            /* c002001f (RPC_NT_UNSUPPORTED_TRANS_SYN) */\r
1161    0,                                      /* c0020020 */\r
1162    RPC_S_UNSUPPORTED_TYPE,                 /* c0020021 (RPC_NT_UNSUPPORTED_TYPE) */\r
1163    RPC_S_INVALID_TAG,                      /* c0020022 (RPC_NT_INVALID_TAG) */\r
1164    RPC_S_INVALID_BOUND,                    /* c0020023 (RPC_NT_INVALID_BOUND) */\r
1165    RPC_S_NO_ENTRY_NAME,                    /* c0020024 (RPC_NT_NO_ENTRY_NAME) */\r
1166    RPC_S_INVALID_NAME_SYNTAX,              /* c0020025 (RPC_NT_INVALID_NAME_SYNTAX) */\r
1167    RPC_S_UNSUPPORTED_NAME_SYNTAX,          /* c0020026 (RPC_NT_UNSUPPORTED_NAME_SYNTAX) */\r
1168    0,                                      /* c0020027 */\r
1169    RPC_S_UUID_NO_ADDRESS,                  /* c0020028 (RPC_NT_UUID_NO_ADDRESS) */\r
1170    RPC_S_DUPLICATE_ENDPOINT,               /* c0020029 (RPC_NT_DUPLICATE_ENDPOINT) */\r
1171    RPC_S_UNKNOWN_AUTHN_TYPE,               /* c002002a (RPC_NT_UNKNOWN_AUTHN_TYPE) */\r
1172    RPC_S_MAX_CALLS_TOO_SMALL,              /* c002002b (RPC_NT_MAX_CALLS_TOO_SMALL) */\r
1173    RPC_S_STRING_TOO_LONG,                  /* c002002c (RPC_NT_STRING_TOO_LONG) */\r
1174    RPC_S_PROTSEQ_NOT_FOUND,                /* c002002d (RPC_NT_PROTSEQ_NOT_FOUND) */\r
1175    RPC_S_PROCNUM_OUT_OF_RANGE,             /* c002002e (RPC_NT_PROCNUM_OUT_OF_RANGE) */\r
1176    RPC_S_BINDING_HAS_NO_AUTH,              /* c002002f (RPC_NT_BINDING_HAS_NO_AUTH) */\r
1177    RPC_S_UNKNOWN_AUTHN_SERVICE,            /* c0020030 (RPC_NT_UNKNOWN_AUTHN_SERVICE) */\r
1178    RPC_S_UNKNOWN_AUTHN_LEVEL,              /* c0020031 (RPC_NT_UNKNOWN_AUTHN_LEVEL) */\r
1179    RPC_S_INVALID_AUTH_IDENTITY,            /* c0020032 (RPC_NT_INVALID_AUTH_IDENTITY) */\r
1180    RPC_S_UNKNOWN_AUTHZ_SERVICE,            /* c0020033 (RPC_NT_UNKNOWN_AUTHZ_SERVICE) */\r
1181    EPT_S_INVALID_ENTRY,                    /* c0020034 (EPT_NT_INVALID_ENTRY) */\r
1182    EPT_S_CANT_PERFORM_OP,                  /* c0020035 (EPT_NT_CANT_PERFORM_OP) */\r
1183    EPT_S_NOT_REGISTERED,                   /* c0020036 (EPT_NT_NOT_REGISTERED) */\r
1184    RPC_S_NOTHING_TO_EXPORT,                /* c0020037 (RPC_NT_NOTHING_TO_EXPORT) */\r
1185    RPC_S_INCOMPLETE_NAME,                  /* c0020038 (RPC_NT_INCOMPLETE_NAME) */\r
1186    RPC_S_INVALID_VERS_OPTION,              /* c0020039 (RPC_NT_INVALID_VERS_OPTION) */\r
1187    RPC_S_NO_MORE_MEMBERS,                  /* c002003a (RPC_NT_NO_MORE_MEMBERS) */\r
1188    RPC_S_NOT_ALL_OBJS_UNEXPORTED,          /* c002003b (RPC_NT_NOT_ALL_OBJS_UNEXPORTED) */\r
1189    RPC_S_INTERFACE_NOT_FOUND,              /* c002003c (RPC_NT_INTERFACE_NOT_FOUND) */\r
1190    RPC_S_ENTRY_ALREADY_EXISTS,             /* c002003d (RPC_NT_ENTRY_ALREADY_EXISTS) */\r
1191    RPC_S_ENTRY_NOT_FOUND,                  /* c002003e (RPC_NT_ENTRY_NOT_FOUND) */\r
1192    RPC_S_NAME_SERVICE_UNAVAILABLE,         /* c002003f (RPC_NT_NAME_SERVICE_UNAVAILABLE) */\r
1193    RPC_S_INVALID_NAF_ID,                   /* c0020040 (RPC_NT_INVALID_NAF_ID) */\r
1194    RPC_S_CANNOT_SUPPORT,                   /* c0020041 (RPC_NT_CANNOT_SUPPORT) */\r
1195    RPC_S_NO_CONTEXT_AVAILABLE,             /* c0020042 (RPC_NT_NO_CONTEXT_AVAILABLE) */\r
1196    RPC_S_INTERNAL_ERROR,                   /* c0020043 (RPC_NT_INTERNAL_ERROR) */\r
1197    RPC_S_ZERO_DIVIDE,                      /* c0020044 (RPC_NT_ZERO_DIVIDE) */\r
1198    RPC_S_ADDRESS_ERROR,                    /* c0020045 (RPC_NT_ADDRESS_ERROR) */\r
1199    RPC_S_FP_DIV_ZERO,                      /* c0020046 (RPC_NT_FP_DIV_ZERO) */\r
1200    RPC_S_FP_UNDERFLOW,                     /* c0020047 (RPC_NT_FP_UNDERFLOW) */\r
1201    RPC_S_FP_OVERFLOW,                      /* c0020048 (RPC_NT_FP_OVERFLOW) */\r
1202    RPC_S_CALL_IN_PROGRESS,                 /* c0020049 (RPC_NT_CALL_IN_PROGRESS) */\r
1203    RPC_S_NO_MORE_BINDINGS,                 /* c002004a (RPC_NT_NO_MORE_BINDINGS) */\r
1204    RPC_S_GROUP_MEMBER_NOT_FOUND,           /* c002004b (RPC_NT_GROUP_MEMBER_NOT_FOUND) */\r
1205    EPT_S_CANT_CREATE,                      /* c002004c (EPT_NT_CANT_CREATE) */\r
1206    RPC_S_INVALID_OBJECT,                   /* c002004d (RPC_NT_INVALID_OBJECT) */\r
1207    0,                                      /* c002004e */\r
1208    RPC_S_NO_INTERFACES,                    /* c002004f (RPC_NT_NO_INTERFACES) */\r
1209    RPC_S_CALL_CANCELLED,                   /* c0020050 (RPC_NT_CALL_CANCELLED) */\r
1210    RPC_S_BINDING_INCOMPLETE,               /* c0020051 (RPC_NT_BINDING_INCOMPLETE) */\r
1211    RPC_S_COMM_FAILURE,                     /* c0020052 (RPC_NT_COMM_FAILURE) */\r
1212    RPC_S_UNSUPPORTED_AUTHN_LEVEL,          /* c0020053 (RPC_NT_UNSUPPORTED_AUTHN_LEVEL) */\r
1213    RPC_S_NO_PRINC_NAME,                    /* c0020054 (RPC_NT_NO_PRINC_NAME) */\r
1214    RPC_S_NOT_RPC_ERROR,                    /* c0020055 (RPC_NT_NOT_RPC_ERROR) */\r
1215    0,                                      /* c0020056 */\r
1216    RPC_S_SEC_PKG_ERROR,                    /* c0020057 (RPC_NT_SEC_PKG_ERROR) */\r
1217    RPC_S_NOT_CANCELLED,                    /* c0020058 (RPC_NT_NOT_CANCELLED) */\r
1218    0,                                      /* c0020059 */\r
1219    0,                                      /* c002005a */\r
1220    0,                                      /* c002005b */\r
1221    0,                                      /* c002005c */\r
1222    0,                                      /* c002005d */\r
1223    0,                                      /* c002005e */\r
1224    0,                                      /* c002005f */\r
1225    0,                                      /* c0020060 */\r
1226    0,                                      /* c0020061 */\r
1227    RPC_S_INVALID_ASYNC_HANDLE,             /* c0020062 (RPC_NT_INVALID_ASYNC_HANDLE) */\r
1228    RPC_S_INVALID_ASYNC_CALL                /* c0020063 (RPC_NT_INVALID_ASYNC_CALL) */\r
1229 };\r
1230 \r
1231 static const DWORD table_c0030001[12] =\r
1232 {\r
1233    RPC_X_NO_MORE_ENTRIES,                  /* c0030001 (RPC_NT_NO_MORE_ENTRIES) */\r
1234    RPC_X_SS_CHAR_TRANS_OPEN_FAIL,          /* c0030002 (RPC_NT_SS_CHAR_TRANS_OPEN_FAIL) */\r
1235    RPC_X_SS_CHAR_TRANS_SHORT_FILE,         /* c0030003 (RPC_NT_SS_CHAR_TRANS_SHORT_FILE) */\r
1236    ERROR_INVALID_HANDLE,                   /* c0030004 (RPC_NT_SS_IN_NULL_CONTEXT) */\r
1237    ERROR_INVALID_HANDLE,                   /* c0030005 (RPC_NT_SS_CONTEXT_MISMATCH) */\r
1238    RPC_X_SS_CONTEXT_DAMAGED,               /* c0030006 (RPC_NT_SS_CONTEXT_DAMAGED) */\r
1239    RPC_X_SS_HANDLES_MISMATCH,              /* c0030007 (RPC_NT_SS_HANDLES_MISMATCH) */\r
1240    RPC_X_SS_CANNOT_GET_CALL_HANDLE,        /* c0030008 (RPC_NT_SS_CANNOT_GET_CALL_HANDLE) */\r
1241    RPC_X_NULL_REF_POINTER,                 /* c0030009 (RPC_NT_NULL_REF_POINTER) */\r
1242    RPC_X_ENUM_VALUE_OUT_OF_RANGE,          /* c003000a (RPC_NT_ENUM_VALUE_OUT_OF_RANGE) */\r
1243    RPC_X_BYTE_COUNT_TOO_SMALL,             /* c003000b (RPC_NT_BYTE_COUNT_TOO_SMALL) */\r
1244    RPC_X_BAD_STUB_DATA                     /* c003000c (RPC_NT_BAD_STUB_DATA) */\r
1245 };\r
1246 \r
1247 static const DWORD table_c0030059[9] =\r
1248 {\r
1249    RPC_X_INVALID_ES_ACTION,                /* c0030059 (RPC_NT_INVALID_ES_ACTION) */\r
1250    RPC_X_WRONG_ES_VERSION,                 /* c003005a (RPC_NT_WRONG_ES_VERSION) */\r
1251    RPC_X_WRONG_STUB_VERSION,               /* c003005b (RPC_NT_WRONG_STUB_VERSION) */\r
1252    RPC_X_INVALID_PIPE_OBJECT,              /* c003005c (RPC_NT_INVALID_PIPE_OBJECT) */\r
1253    RPC_X_WRONG_PIPE_ORDER,                 /* c003005d (RPC_NT_INVALID_PIPE_OPERATION) */\r
1254    RPC_X_WRONG_PIPE_VERSION,               /* c003005e (RPC_NT_WRONG_PIPE_VERSION) */\r
1255    RPC_X_PIPE_CLOSED,                      /* c003005f (RPC_NT_PIPE_CLOSED) */\r
1256    RPC_X_PIPE_DISCIPLINE_ERROR,            /* c0030060 (RPC_NT_PIPE_DISCIPLINE_ERROR) */\r
1257    RPC_X_PIPE_EMPTY                        /* c0030061 (RPC_NT_PIPE_EMPTY) */\r
1258 };\r
1259 \r
1260 static const DWORD table_c00a0001[54] =\r
1261 {\r
1262    ERROR_CTX_WINSTATION_NAME_INVALID,      /* c00a0001 (STATUS_CTX_WINSTATION_NAME_INVALID) */\r
1263    ERROR_CTX_INVALID_PD,                   /* c00a0002 (STATUS_CTX_INVALID_PD) */\r
1264    ERROR_CTX_PD_NOT_FOUND,                 /* c00a0003 (STATUS_CTX_PD_NOT_FOUND) */\r
1265    0,                                      /* c00a0004 */\r
1266    0,                                      /* c00a0005 */\r
1267    ERROR_CTX_CLOSE_PENDING,                /* c00a0006 (STATUS_CTX_CLOSE_PENDING) */\r
1268    ERROR_CTX_NO_OUTBUF,                    /* c00a0007 (STATUS_CTX_NO_OUTBUF) */\r
1269    ERROR_CTX_MODEM_INF_NOT_FOUND,          /* c00a0008 (STATUS_CTX_MODEM_INF_NOT_FOUND) */\r
1270    ERROR_CTX_INVALID_MODEMNAME,            /* c00a0009 (STATUS_CTX_INVALID_MODEMNAME) */\r
1271    ERROR_CTX_MODEM_RESPONSE_ERROR,         /* c00a000a (STATUS_CTX_RESPONSE_ERROR) */\r
1272    ERROR_CTX_MODEM_RESPONSE_TIMEOUT,       /* c00a000b (STATUS_CTX_MODEM_RESPONSE_TIMEOUT) */\r
1273    ERROR_CTX_MODEM_RESPONSE_NO_CARRIER,    /* c00a000c (STATUS_CTX_MODEM_RESPONSE_NO_CARRIER) */\r
1274    ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE,   /* c00a000d (STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE) */\r
1275    ERROR_CTX_MODEM_RESPONSE_BUSY,          /* c00a000e (STATUS_CTX_MODEM_RESPONSE_BUSY) */\r
1276    ERROR_CTX_MODEM_RESPONSE_VOICE,         /* c00a000f (STATUS_CTX_MODEM_RESPONSE_VOICE) */\r
1277    ERROR_CTX_TD_ERROR,                     /* c00a0010 (STATUS_CTX_TD_ERROR) */\r
1278    0,                                      /* c00a0011 */\r
1279    ERROR_CTX_LICENSE_CLIENT_INVALID,       /* c00a0012 (STATUS_CTX_LICENSE_CLIENT_INVALID) */\r
1280    ERROR_CTX_LICENSE_NOT_AVAILABLE,        /* c00a0013 (STATUS_CTX_LICENSE_NOT_AVAILABLE) */\r
1281    ERROR_CTX_LICENSE_EXPIRED,              /* c00a0014 (STATUS_CTX_LICENSE_EXPIRED) */\r
1282    ERROR_CTX_WINSTATION_NOT_FOUND,         /* c00a0015 (STATUS_CTX_WINSTATION_NOT_FOUND) */\r
1283    ERROR_CTX_WINSTATION_ALREADY_EXISTS,    /* c00a0016 (STATUS_CTX_WINSTATION_NAME_COLLISION) */\r
1284    ERROR_CTX_WINSTATION_BUSY,              /* c00a0017 (STATUS_CTX_WINSTATION_BUSY) */\r
1285    ERROR_CTX_BAD_VIDEO_MODE,               /* c00a0018 (STATUS_CTX_BAD_VIDEO_MODE) */\r
1286    0,                                      /* c00a0019 */\r
1287    0,                                      /* c00a001a */\r
1288    0,                                      /* c00a001b */\r
1289    0,                                      /* c00a001c */\r
1290    0,                                      /* c00a001d */\r
1291    0,                                      /* c00a001e */\r
1292    0,                                      /* c00a001f */\r
1293    0,                                      /* c00a0020 */\r
1294    0,                                      /* c00a0021 */\r
1295    ERROR_CTX_GRAPHICS_INVALID,             /* c00a0022 (STATUS_CTX_GRAPHICS_INVALID) */\r
1296    0,                                      /* c00a0023 */\r
1297    ERROR_CTX_NOT_CONSOLE,                  /* c00a0024 (STATUS_CTX_NOT_CONSOLE) */\r
1298    0,                                      /* c00a0025 */\r
1299    ERROR_CTX_CLIENT_QUERY_TIMEOUT,         /* c00a0026 (STATUS_CTX_CLIENT_QUERY_TIMEOUT) */\r
1300    ERROR_CTX_CONSOLE_DISCONNECT,           /* c00a0027 (STATUS_CTX_CONSOLE_DISCONNECT) */\r
1301    ERROR_CTX_CONSOLE_CONNECT,              /* c00a0028 (STATUS_CTX_CONSOLE_CONNECT) */\r
1302    0,                                      /* c00a0029 */\r
1303    ERROR_CTX_SHADOW_DENIED,                /* c00a002a (STATUS_CTX_SHADOW_DENIED) */\r
1304    ERROR_CTX_WINSTATION_ACCESS_DENIED,     /* c00a002b (STATUS_CTX_WINSTATION_ACCESS_DENIED) */\r
1305    0,                                      /* c00a002c */\r
1306    0,                                      /* c00a002d */\r
1307    ERROR_CTX_INVALID_WD,                   /* c00a002e (STATUS_CTX_INVALID_WD) */\r
1308    ERROR_CTX_WD_NOT_FOUND,                 /* c00a002f (STATUS_CTX_WD_NOT_FOUND) */\r
1309    ERROR_CTX_SHADOW_INVALID,               /* c00a0030 (STATUS_CTX_SHADOW_INVALID) */\r
1310    ERROR_CTX_SHADOW_DISABLED,              /* c00a0031 (STATUS_CTX_SHADOW_DISABLED) */\r
1311    0,                                      /* c00a0032 (STATUS_RDP_PROTOCOL_ERROR) */\r
1312    ERROR_CTX_CLIENT_LICENSE_NOT_SET,       /* c00a0033 (STATUS_CTX_CLIENT_LICENSE_NOT_SET) */\r
1313    ERROR_CTX_CLIENT_LICENSE_IN_USE,        /* c00a0034 (STATUS_CTX_CLIENT_LICENSE_IN_USE) */\r
1314    ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE,  /* c00a0035 (STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE) */\r
1315    ERROR_CTX_SHADOW_NOT_RUNNING            /* c00a0036 (STATUS_CTX_SHADOW_NOT_RUNNING) */\r
1316 };\r
1317 \r
1318 static const DWORD table_c0130001[22] =\r
1319 {\r
1320    ERROR_CLUSTER_INVALID_NODE,             /* c0130001 (STATUS_CLUSTER_INVALID_NODE) */\r
1321    ERROR_CLUSTER_NODE_EXISTS,              /* c0130002 (STATUS_CLUSTER_NODE_EXISTS) */\r
1322    ERROR_CLUSTER_JOIN_IN_PROGRESS,         /* c0130003 (STATUS_CLUSTER_JOIN_IN_PROGRESS) */\r
1323    ERROR_CLUSTER_NODE_NOT_FOUND,           /* c0130004 (STATUS_CLUSTER_NODE_NOT_FOUND) */\r
1324    ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND,     /* c0130005 (STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND) */\r
1325    ERROR_CLUSTER_NETWORK_EXISTS,           /* c0130006 (STATUS_CLUSTER_NETWORK_EXISTS) */\r
1326    ERROR_CLUSTER_NETWORK_NOT_FOUND,        /* c0130007 (STATUS_CLUSTER_NETWORK_NOT_FOUND) */\r
1327    ERROR_CLUSTER_NETINTERFACE_EXISTS,      /* c0130008 (STATUS_CLUSTER_NETINTERFACE_EXISTS) */\r
1328    ERROR_CLUSTER_NETINTERFACE_NOT_FOUND,   /* c0130009 (STATUS_CLUSTER_NETINTERFACE_NOT_FOUND) */\r
1329    ERROR_CLUSTER_INVALID_REQUEST,          /* c013000a (STATUS_CLUSTER_INVALID_REQUEST) */\r
1330    ERROR_CLUSTER_INVALID_NETWORK_PROVIDER, /* c013000b (STATUS_CLUSTER_INVALID_NETWORK_PROVIDER) */\r
1331    ERROR_CLUSTER_NODE_DOWN,                /* c013000c (STATUS_CLUSTER_NODE_DOWN) */\r
1332    ERROR_CLUSTER_NODE_UNREACHABLE,         /* c013000d (STATUS_CLUSTER_NODE_UNREACHABLE) */\r
1333    ERROR_CLUSTER_NODE_NOT_MEMBER,          /* c013000e (STATUS_CLUSTER_NODE_NOT_MEMBER) */\r
1334    ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS,     /* c013000f (STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS) */\r
1335    ERROR_CLUSTER_INVALID_NETWORK,          /* c0130010 (STATUS_CLUSTER_INVALID_NETWORK) */\r
1336    0,                                      /* c0130011 (STATUS_CLUSTER_NO_NET_ADAPTERS) */\r
1337    ERROR_CLUSTER_NODE_UP,                  /* c0130012 (STATUS_CLUSTER_NODE_UP) */\r
1338    ERROR_CLUSTER_NODE_PAUSED,              /* c0130013 (STATUS_CLUSTER_NODE_PAUSED) */\r
1339    ERROR_CLUSTER_NODE_NOT_PAUSED,          /* c0130014 (STATUS_CLUSTER_NODE_NOT_PAUSED) */\r
1340    ERROR_CLUSTER_NO_SECURITY_CONTEXT,      /* c0130015 (STATUS_CLUSTER_NO_SECURITY_CONTEXT) */\r
1341    ERROR_CLUSTER_NETWORK_NOT_INTERNAL      /* c0130016 (STATUS_CLUSTER_NETWORK_NOT_INTERNAL) */\r
1342 };\r
1343 \r
1344 static const DWORD table_c0150001[14] =\r
1345 {\r
1346    ERROR_SXS_SECTION_NOT_FOUND,            /* c0150001 (STATUS_SXS_SECTION_NOT_FOUND) */\r
1347    ERROR_SXS_CANT_GEN_ACTCTX,              /* c0150002 (STATUS_SXS_CANT_GEN_ACTCTX) */\r
1348    ERROR_SXS_INVALID_ACTCTXDATA_FORMAT,    /* c0150003 (STATUS_SXS_INVALID_ACTCTXDATA_FORMAT) */\r
1349    ERROR_SXS_ASSEMBLY_NOT_FOUND,           /* c0150004 (STATUS_SXS_ASSEMBLY_NOT_FOUND) */\r
1350    ERROR_SXS_MANIFEST_FORMAT_ERROR,        /* c0150005 (STATUS_SXS_MANIFEST_FORMAT_ERROR) */\r
1351    ERROR_SXS_MANIFEST_PARSE_ERROR,         /* c0150006 (STATUS_SXS_MANIFEST_PARSE_ERROR) */\r
1352    ERROR_SXS_ACTIVATION_CONTEXT_DISABLED,  /* c0150007 (STATUS_SXS_ACTIVATION_CONTEXT_DISABLED) */\r
1353    ERROR_SXS_KEY_NOT_FOUND,                /* c0150008 (STATUS_SXS_KEY_NOT_FOUND) */\r
1354    0,                                      /* c0150009 (STATUS_SXS_VERSION_CONFLICT) */\r
1355    ERROR_SXS_WRONG_SECTION_TYPE,           /* c015000a (STATUS_SXS_WRONG_SECTION_TYPE) */\r
1356    ERROR_SXS_THREAD_QUERIES_DISABLED,      /* c015000b (STATUS_SXS_THREAD_QUERIES_DISABLED) */\r
1357    0,                                      /* c015000c (STATUS_SXS_ASSEMBLY_MISSING) */\r
1358    0,                                      /* c015000d */\r
1359    ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET   /* c015000e (STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET) */\r
1360 };\r
1361 \r
1362 static const struct error_table error_table[] =\r
1363 {\r
1364     { 0x00000102, 0x00000122, table_00000102 },\r
1365     { 0x40000002, 0x4000000e, table_40000002 },\r
1366     { 0x40000370, 0x40000371, table_40000370 },\r
1367     { 0x40020056, 0x40020057, table_40020056 },\r
1368     { 0x400200af, 0x400200b0, table_400200af },\r
1369     { 0x80000001, 0x80000028, table_80000001 },\r
1370     { 0x80000288, 0x8000028a, table_80000288 },\r
1371     { 0x80090300, 0x80090348, table_80090300 },\r
1372     { 0x80092010, 0x80092014, table_80092010 },\r
1373     { 0x80096004, 0x80096005, table_80096004 },\r
1374     { 0x80130001, 0x80130006, table_80130001 },\r
1375     { 0xc0000001, 0xc000019c, table_c0000001 },\r
1376     { 0xc0000202, 0xc000038e, table_c0000202 },\r
1377     { 0xc0020001, 0xc0020064, table_c0020001 },\r
1378     { 0xc0030001, 0xc003000d, table_c0030001 },\r
1379     { 0xc0030059, 0xc0030062, table_c0030059 },\r
1380     { 0xc00a0001, 0xc00a0037, table_c00a0001 },\r
1381     { 0xc0130001, 0xc0130017, table_c0130001 },\r
1382     { 0xc0150001, 0xc015000f, table_c0150001 },\r
1383     { 0, 0, 0 }  /* last entry */\r
1384 };\r