ntdll pending some winerror.h fixes
[reactos.git] / reactos / regtests / winetests / ntdll / error.c
1 /*
2 * Unit tests for RtlNtStatusToDosError function
3 *
4 * Copyright (c) 2002 Andriy Palamarchuk
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #define _WIN32_WINNT 0x0501
22
23 #include <stdarg.h>
24 #include <stdio.h>
25
26 #include "ntstatus.h"
27 #define WIN32_NO_STATUS
28
29 #include "wine/test.h"
30
31 #include "windows.h"
32
33 #include "windef.h"
34 #include "winbase.h"
35 #include "rpcnterr.h"
36 #include "winreg.h"
37 #include "winternl.h"
38
39 /* FIXME!!! this test checks only mappings, defined by MSDN:
40 * http://support.microsoft.com/default.aspx?scid=KB;EN-US;q113996&
41 * It is necessary to add other mappings and to test them up to Windows XP.
42 *
43 * Some Windows platforms don't know about all the mappings, and in such
44 * cases they return somewhat strange results (Win98) or a generic error
45 * like ERROR_MR_MID_NOT_FOUND (NT4). Our tests have to know about these to
46 * not fail, but we would very much prefer Wine not to return such garbage.
47 * To you can pass the 'strict' option to this test to force it to only check
48 * results against the first listed value. This test should pass in strict
49 * mode on the latest Windows platform (currently XP) and in Wine.
50 * (of course older Windows platforms will fail to pass the strict mode)
51 */
52
53 static ULONG (WINAPI *statustodoserror)(NTSTATUS Status);
54 static int strict;
55
56 static int prepare_test(void)
57 {
58 HMODULE ntdll;
59 int argc;
60 char** argv;
61
62 ntdll = LoadLibraryA("ntdll.dll");
63 statustodoserror = (void*)GetProcAddress(ntdll, "RtlNtStatusToDosError");
64 if (!statustodoserror)
65 return 0;
66
67 argc = winetest_get_mainargs(&argv);
68 strict=(argc >= 3 && strcmp(argv[2],"strict")==0);
69 return 1;
70 }
71
72 static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
73 {
74 ULONG err;
75
76 err = statustodoserror(win_nt);
77 ok(err == win32,
78 "%s (%lx): got %ld, expected %ld\n",
79 message, win_nt, err, win32);
80 }
81
82 static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
83 {
84 ULONG err;
85
86 err = statustodoserror(win_nt);
87 ok(err == win32 ||
88 (!strict && err == ERROR_MR_MID_NOT_FOUND),
89 "%s (%lx): got %ld, expected %ld (or MID_NOT_FOUND)\n",
90 message, win_nt, err, win32);
91 }
92
93 static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
94 {
95 ULONG err;
96
97 err = statustodoserror(win_nt);
98 ok(err == win32_1 || (!strict && err == win32_2),
99 "%s (%lx): got %ld, expected %ld or %ld\n",
100 message, win_nt, err, win32_1, win32_2);
101 }
102
103 static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
104 {
105 ULONG err;
106
107 err = statustodoserror(win_nt);
108 ok(err == win32_1 ||
109 (!strict && (err == win32_2 || err == ERROR_MR_MID_NOT_FOUND)),
110 "%s (%lx): got %ld, expected %ld or %ld\n",
111 message, win_nt, err, win32_1, win32_2);
112 }
113
114 #define cmp(status, error) \
115 cmp_call(status, error, #status)
116 #define cmp2(status, error) \
117 cmp_call2(status, error, #status)
118 #define cmp3(status, error1, error2) \
119 cmp_call3(status, error1, error2, #status)
120 #define cmp4(status, error1, error2) \
121 cmp_call4(status, error1, error2, #status)
122
123 static void run_error_tests(void)
124 {
125 cmp(STATUS_DATATYPE_MISALIGNMENT, ERROR_NOACCESS);
126 cmp(STATUS_ACCESS_VIOLATION, ERROR_NOACCESS);
127 cmp2(STATUS_DATATYPE_MISALIGNMENT_ERROR, ERROR_NOACCESS);
128 cmp(STATUS_CTL_FILE_NOT_SUPPORTED, ERROR_NOT_SUPPORTED);
129 cmp(STATUS_PORT_ALREADY_SET, ERROR_INVALID_PARAMETER);
130 cmp(STATUS_SECTION_NOT_IMAGE, ERROR_INVALID_PARAMETER);
131 cmp(STATUS_BAD_WORKING_SET_LIMIT, ERROR_INVALID_PARAMETER);
132 cmp(STATUS_WORKING_SET_LIMIT_RANGE, ERROR_INVALID_PARAMETER);
133 cmp(STATUS_INCOMPATIBLE_FILE_MAP, ERROR_INVALID_PARAMETER);
134 cmp(STATUS_PORT_DISCONNECTED, ERROR_INVALID_HANDLE);
135 cmp(STATUS_NOT_LOCKED, ERROR_NOT_LOCKED);
136 cmp(STATUS_NOT_MAPPED_VIEW, ERROR_INVALID_ADDRESS);
137 cmp(STATUS_UNABLE_TO_FREE_VM, ERROR_INVALID_PARAMETER);
138 cmp(STATUS_UNABLE_TO_DELETE_SECTION, ERROR_INVALID_PARAMETER);
139 cmp(STATUS_MORE_PROCESSING_REQUIRED, ERROR_MORE_DATA);
140 cmp(STATUS_INVALID_CID, ERROR_INVALID_PARAMETER);
141 cmp(STATUS_STACK_OVERFLOW, ERROR_STACK_OVERFLOW);
142 cmp(STATUS_BAD_INITIAL_STACK, ERROR_STACK_OVERFLOW);
143 cmp(STATUS_INVALID_VOLUME_LABEL, ERROR_LABEL_TOO_LONG);
144 cmp(STATUS_SECTION_NOT_EXTENDED, ERROR_OUTOFMEMORY);
145 cmp(STATUS_NOT_MAPPED_DATA, ERROR_INVALID_ADDRESS);
146 cmp2(STATUS_NO_LDT, ERROR_INVALID_THREAD_ID);
147 cmp(STATUS_INFO_LENGTH_MISMATCH, ERROR_BAD_LENGTH);
148 cmp(STATUS_INVALID_INFO_CLASS, ERROR_INVALID_PARAMETER);
149 cmp(STATUS_SUSPEND_COUNT_EXCEEDED, ERROR_SIGNAL_REFUSED);
150 cmp(STATUS_NOTIFY_ENUM_DIR, ERROR_NOTIFY_ENUM_DIR);
151 cmp(STATUS_REGISTRY_RECOVERED, ERROR_REGISTRY_RECOVERED);
152 cmp(STATUS_REGISTRY_IO_FAILED, ERROR_REGISTRY_IO_FAILED);
153 cmp(STATUS_NOT_REGISTRY_FILE, ERROR_NOT_REGISTRY_FILE);
154 cmp(STATUS_KEY_DELETED, ERROR_KEY_DELETED);
155 cmp(STATUS_NO_LOG_SPACE, ERROR_NO_LOG_SPACE);
156 cmp(STATUS_KEY_HAS_CHILDREN, ERROR_KEY_HAS_CHILDREN);
157 cmp(STATUS_CHILD_MUST_BE_VOLATILE, ERROR_CHILD_MUST_BE_VOLATILE);
158 cmp(STATUS_REGISTRY_CORRUPT, ERROR_BADDB);
159 cmp(STATUS_DLL_NOT_FOUND, ERROR_MOD_NOT_FOUND);
160 cmp(STATUS_DLL_INIT_FAILED, ERROR_DLL_INIT_FAILED);
161 cmp2(STATUS_INVALID_IMPORT_OF_NON_DLL, ERROR_INVALID_IMPORT_OF_NON_DLL);
162 cmp(STATUS_ORDINAL_NOT_FOUND, ERROR_INVALID_ORDINAL);
163 cmp(STATUS_DRIVER_ORDINAL_NOT_FOUND, ERROR_INVALID_ORDINAL);
164 cmp2(STATUS_DRIVER_UNABLE_TO_LOAD, ERROR_BAD_DRIVER);
165 cmp(STATUS_ENTRYPOINT_NOT_FOUND, ERROR_PROC_NOT_FOUND);
166 cmp(STATUS_DRIVER_ENTRYPOINT_NOT_FOUND, ERROR_PROC_NOT_FOUND);
167 cmp(STATUS_PENDING, ERROR_IO_PENDING);
168 cmp(STATUS_MORE_ENTRIES, ERROR_MORE_DATA);
169 cmp(STATUS_INTEGER_OVERFLOW, ERROR_ARITHMETIC_OVERFLOW);
170 cmp(STATUS_BUFFER_OVERFLOW, ERROR_MORE_DATA);
171 cmp(STATUS_NO_MORE_FILES, ERROR_NO_MORE_FILES);
172 cmp(STATUS_NO_INHERITANCE, ERROR_NO_INHERITANCE);
173 cmp(STATUS_NO_MORE_EAS, ERROR_NO_MORE_ITEMS);
174 cmp(STATUS_NO_MORE_ENTRIES, ERROR_NO_MORE_ITEMS);
175 cmp(STATUS_GUIDS_EXHAUSTED, ERROR_NO_MORE_ITEMS);
176 cmp(STATUS_AGENTS_EXHAUSTED, ERROR_NO_MORE_ITEMS);
177 cmp(STATUS_UNSUCCESSFUL, ERROR_GEN_FAILURE);
178 cmp(STATUS_TOO_MANY_LINKS, ERROR_TOO_MANY_LINKS);
179 cmp(STATUS_NOT_IMPLEMENTED, ERROR_INVALID_FUNCTION);
180 cmp(STATUS_ILLEGAL_FUNCTION, ERROR_INVALID_FUNCTION);
181 cmp(STATUS_IN_PAGE_ERROR, ERROR_SWAPERROR);
182 cmp(STATUS_PAGEFILE_QUOTA, ERROR_PAGEFILE_QUOTA);
183 cmp(STATUS_COMMITMENT_LIMIT, ERROR_COMMITMENT_LIMIT);
184 cmp(STATUS_SECTION_TOO_BIG, ERROR_NOT_ENOUGH_MEMORY);
185 cmp(RPC_NT_SS_IN_NULL_CONTEXT, ERROR_INVALID_HANDLE);
186 cmp(RPC_NT_INVALID_BINDING, ERROR_INVALID_HANDLE);
187 cmp(STATUS_INVALID_HANDLE, ERROR_INVALID_HANDLE);
188 cmp(STATUS_OBJECT_TYPE_MISMATCH, ERROR_INVALID_HANDLE);
189 cmp(STATUS_FILE_CLOSED, ERROR_INVALID_HANDLE);
190 cmp(STATUS_INVALID_PORT_HANDLE, ERROR_INVALID_HANDLE);
191 cmp(STATUS_HANDLE_NOT_CLOSABLE, ERROR_INVALID_HANDLE);
192 cmp(STATUS_NOT_COMMITTED, ERROR_INVALID_ADDRESS);
193 cmp(STATUS_PARTIAL_COPY, ERROR_PARTIAL_COPY);
194 cmp(STATUS_LPC_REPLY_LOST, ERROR_INTERNAL_ERROR);
195 cmp(STATUS_INVALID_PARAMETER, ERROR_INVALID_PARAMETER);
196 cmp(STATUS_INVALID_PARAMETER_1, ERROR_INVALID_PARAMETER);
197 cmp(STATUS_INVALID_PARAMETER_2, ERROR_INVALID_PARAMETER);
198 cmp(STATUS_INVALID_PARAMETER_3, ERROR_INVALID_PARAMETER);
199 cmp(STATUS_INVALID_PARAMETER_4, ERROR_INVALID_PARAMETER);
200 cmp(STATUS_INVALID_PARAMETER_5, ERROR_INVALID_PARAMETER);
201 cmp(STATUS_INVALID_PARAMETER_6, ERROR_INVALID_PARAMETER);
202 cmp(STATUS_INVALID_PARAMETER_7, ERROR_INVALID_PARAMETER);
203 cmp(STATUS_INVALID_PARAMETER_8, ERROR_INVALID_PARAMETER);
204 cmp(STATUS_INVALID_PARAMETER_9, ERROR_INVALID_PARAMETER);
205 cmp(STATUS_INVALID_PARAMETER_10, ERROR_INVALID_PARAMETER);
206 cmp(STATUS_INVALID_PARAMETER_11, ERROR_INVALID_PARAMETER);
207 cmp(STATUS_INVALID_PARAMETER_12, ERROR_INVALID_PARAMETER);
208 cmp(STATUS_INVALID_PARAMETER_MIX, ERROR_INVALID_PARAMETER);
209 cmp(STATUS_INVALID_PAGE_PROTECTION, ERROR_INVALID_PARAMETER);
210 cmp(STATUS_SECTION_PROTECTION, ERROR_INVALID_PARAMETER);
211 cmp(STATUS_RESOURCE_DATA_NOT_FOUND, ERROR_RESOURCE_DATA_NOT_FOUND);
212 cmp(STATUS_RESOURCE_TYPE_NOT_FOUND, ERROR_RESOURCE_TYPE_NOT_FOUND);
213 cmp(STATUS_RESOURCE_NAME_NOT_FOUND, ERROR_RESOURCE_NAME_NOT_FOUND);
214 cmp(STATUS_RESOURCE_LANG_NOT_FOUND, ERROR_RESOURCE_LANG_NOT_FOUND);
215 cmp(STATUS_NO_SUCH_DEVICE, ERROR_FILE_NOT_FOUND);
216 cmp(STATUS_NO_SUCH_FILE, ERROR_FILE_NOT_FOUND);
217 cmp(STATUS_INVALID_DEVICE_REQUEST, ERROR_INVALID_FUNCTION);
218 cmp2(STATUS_VOLUME_NOT_UPGRADED, ERROR_INVALID_FUNCTION);
219 cmp(STATUS_END_OF_FILE, ERROR_HANDLE_EOF);
220 cmp(STATUS_FILE_FORCED_CLOSED, ERROR_HANDLE_EOF);
221 cmp(STATUS_WRONG_VOLUME, ERROR_WRONG_DISK);
222 cmp(STATUS_NO_MEDIA, ERROR_NO_MEDIA_IN_DRIVE);
223 cmp(STATUS_NO_MEDIA_IN_DEVICE, ERROR_NOT_READY);
224 cmp(STATUS_VOLUME_DISMOUNTED, ERROR_NOT_READY);
225 cmp(STATUS_NONEXISTENT_SECTOR, ERROR_SECTOR_NOT_FOUND);
226 cmp(STATUS_WORKING_SET_QUOTA, ERROR_WORKING_SET_QUOTA);
227 cmp(STATUS_NO_MEMORY, ERROR_NOT_ENOUGH_MEMORY);
228 cmp(STATUS_CONFLICTING_ADDRESSES, ERROR_INVALID_ADDRESS);
229 cmp(STATUS_INVALID_SYSTEM_SERVICE, ERROR_INVALID_FUNCTION);
230 cmp(STATUS_THREAD_IS_TERMINATING, ERROR_ACCESS_DENIED);
231 cmp(STATUS_PROCESS_IS_TERMINATING, ERROR_ACCESS_DENIED);
232 cmp(STATUS_INVALID_LOCK_SEQUENCE, ERROR_ACCESS_DENIED);
233 cmp(STATUS_INVALID_VIEW_SIZE, ERROR_ACCESS_DENIED);
234 cmp(STATUS_ALREADY_COMMITTED, ERROR_ACCESS_DENIED);
235 cmp(STATUS_ACCESS_DENIED, ERROR_ACCESS_DENIED);
236 cmp(STATUS_FILE_IS_A_DIRECTORY, ERROR_ACCESS_DENIED);
237 cmp(STATUS_CANNOT_DELETE, ERROR_ACCESS_DENIED);
238 cmp(STATUS_INVALID_COMPUTER_NAME, ERROR_INVALID_COMPUTERNAME);
239 cmp(STATUS_FILE_DELETED, ERROR_ACCESS_DENIED);
240 cmp2(STATUS_FILE_RENAMED, ERROR_ACCESS_DENIED);
241 cmp(STATUS_DELETE_PENDING, ERROR_ACCESS_DENIED);
242 cmp(STATUS_PORT_CONNECTION_REFUSED, ERROR_ACCESS_DENIED);
243 cmp(STATUS_NO_SUCH_PRIVILEGE, ERROR_NO_SUCH_PRIVILEGE);
244 cmp(STATUS_PRIVILEGE_NOT_HELD, ERROR_PRIVILEGE_NOT_HELD);
245 cmp(STATUS_CANNOT_IMPERSONATE, ERROR_CANNOT_IMPERSONATE);
246 cmp(STATUS_LOGON_FAILURE, ERROR_LOGON_FAILURE);
247 cmp2(STATUS_MUTUAL_AUTHENTICATION_FAILED, ERROR_MUTUAL_AUTH_FAILED);
248 cmp2(STATUS_TIME_DIFFERENCE_AT_DC, ERROR_TIME_SKEW);
249 cmp2(STATUS_PKINIT_FAILURE, ERROR_PKINIT_FAILURE);
250 cmp2(STATUS_SMARTCARD_SUBSYSTEM_FAILURE, ERROR_SMARTCARD_SUBSYSTEM_FAILURE);
251 cmp2(STATUS_DOWNGRADE_DETECTED, ERROR_DOWNGRADE_DETECTED);
252 cmp2(STATUS_SMARTCARD_CERT_REVOKED, SEC_E_SMARTCARD_CERT_REVOKED);
253 cmp2(STATUS_ISSUING_CA_UNTRUSTED, SEC_E_ISSUING_CA_UNTRUSTED);
254 cmp2(STATUS_REVOCATION_OFFLINE_C, SEC_E_REVOCATION_OFFLINE_C);
255 cmp2(STATUS_PKINIT_CLIENT_FAILURE, SEC_E_PKINIT_CLIENT_FAILURE);
256 cmp2(STATUS_SMARTCARD_CERT_EXPIRED, SEC_E_SMARTCARD_CERT_EXPIRED);
257 cmp2(STATUS_NO_KERB_KEY, SEC_E_NO_KERB_KEY);
258 cmp2(STATUS_CURRENT_DOMAIN_NOT_ALLOWED, ERROR_CURRENT_DOMAIN_NOT_ALLOWED);
259 cmp2(STATUS_SMARTCARD_WRONG_PIN, SCARD_W_WRONG_CHV);
260 cmp2(STATUS_SMARTCARD_CARD_BLOCKED, SCARD_W_CHV_BLOCKED);
261 cmp2(STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED,SCARD_W_CARD_NOT_AUTHENTICATED);
262 cmp2(STATUS_SMARTCARD_NO_CARD, SCARD_E_NO_SMARTCARD);
263 cmp2(STATUS_SMARTCARD_NO_KEY_CONTAINER, NTE_NO_KEY);
264 cmp2(STATUS_SMARTCARD_NO_CERTIFICATE, SCARD_E_NO_SUCH_CERTIFICATE);
265 cmp2(STATUS_SMARTCARD_NO_KEYSET, NTE_BAD_KEYSET);
266 cmp2(STATUS_SMARTCARD_IO_ERROR, SCARD_E_COMM_DATA_LOST);
267 cmp(STATUS_ACCOUNT_RESTRICTION, ERROR_ACCOUNT_RESTRICTION);
268 cmp(STATUS_INVALID_LOGON_HOURS, ERROR_INVALID_LOGON_HOURS);
269 cmp(STATUS_INVALID_WORKSTATION, ERROR_INVALID_WORKSTATION);
270 cmp(STATUS_BUFFER_TOO_SMALL, ERROR_INSUFFICIENT_BUFFER);
271 cmp(STATUS_UNABLE_TO_DECOMMIT_VM, ERROR_INVALID_ADDRESS);
272 cmp(STATUS_DISK_CORRUPT_ERROR, ERROR_DISK_CORRUPT);
273 cmp(STATUS_FT_MISSING_MEMBER, ERROR_IO_DEVICE);
274 cmp(STATUS_FT_ORPHANING, ERROR_IO_DEVICE);
275 cmp(STATUS_VARIABLE_NOT_FOUND, ERROR_ENVVAR_NOT_FOUND);
276 cmp(STATUS_OBJECT_NAME_INVALID, ERROR_INVALID_NAME);
277 cmp(STATUS_OBJECT_NAME_NOT_FOUND, ERROR_FILE_NOT_FOUND);
278 cmp(STATUS_OBJECT_NAME_COLLISION, ERROR_ALREADY_EXISTS);
279 cmp(STATUS_OBJECT_PATH_INVALID, ERROR_BAD_PATHNAME);
280 cmp(STATUS_OBJECT_PATH_NOT_FOUND, ERROR_PATH_NOT_FOUND);
281 cmp(STATUS_DFS_EXIT_PATH_FOUND, ERROR_PATH_NOT_FOUND);
282 cmp2(STATUS_DFS_UNAVAILABLE, ERROR_CONNECTION_UNAVAIL);
283 cmp(STATUS_OBJECT_PATH_SYNTAX_BAD, ERROR_BAD_PATHNAME);
284 cmp(STATUS_NAME_TOO_LONG, ERROR_FILENAME_EXCED_RANGE);
285 cmp(STATUS_DATA_OVERRUN, ERROR_IO_DEVICE);
286 cmp(STATUS_DATA_LATE_ERROR, ERROR_IO_DEVICE);
287 cmp(STATUS_DATA_ERROR, ERROR_CRC);
288 cmp(STATUS_CRC_ERROR, ERROR_CRC);
289 cmp(STATUS_SHARING_VIOLATION, ERROR_SHARING_VIOLATION);
290 cmp(STATUS_QUOTA_EXCEEDED, ERROR_NOT_ENOUGH_QUOTA);
291 cmp(STATUS_MUTANT_NOT_OWNED, ERROR_NOT_OWNER);
292 cmp(STATUS_SEMAPHORE_LIMIT_EXCEEDED, ERROR_TOO_MANY_POSTS);
293 cmp(STATUS_DISK_FULL, ERROR_DISK_FULL);
294 cmp(STATUS_LOCK_NOT_GRANTED, ERROR_LOCK_VIOLATION);
295 cmp(STATUS_FILE_LOCK_CONFLICT, ERROR_LOCK_VIOLATION);
296 cmp(STATUS_NOT_A_DIRECTORY, ERROR_DIRECTORY);
297 cmp2(STATUS_CANNOT_MAKE, ERROR_CANNOT_MAKE);
298 cmp(STATUS_UNKNOWN_REVISION, ERROR_UNKNOWN_REVISION);
299 cmp(STATUS_REVISION_MISMATCH, ERROR_REVISION_MISMATCH);
300 cmp(STATUS_INVALID_OWNER, ERROR_INVALID_OWNER);
301 cmp(STATUS_INVALID_PRIMARY_GROUP, ERROR_INVALID_PRIMARY_GROUP);
302 cmp(STATUS_NO_IMPERSONATION_TOKEN, ERROR_NO_IMPERSONATION_TOKEN);
303 cmp(STATUS_CANT_DISABLE_MANDATORY, ERROR_CANT_DISABLE_MANDATORY);
304 cmp(STATUS_NO_LOGON_SERVERS, ERROR_NO_LOGON_SERVERS);
305 cmp(STATUS_DOMAIN_CONTROLLER_NOT_FOUND, ERROR_DOMAIN_CONTROLLER_NOT_FOUND);
306 cmp(STATUS_NO_SUCH_LOGON_SESSION, ERROR_NO_SUCH_LOGON_SESSION);
307 cmp(STATUS_INVALID_ACCOUNT_NAME, ERROR_INVALID_ACCOUNT_NAME);
308 cmp(STATUS_USER_EXISTS, ERROR_USER_EXISTS);
309 cmp(STATUS_NO_SUCH_USER, ERROR_NO_SUCH_USER);
310 cmp(STATUS_GROUP_EXISTS, ERROR_GROUP_EXISTS);
311 cmp(STATUS_NO_SUCH_GROUP, ERROR_NO_SUCH_GROUP);
312 cmp(STATUS_SPECIAL_GROUP, ERROR_SPECIAL_GROUP);
313 cmp(STATUS_MEMBER_IN_GROUP, ERROR_MEMBER_IN_GROUP);
314 cmp(STATUS_MEMBER_NOT_IN_GROUP, ERROR_MEMBER_NOT_IN_GROUP);
315 cmp(STATUS_LAST_ADMIN, ERROR_LAST_ADMIN);
316 cmp(STATUS_WRONG_PASSWORD, ERROR_INVALID_PASSWORD);
317 cmp(STATUS_WRONG_PASSWORD_CORE, ERROR_INVALID_PASSWORD);
318 cmp(STATUS_ILL_FORMED_PASSWORD, ERROR_ILL_FORMED_PASSWORD);
319 cmp(STATUS_PASSWORD_RESTRICTION, ERROR_PASSWORD_RESTRICTION);
320 cmp(STATUS_PASSWORD_EXPIRED, ERROR_PASSWORD_EXPIRED);
321 cmp(STATUS_PASSWORD_MUST_CHANGE, ERROR_PASSWORD_MUST_CHANGE);
322 cmp(STATUS_ACCOUNT_DISABLED, ERROR_ACCOUNT_DISABLED);
323 cmp(STATUS_ACCOUNT_LOCKED_OUT, ERROR_ACCOUNT_LOCKED_OUT);
324 cmp(STATUS_NONE_MAPPED, ERROR_NONE_MAPPED);
325 cmp(STATUS_TOO_MANY_LUIDS_REQUESTED, ERROR_TOO_MANY_LUIDS_REQUESTED);
326 cmp(STATUS_LUIDS_EXHAUSTED, ERROR_LUIDS_EXHAUSTED);
327 cmp(STATUS_INVALID_SUB_AUTHORITY, ERROR_INVALID_SUB_AUTHORITY);
328 cmp(STATUS_INVALID_ACL, ERROR_INVALID_ACL);
329 cmp(STATUS_INVALID_SID, ERROR_INVALID_SID);
330 cmp(STATUS_INVALID_SECURITY_DESCR, ERROR_INVALID_SECURITY_DESCR);
331 cmp(STATUS_PROCEDURE_NOT_FOUND, ERROR_PROC_NOT_FOUND);
332 cmp(STATUS_BAD_INITIAL_PC, ERROR_BAD_EXE_FORMAT);
333 cmp(STATUS_INVALID_FILE_FOR_SECTION, ERROR_BAD_EXE_FORMAT);
334 cmp(STATUS_INVALID_IMAGE_FORMAT, ERROR_BAD_EXE_FORMAT);
335 cmp(STATUS_IMAGE_MP_UP_MISMATCH, ERROR_BAD_EXE_FORMAT);
336 cmp(STATUS_INVALID_IMAGE_NOT_MZ, ERROR_BAD_EXE_FORMAT);
337 cmp(STATUS_IMAGE_CHECKSUM_MISMATCH, ERROR_BAD_EXE_FORMAT);
338 cmp(STATUS_INVALID_IMAGE_PROTECT, ERROR_BAD_EXE_FORMAT);
339 cmp(STATUS_INVALID_IMAGE_LE_FORMAT, ERROR_BAD_EXE_FORMAT);
340 cmp(STATUS_INVALID_IMAGE_NE_FORMAT, ERROR_BAD_EXE_FORMAT);
341 cmp(STATUS_INVALID_IMAGE_WIN_16, ERROR_BAD_EXE_FORMAT);
342 cmp2(STATUS_INVALID_IMAGE_WIN_32, ERROR_BAD_EXE_FORMAT);
343 cmp2(STATUS_INVALID_IMAGE_WIN_64, ERROR_BAD_EXE_FORMAT);
344 cmp(STATUS_NO_TOKEN, ERROR_NO_TOKEN);
345 cmp(STATUS_RANGE_NOT_LOCKED, ERROR_NOT_LOCKED);
346 cmp(STATUS_SERVER_DISABLED, ERROR_SERVER_DISABLED);
347 cmp(STATUS_SERVER_NOT_DISABLED, ERROR_SERVER_NOT_DISABLED);
348 cmp(STATUS_INVALID_ID_AUTHORITY, ERROR_INVALID_ID_AUTHORITY);
349 cmp(STATUS_ALLOTTED_SPACE_EXCEEDED, ERROR_ALLOTTED_SPACE_EXCEEDED);
350 cmp(STATUS_TOO_MANY_PAGING_FILES, ERROR_NOT_ENOUGH_MEMORY);
351 cmp(STATUS_INSUFFICIENT_RESOURCES, ERROR_NO_SYSTEM_RESOURCES);
352 cmp(STATUS_INSUFF_SERVER_RESOURCES, ERROR_NOT_ENOUGH_SERVER_MEMORY);
353 cmp(STATUS_FILE_INVALID, ERROR_FILE_INVALID);
354 cmp(STATUS_MAPPED_FILE_SIZE_ZERO, ERROR_FILE_INVALID);
355 cmp(STATUS_DEVICE_PAPER_EMPTY, ERROR_OUT_OF_PAPER);
356 cmp(STATUS_DEVICE_POWERED_OFF, ERROR_NOT_READY);
357 cmp(STATUS_DEVICE_OFF_LINE, ERROR_NOT_READY);
358 cmp(STATUS_DEVICE_DATA_ERROR, ERROR_CRC);
359 cmp(STATUS_DEVICE_NOT_READY, ERROR_NOT_READY);
360 cmp3(STATUS_DEVICE_NOT_CONNECTED, ERROR_DEVICE_NOT_CONNECTED, ERROR_NOT_READY);
361 cmp(STATUS_DEVICE_POWER_FAILURE, ERROR_NOT_READY);
362 cmp2(STATUS_NOT_FOUND, ERROR_NOT_FOUND);
363 cmp2(STATUS_NO_MATCH, ERROR_NO_MATCH);
364 cmp2(STATUS_PROPSET_NOT_FOUND, ERROR_SET_NOT_FOUND);
365 cmp(STATUS_DEVICE_BUSY, ERROR_BUSY);
366 cmp(STATUS_FREE_VM_NOT_AT_BASE, ERROR_INVALID_ADDRESS);
367 cmp(STATUS_MEMORY_NOT_ALLOCATED, ERROR_INVALID_ADDRESS);
368 cmp(STATUS_NOT_SAME_DEVICE, ERROR_NOT_SAME_DEVICE);
369 cmp(STATUS_NOT_SUPPORTED, ERROR_NOT_SUPPORTED);
370 cmp(STATUS_REMOTE_NOT_LISTENING, ERROR_REM_NOT_LIST);
371 cmp(STATUS_DUPLICATE_NAME, ERROR_DUP_NAME);
372 cmp(STATUS_BAD_NETWORK_PATH, ERROR_BAD_NETPATH);
373 cmp(STATUS_NETWORK_BUSY, ERROR_NETWORK_BUSY);
374 cmp2(STATUS_ONLY_IF_CONNECTED, ERROR_ONLY_IF_CONNECTED);
375 cmp(STATUS_DEVICE_DOES_NOT_EXIST, ERROR_DEV_NOT_EXIST);
376 cmp(STATUS_TOO_MANY_COMMANDS, ERROR_TOO_MANY_CMDS);
377 cmp(STATUS_ADAPTER_HARDWARE_ERROR, ERROR_ADAP_HDW_ERR);
378 cmp(STATUS_REDIRECTOR_NOT_STARTED, ERROR_PATH_NOT_FOUND);
379 cmp(STATUS_INVALID_EA_NAME, ERROR_INVALID_EA_NAME);
380 cmp(STATUS_EA_LIST_INCONSISTENT, ERROR_EA_LIST_INCONSISTENT);
381 cmp(STATUS_EA_TOO_LARGE, ERROR_EA_LIST_INCONSISTENT);
382 cmp(STATUS_INVALID_EA_FLAG, ERROR_EA_LIST_INCONSISTENT);
383 cmp2(STATUS_EAS_NOT_SUPPORTED, ERROR_EAS_NOT_SUPPORTED);
384 cmp(STATUS_FILE_CORRUPT_ERROR, ERROR_FILE_CORRUPT);
385 cmp(STATUS_EA_CORRUPT_ERROR, ERROR_FILE_CORRUPT);
386 cmp(STATUS_NONEXISTENT_EA_ENTRY, ERROR_FILE_CORRUPT);
387 cmp(STATUS_NO_EAS_ON_FILE, ERROR_FILE_CORRUPT);
388 cmp2(STATUS_NOT_A_REPARSE_POINT, ERROR_NOT_A_REPARSE_POINT);
389 cmp4(STATUS_IO_REPARSE_TAG_INVALID, ERROR_REPARSE_TAG_INVALID, ERROR_INVALID_PARAMETER);
390 cmp4(STATUS_IO_REPARSE_TAG_MISMATCH, ERROR_REPARSE_TAG_MISMATCH, ERROR_INVALID_PARAMETER);
391 cmp2(STATUS_IO_REPARSE_TAG_NOT_HANDLED, ERROR_CANT_ACCESS_FILE);
392 cmp2(STATUS_REPARSE_POINT_NOT_RESOLVED, ERROR_CANT_RESOLVE_FILENAME);
393 cmp2(STATUS_DIRECTORY_IS_A_REPARSE_POINT, ERROR_BAD_PATHNAME);
394 cmp2(STATUS_REPARSE_ATTRIBUTE_CONFLICT, ERROR_REPARSE_ATTRIBUTE_CONFLICT);
395 cmp4(STATUS_IO_REPARSE_DATA_INVALID, ERROR_INVALID_REPARSE_DATA, ERROR_INVALID_PARAMETER);
396 cmp2(STATUS_FILE_IS_OFFLINE, ERROR_FILE_OFFLINE);
397 cmp2(STATUS_REMOTE_STORAGE_NOT_ACTIVE, ERROR_REMOTE_STORAGE_NOT_ACTIVE);
398 cmp2(STATUS_REMOTE_STORAGE_MEDIA_ERROR, ERROR_REMOTE_STORAGE_MEDIA_ERROR);
399 cmp2(STATUS_NO_TRACKING_SERVICE, ERROR_NO_TRACKING_SERVICE);
400 cmp2(STATUS_JOURNAL_DELETE_IN_PROGRESS, ERROR_JOURNAL_DELETE_IN_PROGRESS);
401 cmp2(STATUS_JOURNAL_NOT_ACTIVE, ERROR_JOURNAL_NOT_ACTIVE);
402 cmp2(STATUS_JOURNAL_ENTRY_DELETED, ERROR_JOURNAL_ENTRY_DELETED);
403 cmp(STATUS_INVALID_NETWORK_RESPONSE, ERROR_BAD_NET_RESP);
404 cmp(STATUS_USER_SESSION_DELETED, ERROR_UNEXP_NET_ERR);
405 cmp(STATUS_UNEXPECTED_NETWORK_ERROR, ERROR_UNEXP_NET_ERR);
406 cmp(STATUS_BAD_REMOTE_ADAPTER, ERROR_BAD_REM_ADAP);
407 cmp(STATUS_PRINT_QUEUE_FULL, ERROR_PRINTQ_FULL);
408 cmp(STATUS_NO_SPOOL_SPACE, ERROR_NO_SPOOL_SPACE);
409 cmp(STATUS_PRINT_CANCELLED, ERROR_PRINT_CANCELLED);
410 cmp(STATUS_NETWORK_NAME_DELETED, ERROR_NETNAME_DELETED);
411 cmp(STATUS_NETWORK_ACCESS_DENIED, ERROR_NETWORK_ACCESS_DENIED);
412 cmp(STATUS_BAD_DEVICE_TYPE, ERROR_BAD_DEV_TYPE);
413 cmp(STATUS_BAD_NETWORK_NAME, ERROR_BAD_NET_NAME);
414 cmp(STATUS_TOO_MANY_NAMES, ERROR_TOO_MANY_NAMES);
415 cmp(STATUS_TOO_MANY_GUIDS_REQUESTED, ERROR_TOO_MANY_NAMES);
416 cmp(STATUS_TOO_MANY_ADDRESSES, ERROR_TOO_MANY_NAMES);
417 cmp(STATUS_TOO_MANY_NODES, ERROR_TOO_MANY_NAMES);
418 cmp(STATUS_TOO_MANY_SESSIONS, ERROR_TOO_MANY_SESS);
419 cmp(STATUS_SHARING_PAUSED, ERROR_SHARING_PAUSED);
420 cmp(STATUS_REQUEST_NOT_ACCEPTED, ERROR_REQ_NOT_ACCEP);
421 cmp(STATUS_REDIRECTOR_PAUSED, ERROR_REDIR_PAUSED);
422 cmp(STATUS_NET_WRITE_FAULT, ERROR_NET_WRITE_FAULT);
423 cmp(STATUS_VIRTUAL_CIRCUIT_CLOSED, ERROR_VC_DISCONNECTED);
424 cmp(STATUS_INVALID_PIPE_STATE, ERROR_BAD_PIPE);
425 cmp(STATUS_INVALID_READ_MODE, ERROR_BAD_PIPE);
426 cmp(STATUS_PIPE_CLOSING, ERROR_NO_DATA);
427 cmp(STATUS_PIPE_EMPTY, ERROR_NO_DATA);
428 cmp(STATUS_PIPE_CONNECTED, ERROR_PIPE_CONNECTED);
429 cmp(STATUS_PIPE_DISCONNECTED, ERROR_PIPE_NOT_CONNECTED);
430 cmp(STATUS_PIPE_LISTENING, ERROR_PIPE_LISTENING);
431 cmp(STATUS_PIPE_NOT_AVAILABLE, ERROR_PIPE_BUSY);
432 cmp(STATUS_INSTANCE_NOT_AVAILABLE, ERROR_PIPE_BUSY);
433 cmp(STATUS_PIPE_BUSY, ERROR_PIPE_BUSY);
434 cmp(STATUS_PIPE_BROKEN, ERROR_BROKEN_PIPE);
435 cmp(STATUS_DIRECTORY_NOT_EMPTY, ERROR_DIR_NOT_EMPTY);
436 cmp(STATUS_TOO_MANY_OPENED_FILES, ERROR_TOO_MANY_OPEN_FILES);
437 cmp(STATUS_IO_TIMEOUT, ERROR_SEM_TIMEOUT);
438 cmp(STATUS_CANCELLED, ERROR_OPERATION_ABORTED);
439 cmp(STATUS_UNRECOGNIZED_MEDIA, ERROR_UNRECOGNIZED_MEDIA);
440 cmp(STATUS_INVALID_LEVEL, ERROR_INVALID_LEVEL);
441 cmp(STATUS_UNRECOGNIZED_VOLUME, ERROR_UNRECOGNIZED_VOLUME);
442 cmp(STATUS_MEDIA_WRITE_PROTECTED, ERROR_WRITE_PROTECT);
443 cmp(STATUS_TOO_LATE, ERROR_WRITE_PROTECT);
444 cmp(STATUS_SUCCESS, NO_ERROR);
445 cmp(STATUS_FULLSCREEN_MODE, ERROR_FULLSCREEN_MODE);
446 cmp(STATUS_END_OF_MEDIA, ERROR_END_OF_MEDIA);
447 cmp(STATUS_EOM_OVERFLOW, ERROR_EOM_OVERFLOW);
448 cmp(STATUS_BEGINNING_OF_MEDIA, ERROR_BEGINNING_OF_MEDIA);
449 cmp(STATUS_MEDIA_CHANGED, ERROR_MEDIA_CHANGED);
450 cmp(STATUS_BUS_RESET, ERROR_BUS_RESET);
451 cmp(STATUS_FILEMARK_DETECTED, ERROR_FILEMARK_DETECTED);
452 cmp(STATUS_SETMARK_DETECTED, ERROR_SETMARK_DETECTED);
453 cmp(STATUS_NO_DATA_DETECTED, ERROR_NO_DATA_DETECTED);
454 cmp(STATUS_PARTITION_FAILURE, ERROR_PARTITION_FAILURE);
455 cmp(STATUS_INVALID_BLOCK_LENGTH, ERROR_INVALID_BLOCK_LENGTH);
456 cmp(STATUS_DEVICE_NOT_PARTITIONED, ERROR_DEVICE_NOT_PARTITIONED);
457 cmp(STATUS_UNABLE_TO_LOCK_MEDIA, ERROR_UNABLE_TO_LOCK_MEDIA);
458 cmp(STATUS_UNABLE_TO_UNLOAD_MEDIA, ERROR_UNABLE_TO_UNLOAD_MEDIA);
459 cmp(STATUS_UNMAPPABLE_CHARACTER, ERROR_NO_UNICODE_TRANSLATION);
460 cmp(STATUS_NOT_ALL_ASSIGNED, ERROR_NOT_ALL_ASSIGNED);
461 cmp(STATUS_SOME_NOT_MAPPED, ERROR_SOME_NOT_MAPPED);
462 cmp(STATUS_NO_QUOTAS_FOR_ACCOUNT, ERROR_NO_QUOTAS_FOR_ACCOUNT);
463 cmp(STATUS_LOCAL_USER_SESSION_KEY, ERROR_LOCAL_USER_SESSION_KEY);
464 cmp(STATUS_NULL_LM_PASSWORD, ERROR_NULL_LM_PASSWORD);
465 cmp(STATUS_BAD_INHERITANCE_ACL, ERROR_BAD_INHERITANCE_ACL);
466 cmp(STATUS_INVALID_GROUP_ATTRIBUTES, ERROR_INVALID_GROUP_ATTRIBUTES);
467 cmp(STATUS_BAD_IMPERSONATION_LEVEL, ERROR_BAD_IMPERSONATION_LEVEL);
468 cmp(STATUS_CANT_OPEN_ANONYMOUS, ERROR_CANT_OPEN_ANONYMOUS);
469 cmp(STATUS_BAD_VALIDATION_CLASS, ERROR_BAD_VALIDATION_CLASS);
470 cmp(STATUS_BAD_TOKEN_TYPE, ERROR_BAD_TOKEN_TYPE);
471 cmp2(STATUS_BAD_MASTER_BOOT_RECORD, ERROR_INVALID_PARAMETER);
472 cmp(STATUS_NO_SECURITY_ON_OBJECT, ERROR_NO_SECURITY_ON_OBJECT);
473 cmp(STATUS_CANT_ACCESS_DOMAIN_INFO, ERROR_CANT_ACCESS_DOMAIN_INFO);
474 cmp(STATUS_INVALID_SERVER_STATE, ERROR_INVALID_SERVER_STATE);
475 cmp(STATUS_INVALID_DOMAIN_STATE, ERROR_INVALID_DOMAIN_STATE);
476 cmp(STATUS_INVALID_DOMAIN_ROLE, ERROR_INVALID_DOMAIN_ROLE);
477 cmp(STATUS_NO_SUCH_DOMAIN, ERROR_NO_SUCH_DOMAIN);
478 cmp(STATUS_DOMAIN_EXISTS, ERROR_DOMAIN_EXISTS);
479 cmp(STATUS_DOMAIN_LIMIT_EXCEEDED, ERROR_DOMAIN_LIMIT_EXCEEDED);
480 cmp2(STATUS_OPLOCK_NOT_GRANTED, ERROR_OPLOCK_NOT_GRANTED);
481 cmp2(STATUS_INVALID_OPLOCK_PROTOCOL, ERROR_INVALID_OPLOCK_PROTOCOL);
482 cmp(STATUS_INTERNAL_DB_CORRUPTION, ERROR_INTERNAL_DB_CORRUPTION);
483 cmp(STATUS_INTERNAL_ERROR, ERROR_INTERNAL_ERROR);
484 cmp(STATUS_GENERIC_NOT_MAPPED, ERROR_GENERIC_NOT_MAPPED);
485 cmp(STATUS_BAD_DESCRIPTOR_FORMAT, ERROR_BAD_DESCRIPTOR_FORMAT);
486 cmp(STATUS_NOT_LOGON_PROCESS, ERROR_NOT_LOGON_PROCESS);
487 cmp(STATUS_LOGON_SESSION_EXISTS, ERROR_LOGON_SESSION_EXISTS);
488 cmp(STATUS_NO_SUCH_PACKAGE, ERROR_NO_SUCH_PACKAGE);
489 cmp(STATUS_BAD_LOGON_SESSION_STATE, ERROR_BAD_LOGON_SESSION_STATE);
490 cmp(STATUS_LOGON_SESSION_COLLISION, ERROR_LOGON_SESSION_COLLISION);
491 cmp(STATUS_INVALID_LOGON_TYPE, ERROR_INVALID_LOGON_TYPE);
492 cmp(STATUS_RXACT_INVALID_STATE, ERROR_RXACT_INVALID_STATE);
493 cmp(STATUS_RXACT_COMMIT_FAILURE, ERROR_RXACT_COMMIT_FAILURE);
494 cmp(STATUS_SPECIAL_ACCOUNT, ERROR_SPECIAL_ACCOUNT);
495 cmp(STATUS_SPECIAL_USER, ERROR_SPECIAL_USER);
496 cmp(STATUS_MEMBERS_PRIMARY_GROUP, ERROR_MEMBERS_PRIMARY_GROUP);
497 cmp(STATUS_TOKEN_ALREADY_IN_USE, ERROR_TOKEN_ALREADY_IN_USE);
498 cmp(STATUS_NO_SUCH_ALIAS, ERROR_NO_SUCH_ALIAS);
499 cmp(STATUS_MEMBER_NOT_IN_ALIAS, ERROR_MEMBER_NOT_IN_ALIAS);
500 cmp(STATUS_MEMBER_IN_ALIAS, ERROR_MEMBER_IN_ALIAS);
501 cmp(STATUS_ALIAS_EXISTS, ERROR_ALIAS_EXISTS);
502 cmp(STATUS_LOGON_NOT_GRANTED, ERROR_LOGON_NOT_GRANTED);
503 cmp(STATUS_TOO_MANY_SECRETS, ERROR_TOO_MANY_SECRETS);
504 cmp(STATUS_SECRET_TOO_LONG, ERROR_SECRET_TOO_LONG);
505 cmp(STATUS_INTERNAL_DB_ERROR, ERROR_INTERNAL_DB_ERROR);
506 cmp(STATUS_TOO_MANY_CONTEXT_IDS, ERROR_TOO_MANY_CONTEXT_IDS);
507 cmp(STATUS_LOGON_TYPE_NOT_GRANTED, ERROR_LOGON_TYPE_NOT_GRANTED);
508 cmp(STATUS_NT_CROSS_ENCRYPTION_REQUIRED, ERROR_NT_CROSS_ENCRYPTION_REQUIRED);
509 cmp(STATUS_NO_SUCH_MEMBER, ERROR_NO_SUCH_MEMBER);
510 cmp(STATUS_INVALID_MEMBER, ERROR_INVALID_MEMBER);
511 cmp(STATUS_TOO_MANY_SIDS, ERROR_TOO_MANY_SIDS);
512 cmp(STATUS_LM_CROSS_ENCRYPTION_REQUIRED, ERROR_LM_CROSS_ENCRYPTION_REQUIRED);
513 cmp(STATUS_MESSAGE_NOT_FOUND, ERROR_MR_MID_NOT_FOUND);
514 cmp(STATUS_LOCAL_DISCONNECT, ERROR_NETNAME_DELETED);
515 cmp(STATUS_REMOTE_DISCONNECT, ERROR_NETNAME_DELETED);
516 cmp(STATUS_REMOTE_RESOURCES, ERROR_REM_NOT_LIST);
517 cmp(STATUS_LINK_FAILED, ERROR_UNEXP_NET_ERR);
518 cmp(STATUS_LINK_TIMEOUT, ERROR_UNEXP_NET_ERR);
519 cmp(STATUS_INVALID_CONNECTION, ERROR_UNEXP_NET_ERR);
520 cmp(STATUS_INVALID_ADDRESS, ERROR_UNEXP_NET_ERR);
521 cmp(STATUS_IO_DEVICE_ERROR, ERROR_IO_DEVICE);
522 cmp(STATUS_DEVICE_PROTOCOL_ERROR, ERROR_IO_DEVICE);
523 cmp(STATUS_DRIVER_INTERNAL_ERROR, ERROR_IO_DEVICE);
524 cmp(STATUS_INVALID_DEVICE_STATE, ERROR_BAD_COMMAND);
525 cmp(STATUS_DEVICE_CONFIGURATION_ERROR, ERROR_INVALID_PARAMETER);
526 cmp2(STATUS_SOURCE_ELEMENT_EMPTY, ERROR_SOURCE_ELEMENT_EMPTY);
527 cmp2(STATUS_DESTINATION_ELEMENT_FULL, ERROR_DESTINATION_ELEMENT_FULL);
528 cmp2(STATUS_ILLEGAL_ELEMENT_ADDRESS, ERROR_ILLEGAL_ELEMENT_ADDRESS);
529 cmp2(STATUS_MAGAZINE_NOT_PRESENT, ERROR_MAGAZINE_NOT_PRESENT);
530 cmp2(STATUS_REINITIALIZATION_NEEDED, ERROR_DEVICE_REINITIALIZATION_NEEDED);
531 cmp2(STATUS_DEVICE_REQUIRES_CLEANING, ERROR_DEVICE_REQUIRES_CLEANING);
532 cmp2(STATUS_DEVICE_DOOR_OPEN, ERROR_DEVICE_DOOR_OPEN);
533 cmp2(STATUS_TRANSPORT_FULL, ERROR_TRANSPORT_FULL);
534 cmp2(STATUS_CLEANER_CARTRIDGE_INSTALLED, ERROR_CLEANER_CARTRIDGE_INSTALLED);
535 cmp2(STATUS_REG_NAT_CONSUMPTION, ERROR_REG_NAT_CONSUMPTION);
536 cmp4(STATUS_ENCRYPTION_FAILED, ERROR_ACCESS_DENIED, ERROR_ENCRYPTION_FAILED);
537 cmp4(STATUS_DECRYPTION_FAILED, ERROR_ACCESS_DENIED, ERROR_DECRYPTION_FAILED);
538 cmp4(STATUS_NO_RECOVERY_POLICY, ERROR_ACCESS_DENIED, ERROR_NO_RECOVERY_POLICY);
539 cmp4(STATUS_NO_EFS, ERROR_ACCESS_DENIED, ERROR_NO_EFS);
540 cmp4(STATUS_WRONG_EFS, ERROR_ACCESS_DENIED, ERROR_WRONG_EFS);
541 cmp4(STATUS_NO_USER_KEYS, ERROR_ACCESS_DENIED, ERROR_NO_USER_KEYS);
542 cmp2(STATUS_FILE_NOT_ENCRYPTED, ERROR_FILE_NOT_ENCRYPTED);
543 cmp2(STATUS_NOT_EXPORT_FORMAT, ERROR_NOT_EXPORT_FORMAT);
544 cmp2(STATUS_FILE_ENCRYPTED, ERROR_FILE_ENCRYPTED);
545 cmp2(STATUS_EFS_ALG_BLOB_TOO_BIG, ERROR_EFS_ALG_BLOB_TOO_BIG);
546 cmp(STATUS_INVALID_USER_BUFFER, ERROR_INVALID_USER_BUFFER);
547 cmp(STATUS_SERIAL_NO_DEVICE_INITED, ERROR_SERIAL_NO_DEVICE);
548 cmp(STATUS_SHARED_IRQ_BUSY, ERROR_IRQ_BUSY);
549 cmp(STATUS_SERIAL_MORE_WRITES, ERROR_MORE_WRITES);
550 cmp(STATUS_SERIAL_COUNTER_TIMEOUT, ERROR_COUNTER_TIMEOUT);
551 cmp(STATUS_FLOPPY_ID_MARK_NOT_FOUND, ERROR_FLOPPY_ID_MARK_NOT_FOUND);
552 cmp(STATUS_FLOPPY_WRONG_CYLINDER, ERROR_FLOPPY_WRONG_CYLINDER);
553 cmp(STATUS_FLOPPY_UNKNOWN_ERROR, ERROR_FLOPPY_UNKNOWN_ERROR);
554 cmp(STATUS_FLOPPY_BAD_REGISTERS, ERROR_FLOPPY_BAD_REGISTERS);
555 cmp(STATUS_DISK_RECALIBRATE_FAILED, ERROR_DISK_RECALIBRATE_FAILED);
556 cmp(STATUS_DISK_OPERATION_FAILED, ERROR_DISK_OPERATION_FAILED);
557 cmp(STATUS_DISK_RESET_FAILED, ERROR_DISK_RESET_FAILED);
558 cmp(STATUS_EVENTLOG_FILE_CORRUPT, ERROR_EVENTLOG_FILE_CORRUPT);
559 cmp(STATUS_EVENTLOG_CANT_START, ERROR_EVENTLOG_CANT_START);
560 cmp(STATUS_NETLOGON_NOT_STARTED, ERROR_NETLOGON_NOT_STARTED);
561 cmp(STATUS_ACCOUNT_EXPIRED, ERROR_ACCOUNT_EXPIRED);
562 cmp(STATUS_NETWORK_CREDENTIAL_CONFLICT, ERROR_SESSION_CREDENTIAL_CONFLICT);
563 cmp(STATUS_REMOTE_SESSION_LIMIT, ERROR_REMOTE_SESSION_LIMIT_EXCEEDED);
564 cmp(STATUS_INVALID_BUFFER_SIZE, ERROR_INVALID_USER_BUFFER);
565 cmp(STATUS_INVALID_ADDRESS_COMPONENT, ERROR_INVALID_NETNAME);
566 cmp(STATUS_INVALID_ADDRESS_WILDCARD, ERROR_INVALID_NETNAME);
567 cmp(STATUS_ADDRESS_ALREADY_EXISTS, ERROR_DUP_NAME);
568 cmp(STATUS_ADDRESS_CLOSED, ERROR_NETNAME_DELETED);
569 cmp(STATUS_CONNECTION_DISCONNECTED, ERROR_NETNAME_DELETED);
570 cmp(STATUS_CONNECTION_RESET, ERROR_NETNAME_DELETED);
571 cmp(STATUS_TRANSACTION_ABORTED, ERROR_UNEXP_NET_ERR);
572 cmp(STATUS_TRANSACTION_TIMED_OUT, ERROR_UNEXP_NET_ERR);
573 cmp(STATUS_TRANSACTION_NO_RELEASE, ERROR_UNEXP_NET_ERR);
574 cmp(STATUS_TRANSACTION_NO_MATCH, ERROR_UNEXP_NET_ERR);
575 cmp(STATUS_TRANSACTION_RESPONDED, ERROR_UNEXP_NET_ERR);
576 cmp(STATUS_TRANSACTION_INVALID_ID, ERROR_UNEXP_NET_ERR);
577 cmp(STATUS_TRANSACTION_INVALID_TYPE, ERROR_UNEXP_NET_ERR);
578 cmp(STATUS_NOT_SERVER_SESSION, ERROR_NOT_SUPPORTED);
579 cmp(STATUS_NOT_CLIENT_SESSION, ERROR_NOT_SUPPORTED);
580 cmp(STATUS_USER_MAPPED_FILE, ERROR_USER_MAPPED_FILE);
581 cmp(STATUS_PLUGPLAY_NO_DEVICE, ERROR_SERVICE_DISABLED);
582 cmp2(STATUS_WMI_GUID_NOT_FOUND, ERROR_WMI_GUID_NOT_FOUND);
583 cmp2(STATUS_WMI_INSTANCE_NOT_FOUND, ERROR_WMI_INSTANCE_NOT_FOUND);
584 cmp2(STATUS_WMI_ITEMID_NOT_FOUND, ERROR_WMI_ITEMID_NOT_FOUND);
585 cmp2(STATUS_WMI_TRY_AGAIN, ERROR_WMI_TRY_AGAIN);
586 cmp2(STATUS_WMI_READ_ONLY, ERROR_WMI_READ_ONLY);
587 cmp2(STATUS_WMI_SET_FAILURE, ERROR_WMI_SET_FAILURE);
588 cmp2(STATUS_WMI_NOT_SUPPORTED, ERROR_NOT_SUPPORTED);
589 cmp2(STATUS_WMI_GUID_DISCONNECTED, ERROR_WMI_GUID_DISCONNECTED);
590 cmp2(STATUS_WMI_ALREADY_DISABLED, ERROR_WMI_ALREADY_DISABLED);
591 cmp2(STATUS_WMI_ALREADY_ENABLED, ERROR_WMI_ALREADY_ENABLED);
592 cmp2(STATUS_COPY_PROTECTION_FAILURE, STG_E_STATUS_COPY_PROTECTION_FAILURE);
593 cmp2(STATUS_CSS_AUTHENTICATION_FAILURE, STG_E_CSS_AUTHENTICATION_FAILURE);
594 cmp2(STATUS_CSS_KEY_NOT_PRESENT, STG_E_CSS_KEY_NOT_PRESENT);
595 cmp2(STATUS_CSS_KEY_NOT_ESTABLISHED, STG_E_CSS_KEY_NOT_ESTABLISHED);
596 cmp2(STATUS_CSS_SCRAMBLED_SECTOR, STG_E_CSS_SCRAMBLED_SECTOR);
597 cmp2(STATUS_CSS_REGION_MISMATCH, STG_E_CSS_REGION_MISMATCH);
598 cmp2(STATUS_CSS_RESETS_EXHAUSTED, STG_E_RESETS_EXHAUSTED);
599 cmp(RPC_NT_SERVER_UNAVAILABLE, RPC_S_SERVER_UNAVAILABLE);
600 cmp(RPC_NT_INVALID_STRING_BINDING, RPC_S_INVALID_STRING_BINDING);
601 cmp(RPC_NT_WRONG_KIND_OF_BINDING, RPC_S_WRONG_KIND_OF_BINDING);
602 cmp(RPC_NT_PROTSEQ_NOT_SUPPORTED, RPC_S_PROTSEQ_NOT_SUPPORTED);
603 cmp(RPC_NT_INVALID_RPC_PROTSEQ, RPC_S_INVALID_RPC_PROTSEQ);
604 cmp(RPC_NT_INVALID_STRING_UUID, RPC_S_INVALID_STRING_UUID);
605 cmp(RPC_NT_INVALID_ENDPOINT_FORMAT, RPC_S_INVALID_ENDPOINT_FORMAT);
606 cmp(RPC_NT_INVALID_NET_ADDR, RPC_S_INVALID_NET_ADDR);
607 cmp(RPC_NT_NO_ENDPOINT_FOUND, RPC_S_NO_ENDPOINT_FOUND);
608 cmp(RPC_NT_INVALID_TIMEOUT, RPC_S_INVALID_TIMEOUT);
609 cmp(RPC_NT_OBJECT_NOT_FOUND, RPC_S_OBJECT_NOT_FOUND);
610 cmp(RPC_NT_ALREADY_REGISTERED, RPC_S_ALREADY_REGISTERED);
611 cmp(RPC_NT_TYPE_ALREADY_REGISTERED, RPC_S_TYPE_ALREADY_REGISTERED);
612 cmp(RPC_NT_ALREADY_LISTENING, RPC_S_ALREADY_LISTENING);
613 cmp(RPC_NT_NO_PROTSEQS_REGISTERED, RPC_S_NO_PROTSEQS_REGISTERED);
614 cmp(RPC_NT_NOT_LISTENING, RPC_S_NOT_LISTENING);
615 cmp(RPC_NT_UNKNOWN_MGR_TYPE, RPC_S_UNKNOWN_MGR_TYPE);
616 cmp(RPC_NT_UNKNOWN_IF, RPC_S_UNKNOWN_IF);
617 cmp(RPC_NT_NO_BINDINGS, RPC_S_NO_BINDINGS);
618 cmp(RPC_NT_NO_MORE_BINDINGS, RPC_S_NO_MORE_BINDINGS);
619 cmp(RPC_NT_NO_PROTSEQS, RPC_S_NO_PROTSEQS);
620 cmp(RPC_NT_CANT_CREATE_ENDPOINT, RPC_S_CANT_CREATE_ENDPOINT);
621 cmp(RPC_NT_OUT_OF_RESOURCES, RPC_S_OUT_OF_RESOURCES);
622 cmp(RPC_NT_SERVER_TOO_BUSY, RPC_S_SERVER_TOO_BUSY);
623 cmp(RPC_NT_INVALID_NETWORK_OPTIONS, RPC_S_INVALID_NETWORK_OPTIONS);
624 cmp(RPC_NT_NO_CALL_ACTIVE, RPC_S_NO_CALL_ACTIVE);
625 cmp(RPC_NT_CALL_FAILED, RPC_S_CALL_FAILED);
626 cmp(RPC_NT_CALL_FAILED_DNE, RPC_S_CALL_FAILED_DNE);
627 cmp(RPC_NT_PROTOCOL_ERROR, RPC_S_PROTOCOL_ERROR);
628 cmp(RPC_NT_UNSUPPORTED_TRANS_SYN, RPC_S_UNSUPPORTED_TRANS_SYN);
629 cmp(RPC_NT_UNSUPPORTED_TYPE, RPC_S_UNSUPPORTED_TYPE);
630 cmp(RPC_NT_INVALID_TAG, RPC_S_INVALID_TAG);
631 cmp(RPC_NT_INVALID_BOUND, RPC_S_INVALID_BOUND);
632 cmp(RPC_NT_NO_ENTRY_NAME, RPC_S_NO_ENTRY_NAME);
633 cmp(RPC_NT_INVALID_NAME_SYNTAX, RPC_S_INVALID_NAME_SYNTAX);
634 cmp(RPC_NT_UNSUPPORTED_NAME_SYNTAX, RPC_S_UNSUPPORTED_NAME_SYNTAX);
635 cmp(RPC_NT_UUID_NO_ADDRESS, RPC_S_UUID_NO_ADDRESS);
636 cmp(RPC_NT_DUPLICATE_ENDPOINT, RPC_S_DUPLICATE_ENDPOINT);
637 cmp(RPC_NT_UNKNOWN_AUTHN_TYPE, RPC_S_UNKNOWN_AUTHN_TYPE);
638 cmp(RPC_NT_MAX_CALLS_TOO_SMALL, RPC_S_MAX_CALLS_TOO_SMALL);
639 cmp(RPC_NT_STRING_TOO_LONG, RPC_S_STRING_TOO_LONG);
640 cmp(RPC_NT_PROTSEQ_NOT_FOUND, RPC_S_PROTSEQ_NOT_FOUND);
641 cmp(RPC_NT_PROCNUM_OUT_OF_RANGE, RPC_S_PROCNUM_OUT_OF_RANGE);
642 cmp(RPC_NT_BINDING_HAS_NO_AUTH, RPC_S_BINDING_HAS_NO_AUTH);
643 cmp(RPC_NT_UNKNOWN_AUTHN_SERVICE, RPC_S_UNKNOWN_AUTHN_SERVICE);
644 cmp(RPC_NT_UNKNOWN_AUTHN_LEVEL, RPC_S_UNKNOWN_AUTHN_LEVEL);
645 cmp(RPC_NT_INVALID_AUTH_IDENTITY, RPC_S_INVALID_AUTH_IDENTITY);
646 cmp(RPC_NT_UNKNOWN_AUTHZ_SERVICE, RPC_S_UNKNOWN_AUTHZ_SERVICE);
647 cmp(EPT_NT_INVALID_ENTRY, EPT_S_INVALID_ENTRY);
648 cmp(EPT_NT_CANT_PERFORM_OP, EPT_S_CANT_PERFORM_OP);
649 cmp(EPT_NT_NOT_REGISTERED, EPT_S_NOT_REGISTERED);
650 cmp(RPC_NT_NOTHING_TO_EXPORT, RPC_S_NOTHING_TO_EXPORT);
651 cmp(RPC_NT_INCOMPLETE_NAME, RPC_S_INCOMPLETE_NAME);
652 cmp(RPC_NT_INVALID_VERS_OPTION, RPC_S_INVALID_VERS_OPTION);
653 cmp(RPC_NT_NO_MORE_MEMBERS, RPC_S_NO_MORE_MEMBERS);
654 cmp(RPC_NT_NOT_ALL_OBJS_UNEXPORTED, RPC_S_NOT_ALL_OBJS_UNEXPORTED);
655 cmp(RPC_NT_INTERFACE_NOT_FOUND, RPC_S_INTERFACE_NOT_FOUND);
656 cmp(RPC_NT_ENTRY_ALREADY_EXISTS, RPC_S_ENTRY_ALREADY_EXISTS);
657 cmp(RPC_NT_ENTRY_NOT_FOUND, RPC_S_ENTRY_NOT_FOUND);
658 cmp(RPC_NT_NAME_SERVICE_UNAVAILABLE, RPC_S_NAME_SERVICE_UNAVAILABLE);
659 cmp(RPC_NT_INVALID_NAF_ID, RPC_S_INVALID_NAF_ID);
660 cmp(RPC_NT_CANNOT_SUPPORT, RPC_S_CANNOT_SUPPORT);
661 cmp(RPC_NT_NO_CONTEXT_AVAILABLE, RPC_S_NO_CONTEXT_AVAILABLE);
662 cmp(RPC_NT_INTERNAL_ERROR, RPC_S_INTERNAL_ERROR);
663 cmp(RPC_NT_ZERO_DIVIDE, RPC_S_ZERO_DIVIDE);
664 cmp(RPC_NT_ADDRESS_ERROR, RPC_S_ADDRESS_ERROR);
665 cmp(RPC_NT_FP_DIV_ZERO, RPC_S_FP_DIV_ZERO);
666 cmp(RPC_NT_FP_UNDERFLOW, RPC_S_FP_UNDERFLOW);
667 cmp(RPC_NT_FP_OVERFLOW, RPC_S_FP_OVERFLOW);
668 cmp(RPC_NT_NO_MORE_ENTRIES, RPC_X_NO_MORE_ENTRIES);
669 cmp(RPC_NT_SS_CHAR_TRANS_OPEN_FAIL, RPC_X_SS_CHAR_TRANS_OPEN_FAIL);
670 cmp(RPC_NT_SS_CHAR_TRANS_SHORT_FILE, RPC_X_SS_CHAR_TRANS_SHORT_FILE);
671 cmp(RPC_NT_SS_CONTEXT_MISMATCH, ERROR_INVALID_HANDLE);
672 cmp(RPC_NT_SS_CONTEXT_DAMAGED, RPC_X_SS_CONTEXT_DAMAGED);
673 cmp(RPC_NT_SS_HANDLES_MISMATCH, RPC_X_SS_HANDLES_MISMATCH);
674 cmp(RPC_NT_SS_CANNOT_GET_CALL_HANDLE, RPC_X_SS_CANNOT_GET_CALL_HANDLE);
675 cmp(RPC_NT_NULL_REF_POINTER, RPC_X_NULL_REF_POINTER);
676 cmp(RPC_NT_ENUM_VALUE_OUT_OF_RANGE, RPC_X_ENUM_VALUE_OUT_OF_RANGE);
677 cmp(RPC_NT_BYTE_COUNT_TOO_SMALL, RPC_X_BYTE_COUNT_TOO_SMALL);
678 cmp(RPC_NT_BAD_STUB_DATA, RPC_X_BAD_STUB_DATA);
679 cmp(RPC_NT_INVALID_OBJECT, RPC_S_INVALID_OBJECT);
680 cmp(STATUS_NO_TRUST_LSA_SECRET, ERROR_NO_TRUST_LSA_SECRET);
681 cmp(STATUS_NO_TRUST_SAM_ACCOUNT, ERROR_NO_TRUST_SAM_ACCOUNT);
682 cmp(STATUS_TRUSTED_DOMAIN_FAILURE, ERROR_TRUSTED_DOMAIN_FAILURE);
683 cmp(STATUS_TRUSTED_RELATIONSHIP_FAILURE, ERROR_TRUSTED_RELATIONSHIP_FAILURE);
684 cmp(STATUS_TRUST_FAILURE, ERROR_TRUST_FAILURE);
685 cmp(RPC_NT_CALL_IN_PROGRESS, RPC_S_CALL_IN_PROGRESS);
686 cmp(STATUS_LOG_FILE_FULL, ERROR_LOG_FILE_FULL);
687 cmp(STATUS_EVENTLOG_FILE_CHANGED, ERROR_EVENTLOG_FILE_CHANGED);
688 cmp(STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT, ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT);
689 cmp(STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT);
690 cmp(STATUS_NOLOGON_SERVER_TRUST_ACCOUNT, ERROR_NOLOGON_SERVER_TRUST_ACCOUNT);
691 cmp(STATUS_DOMAIN_TRUST_INCONSISTENT, ERROR_DOMAIN_TRUST_INCONSISTENT);
692 cmp(STATUS_NO_USER_SESSION_KEY, ERROR_NO_USER_SESSION_KEY);
693 cmp(STATUS_POSSIBLE_DEADLOCK, ERROR_POSSIBLE_DEADLOCK);
694 cmp(STATUS_IMAGE_ALREADY_LOADED, ERROR_SERVICE_ALREADY_RUNNING);
695 cmp(RPC_NT_GROUP_MEMBER_NOT_FOUND, RPC_S_GROUP_MEMBER_NOT_FOUND);
696 cmp(RPC_NT_NO_INTERFACES, RPC_S_NO_INTERFACES);
697 cmp(RPC_NT_CALL_CANCELLED, RPC_S_CALL_CANCELLED);
698 cmp(RPC_NT_BINDING_INCOMPLETE, RPC_S_BINDING_INCOMPLETE);
699 cmp(RPC_NT_COMM_FAILURE, RPC_S_COMM_FAILURE);
700 cmp(RPC_NT_UNSUPPORTED_AUTHN_LEVEL, RPC_S_UNSUPPORTED_AUTHN_LEVEL);
701 cmp(RPC_NT_NO_PRINC_NAME, RPC_S_NO_PRINC_NAME);
702 cmp(RPC_NT_NOT_RPC_ERROR, RPC_S_NOT_RPC_ERROR);
703 cmp(RPC_NT_UUID_LOCAL_ONLY, RPC_S_UUID_LOCAL_ONLY);
704 cmp(RPC_NT_SEC_PKG_ERROR, RPC_S_SEC_PKG_ERROR);
705 cmp(RPC_NT_NOT_CANCELLED, RPC_S_NOT_CANCELLED);
706 cmp(RPC_NT_INVALID_ES_ACTION, RPC_X_INVALID_ES_ACTION);
707 cmp(RPC_NT_WRONG_ES_VERSION, RPC_X_WRONG_ES_VERSION);
708 cmp(RPC_NT_WRONG_STUB_VERSION, RPC_X_WRONG_STUB_VERSION);
709 cmp(RPC_NT_INVALID_PIPE_OBJECT, RPC_X_INVALID_PIPE_OBJECT);
710 cmp(RPC_NT_INVALID_PIPE_OPERATION, RPC_X_INVALID_PIPE_OPERATION);
711 cmp(RPC_NT_WRONG_PIPE_VERSION, RPC_X_WRONG_PIPE_VERSION);
712 cmp(EPT_NT_CANT_CREATE, EPT_S_CANT_CREATE);
713 cmp(RPC_NT_SEND_INCOMPLETE, RPC_S_SEND_INCOMPLETE);
714 cmp2(RPC_NT_INVALID_ASYNC_HANDLE, RPC_S_INVALID_ASYNC_HANDLE);
715 cmp2(RPC_NT_INVALID_ASYNC_CALL, RPC_S_INVALID_ASYNC_CALL);
716 cmp2(RPC_NT_PIPE_CLOSED, RPC_X_PIPE_CLOSED);
717 cmp2(RPC_NT_PIPE_EMPTY, RPC_X_PIPE_EMPTY);
718 cmp2(RPC_NT_PIPE_DISCIPLINE_ERROR, RPC_X_PIPE_DISCIPLINE_ERROR);
719 cmp(STATUS_NO_BROWSER_SERVERS_FOUND, ERROR_NO_BROWSER_SERVERS_FOUND);
720 cmp(STATUS_MAPPED_ALIGNMENT, ERROR_MAPPED_ALIGNMENT);
721 cmp(STATUS_CONNECTION_IN_USE, ERROR_DEVICE_IN_USE);
722 cmp(STATUS_VERIFY_REQUIRED, ERROR_MEDIA_CHANGED);
723 cmp(STATUS_ALREADY_DISCONNECTED, ERROR_ACTIVE_CONNECTIONS);
724 cmp(STATUS_CONNECTION_REFUSED, ERROR_CONNECTION_REFUSED);
725 cmp(STATUS_GRACEFUL_DISCONNECT, ERROR_GRACEFUL_DISCONNECT);
726 cmp(STATUS_ADDRESS_ALREADY_ASSOCIATED, ERROR_ADDRESS_ALREADY_ASSOCIATED);
727 cmp(STATUS_ADDRESS_NOT_ASSOCIATED, ERROR_ADDRESS_NOT_ASSOCIATED);
728 cmp(STATUS_CONNECTION_INVALID, ERROR_CONNECTION_INVALID);
729 cmp(STATUS_CONNECTION_ACTIVE, ERROR_CONNECTION_ACTIVE);
730 cmp(STATUS_NETWORK_UNREACHABLE, ERROR_NETWORK_UNREACHABLE);
731 cmp(STATUS_HOST_UNREACHABLE, ERROR_HOST_UNREACHABLE);
732 cmp2(STATUS_HOST_DOWN, ERROR_HOST_DOWN);
733 cmp(STATUS_PROTOCOL_UNREACHABLE, ERROR_PROTOCOL_UNREACHABLE);
734 cmp(STATUS_PORT_UNREACHABLE, ERROR_PORT_UNREACHABLE);
735 cmp(STATUS_REQUEST_ABORTED, ERROR_REQUEST_ABORTED);
736 cmp(STATUS_CONNECTION_ABORTED, ERROR_CONNECTION_ABORTED);
737 cmp(STATUS_CONNECTION_COUNT_LIMIT, ERROR_CONNECTION_COUNT_LIMIT);
738 cmp(STATUS_PATH_NOT_COVERED, ERROR_HOST_UNREACHABLE);
739 cmp(STATUS_LOGIN_TIME_RESTRICTION, ERROR_LOGIN_TIME_RESTRICTION);
740 cmp(STATUS_LOGIN_WKSTA_RESTRICTION, ERROR_LOGIN_WKSTA_RESTRICTION);
741 cmp(STATUS_LICENSE_QUOTA_EXCEEDED, ERROR_LICENSE_QUOTA_EXCEEDED);
742 cmp(STATUS_RESOURCE_NOT_OWNED, ERROR_NOT_OWNER);
743 cmp(STATUS_DUPLICATE_OBJECTID, STATUS_DUPLICATE_OBJECTID);
744 cmp(STATUS_OBJECTID_EXISTS, STATUS_OBJECTID_EXISTS);
745 cmp2(STATUS_OBJECTID_NOT_FOUND, ERROR_FILE_NOT_FOUND);
746 cmp2(STATUS_MFT_TOO_FRAGMENTED, ERROR_DISK_TOO_FRAGMENTED);
747 cmp(SEC_E_INSUFFICIENT_MEMORY, ERROR_NO_SYSTEM_RESOURCES);
748 cmp(SEC_E_INVALID_HANDLE, ERROR_INVALID_HANDLE);
749 cmp(SEC_E_UNSUPPORTED_FUNCTION, ERROR_INVALID_FUNCTION);
750 cmp(SEC_E_TARGET_UNKNOWN, ERROR_BAD_NETPATH);
751 cmp(SEC_E_INTERNAL_ERROR, ERROR_INTERNAL_ERROR);
752 cmp(SEC_E_SECPKG_NOT_FOUND, ERROR_NO_SUCH_PACKAGE);
753 cmp(SEC_E_NOT_OWNER, ERROR_NOT_OWNER);
754 cmp(SEC_E_CANNOT_INSTALL, ERROR_NO_SUCH_PACKAGE);
755 cmp(SEC_E_INVALID_TOKEN, ERROR_INVALID_PARAMETER);
756 cmp(SEC_E_CANNOT_PACK, ERROR_INVALID_PARAMETER);
757 cmp(SEC_E_QOP_NOT_SUPPORTED, ERROR_NOT_SUPPORTED);
758 cmp(SEC_E_NO_IMPERSONATION, ERROR_CANNOT_IMPERSONATE);
759 cmp2(SEC_E_MULTIPLE_ACCOUNTS, ERROR_CANNOT_IMPERSONATE);
760 cmp(SEC_E_LOGON_DENIED, ERROR_LOGON_FAILURE);
761 cmp(SEC_E_UNKNOWN_CREDENTIALS, ERROR_INVALID_PARAMETER);
762 cmp2(SEC_E_INCOMPLETE_CREDENTIALS, ERROR_INVALID_PARAMETER);
763 cmp(SEC_E_NO_CREDENTIALS, ERROR_NO_SUCH_LOGON_SESSION);
764 cmp(SEC_E_MESSAGE_ALTERED, ERROR_ACCESS_DENIED);
765 cmp(SEC_E_OUT_OF_SEQUENCE, ERROR_ACCESS_DENIED);
766 cmp(SEC_E_NO_AUTHENTICATING_AUTHORITY, ERROR_NO_LOGON_SERVERS);
767 cmp(SEC_E_BAD_PKGID, ERROR_NO_SUCH_PACKAGE);
768 cmp4(SEC_E_WRONG_PRINCIPAL, ERROR_WRONG_TARGET_NAME, 1462);
769 cmp2(SEC_E_INCOMPLETE_MESSAGE, ERROR_INVALID_USER_BUFFER);
770 cmp2(SEC_E_BUFFER_TOO_SMALL, ERROR_INSUFFICIENT_BUFFER);
771 cmp2(SEC_E_UNTRUSTED_ROOT, ERROR_TRUST_FAILURE);
772 cmp2(SEC_E_ILLEGAL_MESSAGE, ERROR_INVALID_PARAMETER);
773 cmp2(SEC_E_CERT_UNKNOWN, ERROR_INVALID_PARAMETER);
774 cmp2(SEC_E_CERT_EXPIRED, ERROR_PASSWORD_EXPIRED);
775 cmp2(SEC_E_ENCRYPT_FAILURE, ERROR_ENCRYPTION_FAILED);
776 cmp2(SEC_E_DECRYPT_FAILURE, ERROR_DECRYPTION_FAILED);
777 cmp2(SEC_E_ALGORITHM_MISMATCH, ERROR_INVALID_FUNCTION);
778 cmp2(SEC_E_CONTEXT_EXPIRED, ERROR_CONTEXT_EXPIRED);
779 cmp2(STATUS_BAD_BINDINGS, SEC_E_BAD_BINDINGS);
780 cmp2(TRUST_E_CERT_SIGNATURE, ERROR_MUTUAL_AUTH_FAILED);
781 cmp2(CRYPT_E_REVOKED, ERROR_MUTUAL_AUTH_FAILED);
782 cmp2(CRYPT_E_NO_REVOCATION_CHECK, ERROR_MUTUAL_AUTH_FAILED);
783 cmp2(CRYPT_E_REVOCATION_OFFLINE, ERROR_MUTUAL_AUTH_FAILED);
784 cmp2(STATUS_SHUTDOWN_IN_PROGRESS, ERROR_SHUTDOWN_IN_PROGRESS);
785 cmp2(STATUS_SERVER_SHUTDOWN_IN_PROGRESS, ERROR_SERVER_SHUTDOWN_IN_PROGRESS);
786 cmp4(STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY, ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY, 1922);
787 cmp4(STATUS_DS_NO_ATTRIBUTE_OR_VALUE, ERROR_DS_NO_ATTRIBUTE_OR_VALUE, 1923);
788 cmp4(STATUS_DS_INVALID_ATTRIBUTE_SYNTAX, ERROR_DS_INVALID_ATTRIBUTE_SYNTAX, 1924);
789 cmp4(STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED, ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED, 1925);
790 cmp4(STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS, ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS, 1926);
791 cmp4(STATUS_DS_BUSY, ERROR_DS_BUSY, 1927);
792 cmp4(STATUS_DS_UNAVAILABLE, ERROR_DS_UNAVAILABLE, 1928);
793 cmp4(STATUS_DS_NO_RIDS_ALLOCATED, ERROR_DS_NO_RIDS_ALLOCATED, 1929);
794 cmp4(STATUS_DS_NO_MORE_RIDS, ERROR_DS_NO_MORE_RIDS, 1930);
795 cmp4(STATUS_DS_INCORRECT_ROLE_OWNER, ERROR_DS_INCORRECT_ROLE_OWNER, 1931);
796 cmp4(STATUS_DS_RIDMGR_INIT_ERROR, ERROR_DS_RIDMGR_INIT_ERROR, 1932);
797 cmp4(STATUS_DS_OBJ_CLASS_VIOLATION, ERROR_DS_OBJ_CLASS_VIOLATION, 1933);
798 cmp4(STATUS_DS_CANT_ON_NON_LEAF, ERROR_DS_CANT_ON_NON_LEAF, 1934);
799 cmp4(STATUS_DS_CANT_ON_RDN, ERROR_DS_CANT_ON_RDN, 1935);
800 cmp4(STATUS_DS_CROSS_DOM_MOVE_FAILED, ERROR_DS_CROSS_DOM_MOVE_ERROR, 1937);
801 cmp4(STATUS_DS_GC_NOT_AVAILABLE, ERROR_DS_GC_NOT_AVAILABLE, 1938);
802 cmp2(STATUS_DS_CANT_MOD_OBJ_CLASS, ERROR_DS_CANT_MOD_OBJ_CLASS);
803 cmp2(STATUS_DS_ADMIN_LIMIT_EXCEEDED, ERROR_DS_ADMIN_LIMIT_EXCEEDED);
804 cmp2(STATUS_DIRECTORY_SERVICE_REQUIRED, ERROR_DS_DS_REQUIRED);
805 cmp2(STATUS_DS_SAM_INIT_FAILURE, ERROR_DS_SAM_INIT_FAILURE);
806 cmp2(STATUS_DS_CANT_START, ERROR_DS_CANT_START);
807 cmp2(STATUS_DS_INIT_FAILURE, ERROR_DS_INIT_FAILURE);
808 cmp2(STATUS_SAM_INIT_FAILURE, ERROR_SAM_INIT_FAILURE);
809 cmp2(STATUS_DS_SENSITIVE_GROUP_VIOLATION, ERROR_DS_SENSITIVE_GROUP_VIOLATION);
810 cmp2(STATUS_DS_CANT_MOD_PRIMARYGROUPID, ERROR_DS_CANT_MOD_PRIMARYGROUPID);
811 cmp2(STATUS_DS_INVALID_GROUP_TYPE, ERROR_DS_INVALID_GROUP_TYPE);
812 cmp2(STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN, ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN);
813 cmp2(STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN, ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN);
814 cmp2(STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER, ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER);
815 cmp2(STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER, ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER);
816 cmp2(STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER, ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER);
817 cmp2(STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER, ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER);
818 cmp2(STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER, ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER);
819 cmp2(STATUS_DS_HAVE_PRIMARY_MEMBERS, ERROR_DS_HAVE_PRIMARY_MEMBERS);
820 cmp2(STATUS_DS_GC_REQUIRED, ERROR_DS_GC_REQUIRED);
821 cmp2(STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY, ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY);
822 cmp2(STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS, ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS);
823 cmp2(STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED,ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED);
824 cmp2(STATUS_SAM_NEED_BOOTKEY_PASSWORD, ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD);
825 cmp2(STATUS_SAM_NEED_BOOTKEY_FLOPPY, ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY);
826 cmp2(STATUS_DS_INIT_FAILURE_CONSOLE, ERROR_DS_INIT_FAILURE_CONSOLE);
827 cmp2(STATUS_DS_SAM_INIT_FAILURE_CONSOLE, ERROR_DS_SAM_INIT_FAILURE_CONSOLE);
828 cmp2(STATUS_UNFINISHED_CONTEXT_DELETED, SEC_E_UNFINISHED_CONTEXT_DELETED);
829 cmp2(STATUS_NO_TGT_REPLY, SEC_E_NO_TGT_REPLY);
830 cmp2(STATUS_NO_IP_ADDRESSES, SEC_E_NO_IP_ADDRESSES);
831 cmp2(STATUS_WRONG_CREDENTIAL_HANDLE, SEC_E_WRONG_CREDENTIAL_HANDLE);
832 cmp2(STATUS_CRYPTO_SYSTEM_INVALID, SEC_E_CRYPTO_SYSTEM_INVALID);
833 cmp2(STATUS_MAX_REFERRALS_EXCEEDED, SEC_E_MAX_REFERRALS_EXCEEDED);
834 cmp2(STATUS_MUST_BE_KDC, SEC_E_MUST_BE_KDC);
835 cmp2(STATUS_STRONG_CRYPTO_NOT_SUPPORTED, SEC_E_STRONG_CRYPTO_NOT_SUPPORTED);
836 cmp2(STATUS_TOO_MANY_PRINCIPALS, SEC_E_TOO_MANY_PRINCIPALS);
837 cmp2(STATUS_NO_PA_DATA, SEC_E_NO_PA_DATA);
838 cmp2(STATUS_PKINIT_NAME_MISMATCH, SEC_E_PKINIT_NAME_MISMATCH);
839 cmp2(STATUS_SMARTCARD_LOGON_REQUIRED, SEC_E_SMARTCARD_LOGON_REQUIRED);
840 cmp2(STATUS_KDC_INVALID_REQUEST, SEC_E_KDC_INVALID_REQUEST);
841 cmp2(STATUS_KDC_UNABLE_TO_REFER, SEC_E_KDC_UNABLE_TO_REFER);
842 cmp2(STATUS_KDC_UNKNOWN_ETYPE, SEC_E_KDC_UNKNOWN_ETYPE);
843 cmp2(STATUS_UNSUPPORTED_PREAUTH, SEC_E_UNSUPPORTED_PREAUTH);
844 cmp4(STATUS_SHARED_POLICY, ERROR_SHARED_POLICY, 1939);
845 cmp4(STATUS_POLICY_OBJECT_NOT_FOUND, ERROR_POLICY_OBJECT_NOT_FOUND, 1940);
846 cmp4(STATUS_POLICY_ONLY_IN_DS, ERROR_POLICY_ONLY_IN_DS, 1941);
847 cmp4(STATUS_DEVICE_REMOVED, ERROR_DEVICE_REMOVED, 617);
848 cmp2(STATUS_RETRY, ERROR_RETRY);
849 cmp2(STATUS_NOT_SUPPORTED_ON_SBS, ERROR_NOT_SUPPORTED_ON_SBS);
850 cmp2(STATUS_DRIVER_BLOCKED_CRITICAL, ERROR_DRIVER_BLOCKED);
851 cmp2(STATUS_DRIVER_BLOCKED, ERROR_DRIVER_BLOCKED);
852 cmp2(STATUS_PRENT4_MACHINE_ACCOUNT, ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4);
853 cmp2(STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER,ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER);
854 cmp2(STATUS_DS_SHUTTING_DOWN, ERROR_DS_SHUTTING_DOWN);
855 cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT, ERROR_ACCESS_DISABLED_BY_POLICY);
856 cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_PATH, ERROR_ACCESS_DISABLED_BY_POLICY);
857 cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER, ERROR_ACCESS_DISABLED_BY_POLICY);
858 cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_OTHER, ERROR_ACCESS_DISABLED_BY_POLICY);
859 cmp2(STATUS_FAIL_CHECK, ERROR_INVALID_PARAMETER);
860 cmp2(STATUS_CTX_CLOSE_PENDING, ERROR_CTX_CLOSE_PENDING);
861 cmp2(STATUS_CTX_NO_OUTBUF, ERROR_CTX_NO_OUTBUF);
862 cmp2(STATUS_CTX_MODEM_INF_NOT_FOUND, ERROR_CTX_MODEM_INF_NOT_FOUND);
863 cmp2(STATUS_CTX_INVALID_MODEMNAME, ERROR_CTX_INVALID_MODEMNAME);
864 cmp2(STATUS_CTX_RESPONSE_ERROR, ERROR_CTX_MODEM_RESPONSE_ERROR);
865 cmp2(STATUS_CTX_MODEM_RESPONSE_TIMEOUT, ERROR_CTX_MODEM_RESPONSE_TIMEOUT);
866 cmp2(STATUS_CTX_MODEM_RESPONSE_NO_CARRIER, ERROR_CTX_MODEM_RESPONSE_NO_CARRIER);
867 cmp2(STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE, ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE);
868 cmp2(STATUS_CTX_MODEM_RESPONSE_BUSY, ERROR_CTX_MODEM_RESPONSE_BUSY);
869 cmp2(STATUS_CTX_MODEM_RESPONSE_VOICE, ERROR_CTX_MODEM_RESPONSE_VOICE);
870 cmp2(STATUS_CTX_TD_ERROR, ERROR_CTX_TD_ERROR);
871 cmp2(STATUS_CTX_WINSTATION_NAME_INVALID, ERROR_CTX_WINSTATION_NAME_INVALID);
872 cmp2(STATUS_CTX_WINSTATION_NOT_FOUND, ERROR_CTX_WINSTATION_NOT_FOUND);
873 cmp2(STATUS_CTX_WINSTATION_NAME_COLLISION, ERROR_CTX_WINSTATION_ALREADY_EXISTS);
874 cmp2(STATUS_CTX_WINSTATION_BUSY, ERROR_CTX_WINSTATION_BUSY);
875 cmp2(STATUS_CTX_GRAPHICS_INVALID, ERROR_CTX_GRAPHICS_INVALID);
876 cmp2(STATUS_CTX_BAD_VIDEO_MODE, ERROR_CTX_BAD_VIDEO_MODE);
877 cmp2(STATUS_CTX_NOT_CONSOLE, ERROR_CTX_NOT_CONSOLE);
878 cmp2(STATUS_CTX_CLIENT_QUERY_TIMEOUT, ERROR_CTX_CLIENT_QUERY_TIMEOUT);
879 cmp2(STATUS_CTX_CONSOLE_DISCONNECT, ERROR_CTX_CONSOLE_DISCONNECT);
880 cmp2(STATUS_CTX_CONSOLE_CONNECT, ERROR_CTX_CONSOLE_CONNECT);
881 cmp2(STATUS_CTX_SHADOW_DENIED, ERROR_CTX_SHADOW_DENIED);
882 cmp2(STATUS_CTX_SHADOW_INVALID, ERROR_CTX_SHADOW_INVALID);
883 cmp2(STATUS_CTX_SHADOW_DISABLED, ERROR_CTX_SHADOW_DISABLED);
884 cmp2(STATUS_CTX_WINSTATION_ACCESS_DENIED, ERROR_CTX_WINSTATION_ACCESS_DENIED);
885 cmp2(STATUS_CTX_INVALID_PD, ERROR_CTX_INVALID_PD);
886 cmp2(STATUS_CTX_PD_NOT_FOUND, ERROR_CTX_PD_NOT_FOUND);
887 cmp2(STATUS_CTX_INVALID_WD, ERROR_CTX_INVALID_WD);
888 cmp2(STATUS_CTX_WD_NOT_FOUND, ERROR_CTX_WD_NOT_FOUND);
889 cmp2(STATUS_CTX_CLIENT_LICENSE_IN_USE, ERROR_CTX_CLIENT_LICENSE_IN_USE);
890 cmp2(STATUS_CTX_CLIENT_LICENSE_NOT_SET, ERROR_CTX_CLIENT_LICENSE_NOT_SET);
891 cmp2(STATUS_CTX_LICENSE_NOT_AVAILABLE, ERROR_CTX_LICENSE_NOT_AVAILABLE);
892 cmp2(STATUS_CTX_LICENSE_CLIENT_INVALID, ERROR_CTX_LICENSE_CLIENT_INVALID);
893 cmp2(STATUS_CTX_LICENSE_EXPIRED, ERROR_CTX_LICENSE_EXPIRED);
894 cmp2(STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE, ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE);
895 cmp2(STATUS_CTX_SHADOW_NOT_RUNNING, ERROR_CTX_SHADOW_NOT_RUNNING);
896 cmp2(STATUS_LICENSE_VIOLATION, ERROR_CTX_LICENSE_NOT_AVAILABLE);
897 #if 0
898 /* FIXME - unknown STATUS values, see bug 1001 */
899 cmp(STATUS_ENDPOINT_CLOSED, ERROR_DEV_NOT_EXIST);
900 cmp(STATUS_DISCONNECTED, ERROR_DEV_NOT_EXIST);
901 cmp(STATUS_NONEXISTENT_NET_NAME, ERROR_DEV_NOT_EXIST);
902 #endif
903 cmp2(STATUS_NETWORK_SESSION_EXPIRED, ERROR_NO_USER_SESSION_KEY);
904 cmp2(STATUS_FILES_OPEN, ERROR_OPEN_FILES);
905 cmp2(STATUS_SXS_SECTION_NOT_FOUND, ERROR_SXS_SECTION_NOT_FOUND);
906 cmp2(STATUS_SXS_CANT_GEN_ACTCTX, ERROR_SXS_CANT_GEN_ACTCTX);
907 cmp2(STATUS_SXS_INVALID_ACTCTXDATA_FORMAT, ERROR_SXS_INVALID_ACTCTXDATA_FORMAT);
908 cmp2(STATUS_SXS_ASSEMBLY_NOT_FOUND, ERROR_SXS_ASSEMBLY_NOT_FOUND);
909 cmp2(STATUS_SXS_MANIFEST_FORMAT_ERROR, ERROR_SXS_MANIFEST_FORMAT_ERROR);
910 cmp2(STATUS_SXS_MANIFEST_PARSE_ERROR, ERROR_SXS_MANIFEST_PARSE_ERROR);
911 cmp2(STATUS_SXS_ACTIVATION_CONTEXT_DISABLED, ERROR_SXS_ACTIVATION_CONTEXT_DISABLED);
912 cmp2(STATUS_SXS_KEY_NOT_FOUND, ERROR_SXS_KEY_NOT_FOUND);
913 cmp2(STATUS_SXS_WRONG_SECTION_TYPE, ERROR_SXS_WRONG_SECTION_TYPE);
914 cmp2(STATUS_SXS_THREAD_QUERIES_DISABLED, ERROR_SXS_THREAD_QUERIES_DISABLED);
915 cmp2(STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET, ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET);
916 cmp2(STATUS_REDIRECTOR_STARTED, ERROR_SERVICE_ALREADY_RUNNING);
917 cmp2(STATUS_AUDITING_DISABLED, ERROR_AUDITING_DISABLED);
918 cmp2(STATUS_CLUSTER_NODE_ALREADY_UP, ERROR_CLUSTER_NODE_ALREADY_UP);
919 cmp2(STATUS_CLUSTER_NODE_ALREADY_DOWN, ERROR_CLUSTER_NODE_ALREADY_DOWN);
920 cmp2(STATUS_CLUSTER_NETWORK_ALREADY_ONLINE, ERROR_CLUSTER_NETWORK_ALREADY_ONLINE);
921 cmp2(STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE, ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE);
922 cmp2(STATUS_CLUSTER_NODE_ALREADY_MEMBER, ERROR_CLUSTER_NODE_ALREADY_MEMBER);
923 cmp2(STATUS_CLUSTER_INVALID_NODE, ERROR_CLUSTER_INVALID_NODE);
924 cmp2(STATUS_CLUSTER_NODE_EXISTS, ERROR_CLUSTER_NODE_EXISTS);
925 cmp2(STATUS_CLUSTER_JOIN_IN_PROGRESS, ERROR_CLUSTER_JOIN_IN_PROGRESS);
926 cmp2(STATUS_CLUSTER_NODE_NOT_FOUND, ERROR_CLUSTER_NODE_NOT_FOUND);
927 cmp2(STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND, ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND);
928 cmp2(STATUS_CLUSTER_NETWORK_EXISTS, ERROR_CLUSTER_NETWORK_EXISTS);
929 cmp2(STATUS_CLUSTER_NETWORK_NOT_FOUND, ERROR_CLUSTER_NETWORK_NOT_FOUND);
930 cmp2(STATUS_CLUSTER_NETINTERFACE_EXISTS, ERROR_CLUSTER_NETINTERFACE_EXISTS);
931 cmp2(STATUS_CLUSTER_NETINTERFACE_NOT_FOUND, ERROR_CLUSTER_NETINTERFACE_NOT_FOUND);
932 cmp2(STATUS_CLUSTER_INVALID_REQUEST, ERROR_CLUSTER_INVALID_REQUEST);
933 cmp2(STATUS_CLUSTER_INVALID_NETWORK_PROVIDER,ERROR_CLUSTER_INVALID_NETWORK_PROVIDER);
934 cmp2(STATUS_CLUSTER_NODE_DOWN, ERROR_CLUSTER_NODE_DOWN);
935 cmp2(STATUS_CLUSTER_NODE_UNREACHABLE, ERROR_CLUSTER_NODE_UNREACHABLE);
936 cmp2(STATUS_CLUSTER_NODE_NOT_MEMBER, ERROR_CLUSTER_NODE_NOT_MEMBER);
937 cmp2(STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS, ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS);
938 cmp2(STATUS_CLUSTER_INVALID_NETWORK, ERROR_CLUSTER_INVALID_NETWORK);
939 cmp2(STATUS_CLUSTER_NODE_UP, ERROR_CLUSTER_NODE_UP);
940 cmp2(STATUS_CLUSTER_NODE_PAUSED, ERROR_CLUSTER_NODE_PAUSED);
941 cmp2(STATUS_CLUSTER_NODE_NOT_PAUSED, ERROR_CLUSTER_NODE_NOT_PAUSED);
942 cmp2(STATUS_CLUSTER_NO_SECURITY_CONTEXT, ERROR_CLUSTER_NO_SECURITY_CONTEXT);
943 cmp2(STATUS_CLUSTER_NETWORK_NOT_INTERNAL, ERROR_CLUSTER_NETWORK_NOT_INTERNAL);
944 }
945
946 START_TEST(error)
947 {
948 if (prepare_test())
949 run_error_tests();
950 }