1c2c66affSColin Finck /*
2c2c66affSColin Finck  * Unit tests for RtlNtStatusToDosError function
3c2c66affSColin Finck  *
4c2c66affSColin Finck  * Copyright (c) 2002 Andriy Palamarchuk
5c2c66affSColin Finck  * Copyright (c) 2010 André Hentschel
6c2c66affSColin Finck  *
7c2c66affSColin Finck  * This library is free software; you can redistribute it and/or
8c2c66affSColin Finck  * modify it under the terms of the GNU Lesser General Public
9c2c66affSColin Finck  * License as published by the Free Software Foundation; either
10c2c66affSColin Finck  * version 2.1 of the License, or (at your option) any later version.
11c2c66affSColin Finck  *
12c2c66affSColin Finck  * This library is distributed in the hope that it will be useful,
13c2c66affSColin Finck  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14c2c66affSColin Finck  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15c2c66affSColin Finck  * Lesser General Public License for more details.
16c2c66affSColin Finck  *
17c2c66affSColin Finck  * You should have received a copy of the GNU Lesser General Public
18c2c66affSColin Finck  * License along with this library; if not, write to the Free Software
19c2c66affSColin Finck  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20c2c66affSColin Finck  */
21c2c66affSColin Finck 
22*4ba4c415SAmine Khaldi #include <stdarg.h>
23*4ba4c415SAmine Khaldi #include <stdio.h>
24c2c66affSColin Finck 
25*4ba4c415SAmine Khaldi #include "ntstatus.h"
26*4ba4c415SAmine Khaldi #define WIN32_NO_STATUS
27*4ba4c415SAmine Khaldi 
28*4ba4c415SAmine Khaldi #include "wine/test.h"
29*4ba4c415SAmine Khaldi 
30*4ba4c415SAmine Khaldi #include "windef.h"
31*4ba4c415SAmine Khaldi #include "winbase.h"
32*4ba4c415SAmine Khaldi #include "rpcnterr.h"
33*4ba4c415SAmine Khaldi #include "winreg.h"
34*4ba4c415SAmine Khaldi #include "winternl.h"
35c2c66affSColin Finck 
36c2c66affSColin Finck /* FIXME!!! this test checks only mappings, defined by MSDN
37c2c66affSColin Finck  * It is necessary to add other mappings and to test them
38c2c66affSColin Finck  * up to the latest Windows platform.
39c2c66affSColin Finck  *
40c2c66affSColin Finck  * Some Windows platforms don't know about all the mappings, and in such
41c2c66affSColin Finck  * cases they return somewhat strange results (Win98) or a generic error
42c2c66affSColin Finck  * like ERROR_MR_MID_NOT_FOUND (NT4). Our tests have to know about these to
43c2c66affSColin Finck  * not fail, but we would very much prefer Wine not to return such garbage.
44c2c66affSColin Finck  * So you can pass the 'strict' option to this test to force it to only check
45c2c66affSColin Finck  * results against the first listed value. This test should pass in strict
46c2c66affSColin Finck  * mode on the latest Windows platform and in Wine.
47c2c66affSColin Finck  * (of course older Windows platforms will fail to pass the strict mode)
48c2c66affSColin Finck  */
49c2c66affSColin Finck 
50c2c66affSColin Finck static ULONG (WINAPI *pRtlNtStatusToDosError)(NTSTATUS Status);
51c2c66affSColin Finck static int strict;
52c2c66affSColin Finck 
prepare_test(void)53c2c66affSColin Finck static BOOL prepare_test(void)
54c2c66affSColin Finck {
55c2c66affSColin Finck     HMODULE ntdll;
56c2c66affSColin Finck     int argc;
57c2c66affSColin Finck     char** argv;
58c2c66affSColin Finck 
59c2c66affSColin Finck     ntdll = LoadLibraryA("ntdll.dll");
60c2c66affSColin Finck     pRtlNtStatusToDosError = (void*)GetProcAddress(ntdll, "RtlNtStatusToDosError");
61c2c66affSColin Finck     if (!pRtlNtStatusToDosError)
62c2c66affSColin Finck     {
63c2c66affSColin Finck         win_skip("RtlNtStatusToDosError is not available\n");
64c2c66affSColin Finck         return FALSE;
65c2c66affSColin Finck     }
66c2c66affSColin Finck 
67c2c66affSColin Finck     argc = winetest_get_mainargs(&argv);
68c2c66affSColin Finck     strict=(argc >= 3 && strcmp(argv[2],"strict")==0);
69c2c66affSColin Finck     return TRUE;
70c2c66affSColin Finck }
71c2c66affSColin Finck 
cmp_call(NTSTATUS win_nt,ULONG win32,const char * message)72c2c66affSColin Finck static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
73c2c66affSColin Finck {
74c2c66affSColin Finck     ULONG err;
75c2c66affSColin Finck 
76c2c66affSColin Finck     err = pRtlNtStatusToDosError(win_nt);
77c2c66affSColin Finck     ok(err == win32,
78c2c66affSColin Finck        "%s (%x): got %u, expected %u\n",
79c2c66affSColin Finck             message, win_nt, err, win32);
80c2c66affSColin Finck }
81c2c66affSColin Finck 
cmp_call2(NTSTATUS win_nt,ULONG win32,const char * message)82c2c66affSColin Finck static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
83c2c66affSColin Finck {
84c2c66affSColin Finck     ULONG err;
85c2c66affSColin Finck 
86c2c66affSColin Finck     err = pRtlNtStatusToDosError(win_nt);
87c2c66affSColin Finck     ok(err == win32 ||
88c2c66affSColin Finck        (!strict && err == ERROR_MR_MID_NOT_FOUND),
89c2c66affSColin Finck        "%s (%x): got %u, expected %u (or MID_NOT_FOUND)\n",
90c2c66affSColin Finck        message, win_nt, err, win32);
91c2c66affSColin Finck }
92c2c66affSColin Finck 
cmp_call3(NTSTATUS win_nt,ULONG win32_1,ULONG win32_2,const char * message)93c2c66affSColin Finck static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
94c2c66affSColin Finck {
95c2c66affSColin Finck     ULONG err;
96c2c66affSColin Finck 
97c2c66affSColin Finck     err = pRtlNtStatusToDosError(win_nt);
98c2c66affSColin Finck     ok(err == win32_1 || (!strict && err == win32_2),
99c2c66affSColin Finck        "%s (%x): got %u, expected %u or %u\n",
100c2c66affSColin Finck             message, win_nt, err, win32_1, win32_2);
101c2c66affSColin Finck }
102c2c66affSColin Finck 
cmp_call4(NTSTATUS win_nt,ULONG win32_1,ULONG win32_2,const char * message)103c2c66affSColin Finck static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
104c2c66affSColin Finck {
105c2c66affSColin Finck     ULONG err;
106c2c66affSColin Finck 
107c2c66affSColin Finck     err = pRtlNtStatusToDosError(win_nt);
108c2c66affSColin Finck     ok(err == win32_1 ||
109c2c66affSColin Finck        (!strict && (err == win32_2 || err == ERROR_MR_MID_NOT_FOUND)),
110c2c66affSColin Finck        "%s (%x): got %u, expected %u or %u\n",
111c2c66affSColin Finck             message, win_nt, err, win32_1, win32_2);
112c2c66affSColin Finck }
113c2c66affSColin Finck 
114c2c66affSColin Finck #define cmp(status, error) \
115c2c66affSColin Finck         cmp_call(status, error, #status)
116c2c66affSColin Finck #define cmp2(status, error) \
117c2c66affSColin Finck         cmp_call2(status, error, #status)
118c2c66affSColin Finck #define cmp3(status, error1, error2) \
119c2c66affSColin Finck         cmp_call3(status, error1, error2, #status)
120c2c66affSColin Finck #define cmp4(status, error1, error2) \
121c2c66affSColin Finck         cmp_call4(status, error1, error2, #status)
122c2c66affSColin Finck 
run_error_tests(void)123c2c66affSColin Finck static void run_error_tests(void)
124c2c66affSColin Finck {
125c2c66affSColin Finck     cmp(STATUS_DATATYPE_MISALIGNMENT,            ERROR_NOACCESS);
126c2c66affSColin Finck     cmp(STATUS_ACCESS_VIOLATION,                 ERROR_NOACCESS);
127c2c66affSColin Finck     cmp2(STATUS_DATATYPE_MISALIGNMENT_ERROR,     ERROR_NOACCESS);
128c2c66affSColin Finck     cmp2(STATUS_MULTIPLE_FAULT_VIOLATION,        ERROR_MULTIPLE_FAULT_VIOLATION);
129c2c66affSColin Finck     cmp(STATUS_CTL_FILE_NOT_SUPPORTED,           ERROR_NOT_SUPPORTED);
130c2c66affSColin Finck     cmp(STATUS_PORT_ALREADY_SET,                 ERROR_INVALID_PARAMETER);
131c2c66affSColin Finck     cmp2(STATUS_PORT_NOT_SET,                    ERROR_PORT_NOT_SET);
132c2c66affSColin Finck     cmp(STATUS_SECTION_NOT_IMAGE,                ERROR_INVALID_PARAMETER);
133c2c66affSColin Finck     cmp(STATUS_BAD_WORKING_SET_LIMIT,            ERROR_INVALID_PARAMETER);
134c2c66affSColin Finck     cmp(STATUS_WORKING_SET_LIMIT_RANGE,          ERROR_INVALID_PARAMETER);
135c2c66affSColin Finck     cmp(STATUS_INCOMPATIBLE_FILE_MAP,            ERROR_INVALID_PARAMETER);
136c2c66affSColin Finck     cmp(STATUS_PORT_DISCONNECTED,                ERROR_INVALID_HANDLE);
137c2c66affSColin Finck     cmp(STATUS_NOT_LOCKED,                       ERROR_NOT_LOCKED);
138c2c66affSColin Finck     cmp(STATUS_NOT_MAPPED_VIEW,                  ERROR_INVALID_ADDRESS);
139c2c66affSColin Finck     cmp(STATUS_UNABLE_TO_FREE_VM,                ERROR_INVALID_PARAMETER);
140c2c66affSColin Finck     cmp(STATUS_UNABLE_TO_DELETE_SECTION,         ERROR_INVALID_PARAMETER);
141c2c66affSColin Finck     cmp(STATUS_MORE_PROCESSING_REQUIRED,         ERROR_MORE_DATA);
142c2c66affSColin Finck     cmp(STATUS_INVALID_CID,                      ERROR_INVALID_PARAMETER);
143c2c66affSColin Finck     cmp(STATUS_STACK_OVERFLOW,                   ERROR_STACK_OVERFLOW);
144c2c66affSColin Finck     cmp(STATUS_BAD_INITIAL_STACK,                ERROR_STACK_OVERFLOW);
145c2c66affSColin Finck     cmp4(STATUS_STACK_OVERFLOW_READ,             ERROR_STACK_OVERFLOW_READ, ERROR_STACK_OVERFLOW);
146c2c66affSColin Finck     cmp(STATUS_INVALID_VOLUME_LABEL,             ERROR_LABEL_TOO_LONG);
147c2c66affSColin Finck     cmp(STATUS_SECTION_NOT_EXTENDED,             ERROR_OUTOFMEMORY);
148c2c66affSColin Finck     cmp(STATUS_NOT_MAPPED_DATA,                  ERROR_INVALID_ADDRESS);
149c2c66affSColin Finck     cmp2(STATUS_NO_LDT,                          ERROR_INVALID_THREAD_ID);
150c2c66affSColin Finck     cmp(STATUS_INFO_LENGTH_MISMATCH,             ERROR_BAD_LENGTH);
151c2c66affSColin Finck     cmp(STATUS_INVALID_INFO_CLASS,               ERROR_INVALID_PARAMETER);
152c2c66affSColin Finck     cmp(STATUS_SUSPEND_COUNT_EXCEEDED,           ERROR_SIGNAL_REFUSED);
153c2c66affSColin Finck     cmp(STATUS_NOTIFY_ENUM_DIR,                  ERROR_NOTIFY_ENUM_DIR);
154c2c66affSColin Finck     cmp2(STATUS_BAD_CURRENT_DIRECTORY,           ERROR_BAD_CURRENT_DIRECTORY);
155c2c66affSColin Finck     cmp(STATUS_REGISTRY_RECOVERED,               ERROR_REGISTRY_RECOVERED);
156c2c66affSColin Finck     cmp2(STATUS_REGISTRY_HIVE_RECOVERED,         ERROR_REGISTRY_HIVE_RECOVERED);
157c2c66affSColin Finck     cmp(STATUS_REGISTRY_IO_FAILED,               ERROR_REGISTRY_IO_FAILED);
158c2c66affSColin Finck     cmp(STATUS_NOT_REGISTRY_FILE,                ERROR_NOT_REGISTRY_FILE);
159c2c66affSColin Finck     cmp2(STATUS_CANNOT_LOAD_REGISTRY_FILE,       ERROR_CANNOT_LOAD_REGISTRY_FILE);
160c2c66affSColin Finck     cmp2(STATUS_SYSTEM_HIVE_TOO_LARGE,           ERROR_SYSTEM_HIVE_TOO_LARGE);
161c2c66affSColin Finck     cmp(STATUS_KEY_DELETED,                      ERROR_KEY_DELETED);
162c2c66affSColin Finck     cmp(STATUS_NO_LOG_SPACE,                     ERROR_NO_LOG_SPACE);
163c2c66affSColin Finck     cmp(STATUS_KEY_HAS_CHILDREN,                 ERROR_KEY_HAS_CHILDREN);
164c2c66affSColin Finck     cmp(STATUS_CHILD_MUST_BE_VOLATILE,           ERROR_CHILD_MUST_BE_VOLATILE);
165c2c66affSColin Finck     cmp(STATUS_REGISTRY_CORRUPT,                 ERROR_BADDB);
166c2c66affSColin Finck     cmp2(STATUS_REGISTRY_QUOTA_LIMIT,            ERROR_REGISTRY_QUOTA_LIMIT);
167c2c66affSColin Finck     cmp(STATUS_DLL_NOT_FOUND,                    ERROR_MOD_NOT_FOUND);
168c2c66affSColin Finck     cmp2(STATUS_OPEN_FAILED,                     ERROR_NET_OPEN_FAILED);
169c2c66affSColin Finck     cmp2(STATUS_IO_PRIVILEGE_FAILED,             ERROR_IO_PRIVILEGE_FAILED);
170c2c66affSColin Finck     cmp(STATUS_DLL_INIT_FAILED,                  ERROR_DLL_INIT_FAILED);
171c2c66affSColin Finck     cmp2(STATUS_DLL_INIT_FAILED_LOGOFF,          ERROR_DLL_INIT_FAILED_LOGOFF);
172c2c66affSColin Finck     cmp2(STATUS_INVALID_IMPORT_OF_NON_DLL,       ERROR_INVALID_IMPORT_OF_NON_DLL);
173c2c66affSColin Finck     cmp(STATUS_ORDINAL_NOT_FOUND,                ERROR_INVALID_ORDINAL);
174c2c66affSColin Finck     cmp(STATUS_DRIVER_ORDINAL_NOT_FOUND,         ERROR_INVALID_ORDINAL);
175c2c66affSColin Finck     cmp2(STATUS_DRIVER_UNABLE_TO_LOAD,           ERROR_BAD_DRIVER);
176c2c66affSColin Finck     cmp(STATUS_ENTRYPOINT_NOT_FOUND,             ERROR_PROC_NOT_FOUND);
177c2c66affSColin Finck     cmp(STATUS_DRIVER_ENTRYPOINT_NOT_FOUND,      ERROR_PROC_NOT_FOUND);
178c2c66affSColin Finck     cmp2(STATUS_BAD_DLL_ENTRYPOINT,              ERROR_BAD_DLL_ENTRYPOINT);
179c2c66affSColin Finck     cmp2(STATUS_BAD_SERVICE_ENTRYPOINT,          ERROR_BAD_SERVICE_ENTRYPOINT);
180c2c66affSColin Finck     cmp2(STATUS_FAILED_DRIVER_ENTRY,             ERROR_FAILED_DRIVER_ENTRY);
181c2c66affSColin Finck     cmp2(STATUS_DLL_MIGHT_BE_INSECURE,           ERROR_DLL_MIGHT_BE_INSECURE);
182c2c66affSColin Finck     cmp2(STATUS_DLL_MIGHT_BE_INCOMPATIBLE,       ERROR_DLL_MIGHT_BE_INCOMPATIBLE);
183c2c66affSColin Finck     cmp2(STATUS_ILLEGAL_DLL_RELOCATION,          ERROR_ILLEGAL_DLL_RELOCATION);
184c2c66affSColin Finck     cmp2(STATUS_NOT_SAFE_MODE_DRIVER,            ERROR_NOT_SAFE_MODE_DRIVER);
185c2c66affSColin Finck     cmp2(STATUS_DRIVER_DATABASE_ERROR,           ERROR_DRIVER_DATABASE_ERROR);
186c2c66affSColin Finck     cmp(STATUS_PENDING,                          ERROR_IO_PENDING);
187c2c66affSColin Finck     cmp(STATUS_MORE_ENTRIES,                     ERROR_MORE_DATA);
188c2c66affSColin Finck     cmp(STATUS_INTEGER_OVERFLOW,                 ERROR_ARITHMETIC_OVERFLOW);
189c2c66affSColin Finck     cmp(STATUS_BUFFER_OVERFLOW,                  ERROR_MORE_DATA);
190c2c66affSColin Finck     cmp2(STATUS_MARSHALL_OVERFLOW,               ERROR_MARSHALL_OVERFLOW);
191c2c66affSColin Finck     cmp(STATUS_NO_MORE_FILES,                    ERROR_NO_MORE_FILES);
192c2c66affSColin Finck     cmp2(STATUS_REDIRECTOR_HAS_OPEN_HANDLES,     ERROR_REDIRECTOR_HAS_OPEN_HANDLES);
193c2c66affSColin Finck     cmp2(STATUS_SERVER_HAS_OPEN_HANDLES,         ERROR_SERVER_HAS_OPEN_HANDLES);
194c2c66affSColin Finck     cmp2(STATUS_HANDLES_CLOSED,                  ERROR_HANDLES_CLOSED);
195c2c66affSColin Finck     cmp(STATUS_NO_INHERITANCE,                   ERROR_NO_INHERITANCE);
196c2c66affSColin Finck     cmp(STATUS_NO_MORE_EAS,                      ERROR_NO_MORE_ITEMS);
197c2c66affSColin Finck     cmp(STATUS_NO_MORE_ENTRIES,                  ERROR_NO_MORE_ITEMS);
198c2c66affSColin Finck     cmp(STATUS_GUIDS_EXHAUSTED,                  ERROR_NO_MORE_ITEMS);
199c2c66affSColin Finck     cmp(STATUS_AGENTS_EXHAUSTED,                 ERROR_NO_MORE_ITEMS);
200c2c66affSColin Finck     cmp(STATUS_UNSUCCESSFUL,                     ERROR_GEN_FAILURE);
201c2c66affSColin Finck     cmp(STATUS_TOO_MANY_LINKS,                   ERROR_TOO_MANY_LINKS);
202c2c66affSColin Finck     cmp(STATUS_NOT_IMPLEMENTED,                  ERROR_INVALID_FUNCTION);
203c2c66affSColin Finck     cmp(STATUS_ILLEGAL_FUNCTION,                 ERROR_INVALID_FUNCTION);
204c2c66affSColin Finck     cmp(STATUS_IN_PAGE_ERROR,                    ERROR_SWAPERROR);
205c2c66affSColin Finck     cmp(STATUS_PAGEFILE_QUOTA,                   ERROR_PAGEFILE_QUOTA);
206c2c66affSColin Finck     cmp2(STATUS_PAGEFILE_QUOTA_EXCEEDED,         ERROR_PAGEFILE_QUOTA_EXCEEDED);
207c2c66affSColin Finck     cmp2(STATUS_PAGE_FAULT_TRANSITION,           ERROR_PAGE_FAULT_TRANSITION);
208c2c66affSColin Finck     cmp2(STATUS_PAGE_FAULT_DEMAND_ZERO,          ERROR_PAGE_FAULT_DEMAND_ZERO);
209c2c66affSColin Finck     cmp2(STATUS_PAGE_FAULT_COPY_ON_WRITE,        ERROR_PAGE_FAULT_COPY_ON_WRITE);
210c2c66affSColin Finck     cmp2(STATUS_PAGE_FAULT_GUARD_PAGE,           ERROR_PAGE_FAULT_GUARD_PAGE);
211c2c66affSColin Finck     cmp2(STATUS_PAGE_FAULT_PAGING_FILE,          ERROR_PAGE_FAULT_PAGING_FILE);
212c2c66affSColin Finck     cmp2(STATUS_CACHE_PAGE_LOCKED,               ERROR_CACHE_PAGE_LOCKED);
213c2c66affSColin Finck     cmp2(STATUS_PAGEFILE_CREATE_FAILED,          ERROR_PAGEFILE_CREATE_FAILED);
214c2c66affSColin Finck     cmp2(STATUS_NO_PAGEFILE,                     ERROR_NO_PAGEFILE);
215c2c66affSColin Finck     cmp(STATUS_COMMITMENT_LIMIT,                 ERROR_COMMITMENT_LIMIT);
216c2c66affSColin Finck     cmp2(STATUS_COMMITMENT_MINIMUM,              ERROR_COMMITMENT_MINIMUM);
217c2c66affSColin Finck     cmp(STATUS_SECTION_TOO_BIG,                  ERROR_NOT_ENOUGH_MEMORY);
218c2c66affSColin Finck     cmp2(STATUS_SEGMENT_NOTIFICATION,            ERROR_SEGMENT_NOTIFICATION);
219c2c66affSColin Finck     cmp(RPC_NT_SS_IN_NULL_CONTEXT,               ERROR_INVALID_HANDLE);
220c2c66affSColin Finck     cmp(RPC_NT_INVALID_BINDING,                  ERROR_INVALID_HANDLE);
221c2c66affSColin Finck     cmp(STATUS_INVALID_HANDLE,                   ERROR_INVALID_HANDLE);
222c2c66affSColin Finck     cmp(STATUS_OBJECT_TYPE_MISMATCH,             ERROR_INVALID_HANDLE);
223c2c66affSColin Finck     cmp(STATUS_FILE_CLOSED,                      ERROR_INVALID_HANDLE);
224c2c66affSColin Finck     cmp(STATUS_INVALID_PORT_HANDLE,              ERROR_INVALID_HANDLE);
225c2c66affSColin Finck     cmp(STATUS_HANDLE_NOT_CLOSABLE,              ERROR_INVALID_HANDLE);
226c2c66affSColin Finck     cmp(STATUS_NOT_COMMITTED,                    ERROR_INVALID_ADDRESS);
227c2c66affSColin Finck     cmp(STATUS_PARTIAL_COPY,                     ERROR_PARTIAL_COPY);
228c2c66affSColin Finck     cmp3(STATUS_LPC_REPLY_LOST,                  ERROR_CONNECTION_ABORTED, ERROR_INTERNAL_ERROR);
229c2c66affSColin Finck     cmp2(STATUS_INVALID_VARIANT,                 ERROR_INVALID_VARIANT);
230c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER,                ERROR_INVALID_PARAMETER);
231c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_1,              ERROR_INVALID_PARAMETER);
232c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_2,              ERROR_INVALID_PARAMETER);
233c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_3,              ERROR_INVALID_PARAMETER);
234c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_4,              ERROR_INVALID_PARAMETER);
235c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_5,              ERROR_INVALID_PARAMETER);
236c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_6,              ERROR_INVALID_PARAMETER);
237c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_7,              ERROR_INVALID_PARAMETER);
238c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_8,              ERROR_INVALID_PARAMETER);
239c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_9,              ERROR_INVALID_PARAMETER);
240c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_10,             ERROR_INVALID_PARAMETER);
241c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_11,             ERROR_INVALID_PARAMETER);
242c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_12,             ERROR_INVALID_PARAMETER);
243c2c66affSColin Finck     cmp(STATUS_INVALID_PARAMETER_MIX,            ERROR_INVALID_PARAMETER);
244c2c66affSColin Finck     cmp(STATUS_INVALID_PAGE_PROTECTION,          ERROR_INVALID_PARAMETER);
245c2c66affSColin Finck     cmp(STATUS_SECTION_PROTECTION,               ERROR_INVALID_PARAMETER);
246c2c66affSColin Finck     cmp(STATUS_RESOURCE_DATA_NOT_FOUND,          ERROR_RESOURCE_DATA_NOT_FOUND);
247c2c66affSColin Finck     cmp(STATUS_RESOURCE_TYPE_NOT_FOUND,          ERROR_RESOURCE_TYPE_NOT_FOUND);
248c2c66affSColin Finck     cmp(STATUS_RESOURCE_NAME_NOT_FOUND,          ERROR_RESOURCE_NAME_NOT_FOUND);
249c2c66affSColin Finck     cmp(STATUS_RESOURCE_LANG_NOT_FOUND,          ERROR_RESOURCE_LANG_NOT_FOUND);
250c2c66affSColin Finck     cmp(STATUS_NO_SUCH_DEVICE,                   ERROR_FILE_NOT_FOUND);
251c2c66affSColin Finck     cmp(STATUS_NO_SUCH_FILE,                     ERROR_FILE_NOT_FOUND);
252c2c66affSColin Finck     cmp(STATUS_INVALID_DEVICE_REQUEST,           ERROR_INVALID_FUNCTION);
253c2c66affSColin Finck     cmp2(STATUS_VOLUME_NOT_UPGRADED,             ERROR_INVALID_FUNCTION);
254c2c66affSColin Finck     cmp2(STATUS_CONVERT_TO_LARGE,                ERROR_CONVERT_TO_LARGE);
255c2c66affSColin Finck     cmp(STATUS_END_OF_FILE,                      ERROR_HANDLE_EOF);
256c2c66affSColin Finck     cmp(STATUS_FILE_FORCED_CLOSED,               ERROR_HANDLE_EOF);
257c2c66affSColin Finck     cmp(STATUS_WRONG_VOLUME,                     ERROR_WRONG_DISK);
258c2c66affSColin Finck     cmp(STATUS_NO_MEDIA,                         ERROR_NO_MEDIA_IN_DRIVE);
259c2c66affSColin Finck     cmp(STATUS_NO_MEDIA_IN_DEVICE,               ERROR_NOT_READY);
260c2c66affSColin Finck     cmp2(STATUS_VOLUME_DISMOUNTED,               ERROR_NOT_READY);
261c2c66affSColin Finck     cmp2(STATUS_VOLUME_MOUNTED,                  ERROR_VOLUME_MOUNTED);
262c2c66affSColin Finck     cmp2(STATUS_MOUNT_POINT_NOT_RESOLVED,        ERROR_MOUNT_POINT_NOT_RESOLVED);
263c2c66affSColin Finck     cmp(STATUS_NONEXISTENT_SECTOR,               ERROR_SECTOR_NOT_FOUND);
264c2c66affSColin Finck     cmp(STATUS_WORKING_SET_QUOTA,                ERROR_WORKING_SET_QUOTA);
265c2c66affSColin Finck     cmp(STATUS_NO_MEMORY,                        ERROR_NOT_ENOUGH_MEMORY);
266c2c66affSColin Finck     cmp(STATUS_CONFLICTING_ADDRESSES,            ERROR_INVALID_ADDRESS);
267c2c66affSColin Finck     cmp(STATUS_INVALID_SYSTEM_SERVICE,           ERROR_INVALID_FUNCTION);
268c2c66affSColin Finck     cmp2(STATUS_THREAD_WAS_SUSPENDED,            ERROR_THREAD_WAS_SUSPENDED);
269c2c66affSColin Finck     cmp2(STATUS_TOO_MANY_THREADS,                ERROR_TOO_MANY_THREADS);
270c2c66affSColin Finck     cmp2(STATUS_THREAD_NOT_IN_PROCESS,           ERROR_THREAD_NOT_IN_PROCESS);
271c2c66affSColin Finck     cmp(STATUS_THREAD_IS_TERMINATING,            ERROR_ACCESS_DENIED);
272c2c66affSColin Finck     cmp(STATUS_PROCESS_IS_TERMINATING,           ERROR_ACCESS_DENIED);
273c2c66affSColin Finck     cmp2(STATUS_SYSTEM_PROCESS_TERMINATED,       ERROR_SYSTEM_PROCESS_TERMINATED);
274c2c66affSColin Finck     cmp(STATUS_INVALID_LOCK_SEQUENCE,            ERROR_ACCESS_DENIED);
275c2c66affSColin Finck     cmp(STATUS_INVALID_VIEW_SIZE,                ERROR_ACCESS_DENIED);
276c2c66affSColin Finck     cmp(STATUS_ALREADY_COMMITTED,                ERROR_ACCESS_DENIED);
277c2c66affSColin Finck     cmp(STATUS_ACCESS_DENIED,                    ERROR_ACCESS_DENIED);
278c2c66affSColin Finck     cmp(STATUS_FILE_IS_A_DIRECTORY,              ERROR_ACCESS_DENIED);
279c2c66affSColin Finck     cmp(STATUS_CANNOT_DELETE,                    ERROR_ACCESS_DENIED);
280c2c66affSColin Finck     cmp(STATUS_INVALID_COMPUTER_NAME,            ERROR_INVALID_COMPUTERNAME);
281c2c66affSColin Finck     cmp(STATUS_FILE_DELETED,                     ERROR_ACCESS_DENIED);
282c2c66affSColin Finck     cmp2(STATUS_FILE_RENAMED,                    ERROR_ACCESS_DENIED);
283c2c66affSColin Finck     cmp(STATUS_DELETE_PENDING,                   ERROR_ACCESS_DENIED);
284c2c66affSColin Finck     cmp(STATUS_PORT_CONNECTION_REFUSED,          ERROR_ACCESS_DENIED);
285c2c66affSColin Finck     cmp(STATUS_NO_SUCH_PRIVILEGE,                ERROR_NO_SUCH_PRIVILEGE);
286c2c66affSColin Finck     cmp(STATUS_PRIVILEGE_NOT_HELD,               ERROR_PRIVILEGE_NOT_HELD);
287c2c66affSColin Finck     cmp(STATUS_CANNOT_IMPERSONATE,               ERROR_CANNOT_IMPERSONATE);
288c2c66affSColin Finck     cmp(STATUS_LOGON_FAILURE,                    ERROR_LOGON_FAILURE);
289c2c66affSColin Finck     cmp2(STATUS_MUTUAL_AUTHENTICATION_FAILED,    ERROR_MUTUAL_AUTH_FAILED);
290c2c66affSColin Finck     cmp2(STATUS_TIME_DIFFERENCE_AT_DC,           ERROR_TIME_SKEW);
291c2c66affSColin Finck     cmp2(STATUS_PKINIT_FAILURE,                  ERROR_PKINIT_FAILURE);
292c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_SUBSYSTEM_FAILURE,     ERROR_SMARTCARD_SUBSYSTEM_FAILURE);
293c2c66affSColin Finck     cmp2(STATUS_DOWNGRADE_DETECTED,              ERROR_DOWNGRADE_DETECTED);
294c2c66affSColin Finck     cmp4(STATUS_SMARTCARD_CERT_REVOKED,          SEC_E_SMARTCARD_CERT_REVOKED, 1266); /* FIXME: real name? */
295c2c66affSColin Finck     cmp4(STATUS_ISSUING_CA_UNTRUSTED,            SEC_E_ISSUING_CA_UNTRUSTED, 1267); /* FIXME: real name? */
296c2c66affSColin Finck     cmp4(STATUS_REVOCATION_OFFLINE_C,            SEC_E_REVOCATION_OFFLINE_C, 1268); /* FIXME: real name? */
297c2c66affSColin Finck     cmp4(STATUS_PKINIT_CLIENT_FAILURE,           SEC_E_PKINIT_CLIENT_FAILURE, 1269); /* FIXME: real name? */
298c2c66affSColin Finck     cmp4(STATUS_SMARTCARD_CERT_EXPIRED,          SEC_E_SMARTCARD_CERT_EXPIRED, 1270); /* FIXME: real name? */
299c2c66affSColin Finck     cmp2(STATUS_NO_KERB_KEY,                     SEC_E_NO_KERB_KEY);
300c2c66affSColin Finck     cmp2(STATUS_CURRENT_DOMAIN_NOT_ALLOWED,      ERROR_CURRENT_DOMAIN_NOT_ALLOWED);
301c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_WRONG_PIN,             SCARD_W_WRONG_CHV);
302c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_CARD_BLOCKED,          SCARD_W_CHV_BLOCKED);
303c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED,SCARD_W_CARD_NOT_AUTHENTICATED);
304c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_NO_CARD,               SCARD_E_NO_SMARTCARD);
305c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_NO_KEY_CONTAINER,      NTE_NO_KEY);
306c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_NO_CERTIFICATE,        SCARD_E_NO_SUCH_CERTIFICATE);
307c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_NO_KEYSET,             NTE_BAD_KEYSET);
308c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_IO_ERROR,              SCARD_E_COMM_DATA_LOST);
309c2c66affSColin Finck     cmp(STATUS_ACCOUNT_RESTRICTION,              ERROR_ACCOUNT_RESTRICTION);
310c2c66affSColin Finck     cmp(STATUS_INVALID_LOGON_HOURS,              ERROR_INVALID_LOGON_HOURS);
311c2c66affSColin Finck     cmp(STATUS_INVALID_WORKSTATION,              ERROR_INVALID_WORKSTATION);
312c2c66affSColin Finck     cmp(STATUS_BUFFER_TOO_SMALL,                 ERROR_INSUFFICIENT_BUFFER);
313c2c66affSColin Finck     cmp(STATUS_UNABLE_TO_DECOMMIT_VM,            ERROR_INVALID_ADDRESS);
314c2c66affSColin Finck     cmp(STATUS_DISK_CORRUPT_ERROR,               ERROR_DISK_CORRUPT);
315c2c66affSColin Finck     cmp2(STATUS_FT_READ_RECOVERY_FROM_BACKUP,    ERROR_FT_READ_RECOVERY_FROM_BACKUP);
316c2c66affSColin Finck     cmp2(STATUS_FT_WRITE_RECOVERY,               ERROR_FT_WRITE_RECOVERY);
317c2c66affSColin Finck     cmp(STATUS_FT_MISSING_MEMBER,                ERROR_IO_DEVICE);
318c2c66affSColin Finck     cmp(STATUS_FT_ORPHANING,                     ERROR_IO_DEVICE);
319c2c66affSColin Finck     cmp2(STATUS_BACKUP_CONTROLLER,               ERROR_BACKUP_CONTROLLER);
320c2c66affSColin Finck     cmp(STATUS_VARIABLE_NOT_FOUND,               ERROR_ENVVAR_NOT_FOUND);
321c2c66affSColin Finck     cmp(STATUS_OBJECT_NAME_INVALID,              ERROR_INVALID_NAME);
322c2c66affSColin Finck     cmp(STATUS_OBJECT_NAME_NOT_FOUND,            ERROR_FILE_NOT_FOUND);
323c2c66affSColin Finck     cmp(STATUS_OBJECT_NAME_COLLISION,            ERROR_ALREADY_EXISTS);
324c2c66affSColin Finck     cmp2(STATUS_OBJECT_NAME_EXISTS,              ERROR_OBJECT_NAME_EXISTS);
325c2c66affSColin Finck     cmp(STATUS_OBJECT_PATH_INVALID,              ERROR_BAD_PATHNAME);
326c2c66affSColin Finck     cmp(STATUS_OBJECT_PATH_NOT_FOUND,            ERROR_PATH_NOT_FOUND);
327c2c66affSColin Finck     cmp(STATUS_DFS_EXIT_PATH_FOUND,              ERROR_PATH_NOT_FOUND);
328c2c66affSColin Finck     cmp2(STATUS_DFS_UNAVAILABLE,                 ERROR_CONNECTION_UNAVAIL);
329c2c66affSColin Finck     cmp(STATUS_OBJECT_PATH_SYNTAX_BAD,           ERROR_BAD_PATHNAME);
330c2c66affSColin Finck     cmp(STATUS_NAME_TOO_LONG,                    ERROR_FILENAME_EXCED_RANGE);
331c2c66affSColin Finck     cmp(STATUS_DATA_OVERRUN,                     ERROR_IO_DEVICE);
332c2c66affSColin Finck     cmp(STATUS_DATA_LATE_ERROR,                  ERROR_IO_DEVICE);
333c2c66affSColin Finck     cmp(STATUS_DATA_ERROR,                       ERROR_CRC);
334c2c66affSColin Finck     cmp2(STATUS_DATA_NOT_ACCEPTED,               ERROR_DATA_NOT_ACCEPTED);
335c2c66affSColin Finck     cmp2(STATUS_LOST_WRITEBEHIND_DATA,           ERROR_LOST_WRITEBEHIND_DATA);
336c2c66affSColin Finck     cmp(STATUS_CRC_ERROR,                        ERROR_CRC);
337c2c66affSColin Finck     cmp(STATUS_SHARING_VIOLATION,                ERROR_SHARING_VIOLATION);
338c2c66affSColin Finck     cmp(STATUS_QUOTA_EXCEEDED,                   ERROR_NOT_ENOUGH_QUOTA);
339c2c66affSColin Finck     cmp2(STATUS_FS_DRIVER_REQUIRED,              ERROR_FS_DRIVER_REQUIRED);
340c2c66affSColin Finck     cmp(STATUS_MUTANT_NOT_OWNED,                 ERROR_NOT_OWNER);
341c2c66affSColin Finck     cmp2(STATUS_MUTANT_LIMIT_EXCEEDED,           ERROR_MUTANT_LIMIT_EXCEEDED);
342c2c66affSColin Finck     cmp(STATUS_SEMAPHORE_LIMIT_EXCEEDED,         ERROR_TOO_MANY_POSTS);
343c2c66affSColin Finck     cmp(STATUS_DISK_FULL,                        ERROR_DISK_FULL);
344c2c66affSColin Finck     cmp(STATUS_LOCK_NOT_GRANTED,                 ERROR_LOCK_VIOLATION);
345c2c66affSColin Finck     cmp(STATUS_FILE_LOCK_CONFLICT,               ERROR_LOCK_VIOLATION);
346c2c66affSColin Finck     cmp2(STATUS_NOT_TINY_STREAM,                 ERROR_NOT_TINY_STREAM);
347c2c66affSColin Finck     cmp(STATUS_NOT_A_DIRECTORY,                  ERROR_DIRECTORY);
348c2c66affSColin Finck     cmp2(STATUS_CANNOT_MAKE,                     ERROR_CANNOT_MAKE);
349c2c66affSColin Finck     cmp(STATUS_UNKNOWN_REVISION,                 ERROR_UNKNOWN_REVISION);
350c2c66affSColin Finck     cmp(STATUS_REVISION_MISMATCH,                ERROR_REVISION_MISMATCH);
351c2c66affSColin Finck     cmp(STATUS_INVALID_OWNER,                    ERROR_INVALID_OWNER);
352c2c66affSColin Finck     cmp(STATUS_INVALID_PRIMARY_GROUP,            ERROR_INVALID_PRIMARY_GROUP);
353c2c66affSColin Finck     cmp(STATUS_NO_IMPERSONATION_TOKEN,           ERROR_NO_IMPERSONATION_TOKEN);
354c2c66affSColin Finck     cmp(STATUS_CANT_DISABLE_MANDATORY,           ERROR_CANT_DISABLE_MANDATORY);
355c2c66affSColin Finck     cmp(STATUS_NO_LOGON_SERVERS,                 ERROR_NO_LOGON_SERVERS);
356c2c66affSColin Finck     cmp(STATUS_DOMAIN_CONTROLLER_NOT_FOUND,      ERROR_DOMAIN_CONTROLLER_NOT_FOUND);
357c2c66affSColin Finck     cmp(STATUS_NO_SUCH_LOGON_SESSION,            ERROR_NO_SUCH_LOGON_SESSION);
358c2c66affSColin Finck     cmp(STATUS_INVALID_ACCOUNT_NAME,             ERROR_INVALID_ACCOUNT_NAME);
359c2c66affSColin Finck     cmp(STATUS_USER_EXISTS,                      ERROR_USER_EXISTS);
360c2c66affSColin Finck     cmp(STATUS_NO_SUCH_USER,                     ERROR_NO_SUCH_USER);
361c2c66affSColin Finck     cmp(STATUS_GROUP_EXISTS,                     ERROR_GROUP_EXISTS);
362c2c66affSColin Finck     cmp(STATUS_NO_SUCH_GROUP,                    ERROR_NO_SUCH_GROUP);
363c2c66affSColin Finck     cmp(STATUS_SPECIAL_GROUP,                    ERROR_SPECIAL_GROUP);
364c2c66affSColin Finck     cmp(STATUS_MEMBER_IN_GROUP,                  ERROR_MEMBER_IN_GROUP);
365c2c66affSColin Finck     cmp(STATUS_MEMBER_NOT_IN_GROUP,              ERROR_MEMBER_NOT_IN_GROUP);
366c2c66affSColin Finck     cmp(STATUS_LAST_ADMIN,                       ERROR_LAST_ADMIN);
367c2c66affSColin Finck     cmp(STATUS_WRONG_PASSWORD,                   ERROR_INVALID_PASSWORD);
368c2c66affSColin Finck     cmp(STATUS_WRONG_PASSWORD_CORE,              ERROR_INVALID_PASSWORD);
369c2c66affSColin Finck     cmp(STATUS_ILL_FORMED_PASSWORD,              ERROR_ILL_FORMED_PASSWORD);
370c2c66affSColin Finck     cmp(STATUS_PASSWORD_RESTRICTION,             ERROR_PASSWORD_RESTRICTION);
371c2c66affSColin Finck     cmp(STATUS_PASSWORD_EXPIRED,                 ERROR_PASSWORD_EXPIRED);
372c2c66affSColin Finck     cmp(STATUS_PASSWORD_MUST_CHANGE,             ERROR_PASSWORD_MUST_CHANGE);
373c2c66affSColin Finck     cmp2(STATUS_PWD_TOO_SHORT,                   ERROR_PWD_TOO_SHORT);
374c2c66affSColin Finck     cmp2(STATUS_PWD_TOO_RECENT,                  ERROR_PWD_TOO_RECENT);
375c2c66affSColin Finck     cmp2(STATUS_PWD_HISTORY_CONFLICT,            ERROR_PWD_HISTORY_CONFLICT);
376c2c66affSColin Finck     cmp(STATUS_ACCOUNT_DISABLED,                 ERROR_ACCOUNT_DISABLED);
377c2c66affSColin Finck     cmp(STATUS_ACCOUNT_LOCKED_OUT,               ERROR_ACCOUNT_LOCKED_OUT);
378c2c66affSColin Finck     cmp(STATUS_NONE_MAPPED,                      ERROR_NONE_MAPPED);
379c2c66affSColin Finck     cmp(STATUS_TOO_MANY_LUIDS_REQUESTED,         ERROR_TOO_MANY_LUIDS_REQUESTED);
380c2c66affSColin Finck     cmp(STATUS_LUIDS_EXHAUSTED,                  ERROR_LUIDS_EXHAUSTED);
381c2c66affSColin Finck     cmp(STATUS_INVALID_SUB_AUTHORITY,            ERROR_INVALID_SUB_AUTHORITY);
382c2c66affSColin Finck     cmp(STATUS_INVALID_ACL,                      ERROR_INVALID_ACL);
383c2c66affSColin Finck     cmp(STATUS_INVALID_SID,                      ERROR_INVALID_SID);
384c2c66affSColin Finck     cmp(STATUS_INVALID_SECURITY_DESCR,           ERROR_INVALID_SECURITY_DESCR);
385c2c66affSColin Finck     cmp(STATUS_PROCEDURE_NOT_FOUND,              ERROR_PROC_NOT_FOUND);
386c2c66affSColin Finck     cmp2(STATUS_VDM_HARD_ERROR,                  ERROR_VDM_HARD_ERROR);
387c2c66affSColin Finck     cmp2(STATUS_INVALID_LDT_SIZE,                ERROR_INVALID_LDT_SIZE);
388c2c66affSColin Finck     cmp2(STATUS_INVALID_LDT_OFFSET,              ERROR_INVALID_LDT_OFFSET);
389c2c66affSColin Finck     cmp2(STATUS_INVALID_LDT_DESCRIPTOR,          ERROR_INVALID_LDT_DESCRIPTOR);
390c2c66affSColin Finck     cmp(STATUS_BAD_INITIAL_PC,                   ERROR_BAD_EXE_FORMAT);
391c2c66affSColin Finck     cmp(STATUS_INVALID_FILE_FOR_SECTION,         ERROR_BAD_EXE_FORMAT);
392c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_FORMAT,             ERROR_BAD_EXE_FORMAT);
393c2c66affSColin Finck     cmp(STATUS_IMAGE_MP_UP_MISMATCH,             ERROR_BAD_EXE_FORMAT);
394c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_NOT_MZ,             ERROR_BAD_EXE_FORMAT);
395c2c66affSColin Finck     cmp(STATUS_IMAGE_CHECKSUM_MISMATCH,          ERROR_BAD_EXE_FORMAT);
396c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_PROTECT,            ERROR_BAD_EXE_FORMAT);
397c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_LE_FORMAT,          ERROR_BAD_EXE_FORMAT);
398c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_NE_FORMAT,          ERROR_BAD_EXE_FORMAT);
399c2c66affSColin Finck     cmp(STATUS_INVALID_IMAGE_WIN_16,             ERROR_BAD_EXE_FORMAT);
400c2c66affSColin Finck     cmp2(STATUS_INVALID_IMAGE_WIN_32,            ERROR_BAD_EXE_FORMAT);
401c2c66affSColin Finck     cmp2(STATUS_INVALID_IMAGE_WIN_64,            ERROR_BAD_EXE_FORMAT);
402c2c66affSColin Finck     cmp(STATUS_NO_TOKEN,                         ERROR_NO_TOKEN);
403c2c66affSColin Finck     cmp(STATUS_RANGE_NOT_LOCKED,                 ERROR_NOT_LOCKED);
404c2c66affSColin Finck     cmp2(STATUS_RANGE_LIST_CONFLICT,             ERROR_RANGE_LIST_CONFLICT);
405c2c66affSColin Finck     cmp2(STATUS_RANGE_NOT_FOUND,                 ERROR_RANGE_NOT_FOUND);
406c2c66affSColin Finck     cmp(STATUS_SERVER_DISABLED,                  ERROR_SERVER_DISABLED);
407c2c66affSColin Finck     cmp(STATUS_SERVER_NOT_DISABLED,              ERROR_SERVER_NOT_DISABLED);
408c2c66affSColin Finck     cmp(STATUS_INVALID_ID_AUTHORITY,             ERROR_INVALID_ID_AUTHORITY);
409c2c66affSColin Finck     cmp(STATUS_ALLOTTED_SPACE_EXCEEDED,          ERROR_ALLOTTED_SPACE_EXCEEDED);
410c2c66affSColin Finck     cmp(STATUS_TOO_MANY_PAGING_FILES,            ERROR_NOT_ENOUGH_MEMORY);
411c2c66affSColin Finck     cmp2(STATUS_RESOURCE_REQUIREMENTS_CHANGED,   ERROR_RESOURCE_REQUIREMENTS_CHANGED);
412c2c66affSColin Finck     cmp(STATUS_INSUFFICIENT_RESOURCES,           ERROR_NO_SYSTEM_RESOURCES);
413c2c66affSColin Finck     cmp(STATUS_INSUFF_SERVER_RESOURCES,          ERROR_NOT_ENOUGH_SERVER_MEMORY);
414c2c66affSColin Finck     cmp(STATUS_FILE_INVALID,                     ERROR_FILE_INVALID);
415c2c66affSColin Finck     cmp(STATUS_MAPPED_FILE_SIZE_ZERO,            ERROR_FILE_INVALID);
416c2c66affSColin Finck     cmp(STATUS_DEVICE_PAPER_EMPTY,               ERROR_OUT_OF_PAPER);
417c2c66affSColin Finck     cmp(STATUS_DEVICE_POWERED_OFF,               ERROR_NOT_READY);
418c2c66affSColin Finck     cmp(STATUS_DEVICE_OFF_LINE,                  ERROR_NOT_READY);
419c2c66affSColin Finck     cmp(STATUS_DEVICE_DATA_ERROR,                ERROR_CRC);
420c2c66affSColin Finck     cmp(STATUS_DEVICE_NOT_READY,                 ERROR_NOT_READY);
421c2c66affSColin Finck     cmp3(STATUS_DEVICE_NOT_CONNECTED,            ERROR_DEVICE_NOT_CONNECTED, ERROR_NOT_READY);
422c2c66affSColin Finck     cmp(STATUS_DEVICE_POWER_FAILURE,             ERROR_NOT_READY);
423c2c66affSColin Finck     cmp2(STATUS_INSUFFICIENT_POWER,              ERROR_INSUFFICIENT_POWER);
424c2c66affSColin Finck     cmp2(STATUS_DRIVER_FAILED_SLEEP,             ERROR_DRIVER_FAILED_SLEEP);
425c2c66affSColin Finck     cmp2(STATUS_NOT_FOUND,                       ERROR_NOT_FOUND);
426c2c66affSColin Finck     cmp2(STATUS_NO_MATCH,                        ERROR_NO_MATCH);
427c2c66affSColin Finck     cmp2(STATUS_NO_MORE_MATCHES,                 ERROR_NO_MORE_MATCHES);
428c2c66affSColin Finck     cmp2(STATUS_PROPSET_NOT_FOUND,               ERROR_SET_NOT_FOUND);
429c2c66affSColin Finck     cmp2(STATUS_FOUND_OUT_OF_SCOPE,              ERROR_FOUND_OUT_OF_SCOPE);
430c2c66affSColin Finck     cmp(STATUS_DEVICE_BUSY,                      ERROR_BUSY);
431c2c66affSColin Finck     cmp(STATUS_FREE_VM_NOT_AT_BASE,              ERROR_INVALID_ADDRESS);
432c2c66affSColin Finck     cmp(STATUS_MEMORY_NOT_ALLOCATED,             ERROR_INVALID_ADDRESS);
433c2c66affSColin Finck     cmp2(STATUS_ALLOCATE_BUCKET,                 ERROR_ALLOCATE_BUCKET);
434c2c66affSColin Finck     cmp(STATUS_NOT_SAME_DEVICE,                  ERROR_NOT_SAME_DEVICE);
435c2c66affSColin Finck     cmp(STATUS_NOT_SUPPORTED,                    ERROR_NOT_SUPPORTED);
436c2c66affSColin Finck     cmp(STATUS_REMOTE_NOT_LISTENING,             ERROR_REM_NOT_LIST);
437c2c66affSColin Finck     cmp(STATUS_DUPLICATE_NAME,                   ERROR_DUP_NAME);
438c2c66affSColin Finck     cmp(STATUS_BAD_NETWORK_PATH,                 ERROR_BAD_NETPATH);
439c2c66affSColin Finck     cmp(STATUS_NETWORK_BUSY,                     ERROR_NETWORK_BUSY);
440c2c66affSColin Finck     cmp2(STATUS_ONLY_IF_CONNECTED,               ERROR_ONLY_IF_CONNECTED);
441c2c66affSColin Finck     cmp(STATUS_DEVICE_DOES_NOT_EXIST,            ERROR_DEV_NOT_EXIST);
442c2c66affSColin Finck     cmp(STATUS_TOO_MANY_COMMANDS,                ERROR_TOO_MANY_CMDS);
443c2c66affSColin Finck     cmp(STATUS_ADAPTER_HARDWARE_ERROR,           ERROR_ADAP_HDW_ERR);
444c2c66affSColin Finck     cmp2(STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT,ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT);
445c2c66affSColin Finck     cmp(STATUS_REDIRECTOR_NOT_STARTED,           ERROR_PATH_NOT_FOUND);
446c2c66affSColin Finck     cmp(STATUS_INVALID_EA_NAME,                  ERROR_INVALID_EA_NAME);
447c2c66affSColin Finck     cmp(STATUS_EA_LIST_INCONSISTENT,             ERROR_EA_LIST_INCONSISTENT);
448c2c66affSColin Finck     cmp(STATUS_EA_TOO_LARGE,                     ERROR_EA_LIST_INCONSISTENT);
449c2c66affSColin Finck     cmp(STATUS_INVALID_EA_FLAG,                  ERROR_EA_LIST_INCONSISTENT);
450c2c66affSColin Finck     cmp2(STATUS_EAS_NOT_SUPPORTED,               ERROR_EAS_NOT_SUPPORTED);
451c2c66affSColin Finck     cmp(STATUS_FILE_CORRUPT_ERROR,               ERROR_FILE_CORRUPT);
452c2c66affSColin Finck     cmp(STATUS_EA_CORRUPT_ERROR,                 ERROR_FILE_CORRUPT);
453c2c66affSColin Finck     cmp(STATUS_NONEXISTENT_EA_ENTRY,             ERROR_FILE_CORRUPT);
454c2c66affSColin Finck     cmp(STATUS_NO_EAS_ON_FILE,                   ERROR_FILE_CORRUPT);
455c2c66affSColin Finck     cmp2(STATUS_REPARSE,                         ERROR_REPARSE);
456c2c66affSColin Finck     cmp2(STATUS_REPARSE_OBJECT,                  ERROR_REPARSE_OBJECT);
457c2c66affSColin Finck     cmp2(STATUS_NOT_A_REPARSE_POINT,             ERROR_NOT_A_REPARSE_POINT);
458c2c66affSColin Finck     cmp4(STATUS_IO_REPARSE_TAG_INVALID,          ERROR_REPARSE_TAG_INVALID, ERROR_INVALID_PARAMETER);
459c2c66affSColin Finck     cmp4(STATUS_IO_REPARSE_TAG_MISMATCH,         ERROR_REPARSE_TAG_MISMATCH, ERROR_INVALID_PARAMETER);
460c2c66affSColin Finck     cmp2(STATUS_IO_REPARSE_TAG_NOT_HANDLED,      ERROR_CANT_ACCESS_FILE);
461c2c66affSColin Finck     cmp2(STATUS_REPARSE_POINT_NOT_RESOLVED,      ERROR_CANT_RESOLVE_FILENAME);
462c2c66affSColin Finck     cmp2(STATUS_DIRECTORY_IS_A_REPARSE_POINT,    ERROR_BAD_PATHNAME);
463c2c66affSColin Finck     cmp2(STATUS_REPARSE_ATTRIBUTE_CONFLICT,      ERROR_REPARSE_ATTRIBUTE_CONFLICT);
464c2c66affSColin Finck     cmp4(STATUS_IO_REPARSE_DATA_INVALID,         ERROR_INVALID_REPARSE_DATA, ERROR_INVALID_PARAMETER);
465c2c66affSColin Finck     cmp2(STATUS_FILE_IS_OFFLINE,                 ERROR_FILE_OFFLINE);
466c2c66affSColin Finck     cmp2(STATUS_REMOTE_STORAGE_NOT_ACTIVE,       ERROR_REMOTE_STORAGE_NOT_ACTIVE);
467c2c66affSColin Finck     cmp2(STATUS_REMOTE_STORAGE_MEDIA_ERROR,      ERROR_REMOTE_STORAGE_MEDIA_ERROR);
468c2c66affSColin Finck     cmp2(STATUS_NO_TRACKING_SERVICE,             ERROR_NO_TRACKING_SERVICE);
469c2c66affSColin Finck     cmp2(STATUS_JOURNAL_DELETE_IN_PROGRESS,      ERROR_JOURNAL_DELETE_IN_PROGRESS);
470c2c66affSColin Finck     cmp2(STATUS_JOURNAL_NOT_ACTIVE,              ERROR_JOURNAL_NOT_ACTIVE);
471c2c66affSColin Finck     cmp2(STATUS_JOURNAL_ENTRY_DELETED,           ERROR_JOURNAL_ENTRY_DELETED);
472c2c66affSColin Finck     cmp2(STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED,ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED);
473c2c66affSColin Finck     cmp(STATUS_INVALID_NETWORK_RESPONSE,         ERROR_BAD_NET_RESP);
474c2c66affSColin Finck     cmp(STATUS_USER_SESSION_DELETED,             ERROR_UNEXP_NET_ERR);
475c2c66affSColin Finck     cmp(STATUS_UNEXPECTED_NETWORK_ERROR,         ERROR_UNEXP_NET_ERR);
476c2c66affSColin Finck     cmp(STATUS_BAD_REMOTE_ADAPTER,               ERROR_BAD_REM_ADAP);
477c2c66affSColin Finck     cmp(STATUS_PRINT_QUEUE_FULL,                 ERROR_PRINTQ_FULL);
478c2c66affSColin Finck     cmp(STATUS_NO_SPOOL_SPACE,                   ERROR_NO_SPOOL_SPACE);
479c2c66affSColin Finck     cmp(STATUS_PRINT_CANCELLED,                  ERROR_PRINT_CANCELLED);
480c2c66affSColin Finck     cmp(STATUS_NETWORK_NAME_DELETED,             ERROR_NETNAME_DELETED);
481c2c66affSColin Finck     cmp(STATUS_NETWORK_ACCESS_DENIED,            ERROR_NETWORK_ACCESS_DENIED);
482c2c66affSColin Finck     cmp(STATUS_BAD_DEVICE_TYPE,                  ERROR_BAD_DEV_TYPE);
483c2c66affSColin Finck     cmp(STATUS_BAD_NETWORK_NAME,                 ERROR_BAD_NET_NAME);
484c2c66affSColin Finck     cmp(STATUS_TOO_MANY_NAMES,                   ERROR_TOO_MANY_NAMES);
485c2c66affSColin Finck     cmp(STATUS_TOO_MANY_GUIDS_REQUESTED,         ERROR_TOO_MANY_NAMES);
486c2c66affSColin Finck     cmp(STATUS_TOO_MANY_ADDRESSES,               ERROR_TOO_MANY_NAMES);
487c2c66affSColin Finck     cmp(STATUS_TOO_MANY_NODES,                   ERROR_TOO_MANY_NAMES);
488c2c66affSColin Finck     cmp(STATUS_TOO_MANY_SESSIONS,                ERROR_TOO_MANY_SESS);
489c2c66affSColin Finck     cmp(STATUS_SHARING_PAUSED,                   ERROR_SHARING_PAUSED);
490c2c66affSColin Finck     cmp2(STATUS_CANT_ENABLE_DENY_ONLY,           ERROR_CANT_ENABLE_DENY_ONLY);
491c2c66affSColin Finck     cmp(STATUS_REQUEST_NOT_ACCEPTED,             ERROR_REQ_NOT_ACCEP);
492c2c66affSColin Finck     cmp(STATUS_REDIRECTOR_PAUSED,                ERROR_REDIR_PAUSED);
493c2c66affSColin Finck     cmp(STATUS_NET_WRITE_FAULT,                  ERROR_NET_WRITE_FAULT);
494c2c66affSColin Finck     cmp(STATUS_VIRTUAL_CIRCUIT_CLOSED,           ERROR_VC_DISCONNECTED);
495c2c66affSColin Finck     cmp(STATUS_INVALID_PIPE_STATE,               ERROR_BAD_PIPE);
496c2c66affSColin Finck     cmp(STATUS_INVALID_READ_MODE,                ERROR_BAD_PIPE);
497c2c66affSColin Finck     cmp(STATUS_PIPE_CLOSING,                     ERROR_NO_DATA);
498c2c66affSColin Finck     cmp(STATUS_PIPE_EMPTY,                       ERROR_NO_DATA);
499c2c66affSColin Finck     cmp(STATUS_PIPE_CONNECTED,                   ERROR_PIPE_CONNECTED);
500c2c66affSColin Finck     cmp(STATUS_PIPE_DISCONNECTED,                ERROR_PIPE_NOT_CONNECTED);
501c2c66affSColin Finck     cmp(STATUS_PIPE_LISTENING,                   ERROR_PIPE_LISTENING);
502c2c66affSColin Finck     cmp(STATUS_PIPE_NOT_AVAILABLE,               ERROR_PIPE_BUSY);
503c2c66affSColin Finck     cmp(STATUS_INSTANCE_NOT_AVAILABLE,           ERROR_PIPE_BUSY);
504c2c66affSColin Finck     cmp(STATUS_PIPE_BUSY,                        ERROR_PIPE_BUSY);
505c2c66affSColin Finck     cmp(STATUS_PIPE_BROKEN,                      ERROR_BROKEN_PIPE);
506c2c66affSColin Finck     cmp(STATUS_DIRECTORY_NOT_EMPTY,              ERROR_DIR_NOT_EMPTY);
507c2c66affSColin Finck     cmp(STATUS_TOO_MANY_OPENED_FILES,            ERROR_TOO_MANY_OPEN_FILES);
508c2c66affSColin Finck     cmp(STATUS_IO_TIMEOUT,                       ERROR_SEM_TIMEOUT);
509c2c66affSColin Finck     cmp(STATUS_CANCELLED,                        ERROR_OPERATION_ABORTED);
510c2c66affSColin Finck     cmp(STATUS_UNRECOGNIZED_MEDIA,               ERROR_UNRECOGNIZED_MEDIA);
511c2c66affSColin Finck     cmp(STATUS_INVALID_LEVEL,                    ERROR_INVALID_LEVEL);
512c2c66affSColin Finck     cmp(STATUS_UNRECOGNIZED_VOLUME,              ERROR_UNRECOGNIZED_VOLUME);
513c2c66affSColin Finck     cmp(STATUS_MEDIA_WRITE_PROTECTED,            ERROR_WRITE_PROTECT);
514c2c66affSColin Finck     cmp(STATUS_TOO_LATE,                         ERROR_WRITE_PROTECT);
515c2c66affSColin Finck     cmp(STATUS_SUCCESS,                          NO_ERROR);
516c2c66affSColin Finck     cmp(STATUS_FULLSCREEN_MODE,                  ERROR_FULLSCREEN_MODE);
517c2c66affSColin Finck     cmp(STATUS_END_OF_MEDIA,                     ERROR_END_OF_MEDIA);
518c2c66affSColin Finck     cmp(STATUS_EOM_OVERFLOW,                     ERROR_EOM_OVERFLOW);
519c2c66affSColin Finck     cmp(STATUS_BEGINNING_OF_MEDIA,               ERROR_BEGINNING_OF_MEDIA);
520c2c66affSColin Finck     cmp2(STATUS_MEDIA_CHECK,                     ERROR_MEDIA_CHECK);
521c2c66affSColin Finck     cmp(STATUS_MEDIA_CHANGED,                    ERROR_MEDIA_CHANGED);
522c2c66affSColin Finck     cmp(STATUS_BUS_RESET,                        ERROR_BUS_RESET);
523c2c66affSColin Finck     cmp(STATUS_FILEMARK_DETECTED,                ERROR_FILEMARK_DETECTED);
524c2c66affSColin Finck     cmp(STATUS_SETMARK_DETECTED,                 ERROR_SETMARK_DETECTED);
525c2c66affSColin Finck     cmp(STATUS_NO_DATA_DETECTED,                 ERROR_NO_DATA_DETECTED);
526c2c66affSColin Finck     cmp(STATUS_PARTITION_FAILURE,                ERROR_PARTITION_FAILURE);
527c2c66affSColin Finck     cmp(STATUS_INVALID_BLOCK_LENGTH,             ERROR_INVALID_BLOCK_LENGTH);
528c2c66affSColin Finck     cmp(STATUS_DEVICE_NOT_PARTITIONED,           ERROR_DEVICE_NOT_PARTITIONED);
529c2c66affSColin Finck     cmp(STATUS_UNABLE_TO_LOCK_MEDIA,             ERROR_UNABLE_TO_LOCK_MEDIA);
530c2c66affSColin Finck     cmp(STATUS_UNABLE_TO_UNLOAD_MEDIA,           ERROR_UNABLE_TO_UNLOAD_MEDIA);
531c2c66affSColin Finck     cmp2(STATUS_ILLEGAL_CHARACTER,               ERROR_ILLEGAL_CHARACTER);
532c2c66affSColin Finck     cmp(STATUS_UNMAPPABLE_CHARACTER,             ERROR_NO_UNICODE_TRANSLATION);
533c2c66affSColin Finck     cmp2(STATUS_UNDEFINED_CHARACTER,             ERROR_UNDEFINED_CHARACTER);
534c2c66affSColin Finck     cmp2(STATUS_TRANSLATION_COMPLETE,            ERROR_TRANSLATION_COMPLETE);
535c2c66affSColin Finck     cmp(STATUS_NOT_ALL_ASSIGNED,                 ERROR_NOT_ALL_ASSIGNED);
536c2c66affSColin Finck     cmp(STATUS_SOME_NOT_MAPPED,                  ERROR_SOME_NOT_MAPPED);
537c2c66affSColin Finck     cmp(STATUS_NO_QUOTAS_FOR_ACCOUNT,            ERROR_NO_QUOTAS_FOR_ACCOUNT);
538c2c66affSColin Finck     cmp2(STATUS_QUOTA_LIST_INCONSISTENT,         ERROR_QUOTA_LIST_INCONSISTENT);
539c2c66affSColin Finck     cmp(STATUS_LOCAL_USER_SESSION_KEY,           ERROR_LOCAL_USER_SESSION_KEY);
540c2c66affSColin Finck     cmp(STATUS_NULL_LM_PASSWORD,                 ERROR_NULL_LM_PASSWORD);
541c2c66affSColin Finck     cmp2(STATUS_SYNCHRONIZATION_REQUIRED,        ERROR_SYNCHRONIZATION_REQUIRED);
542c2c66affSColin Finck     cmp2(STATUS_WAKE_SYSTEM_DEBUGGER,            ERROR_WAKE_SYSTEM_DEBUGGER);
543c2c66affSColin Finck     cmp2(DBG_EXCEPTION_HANDLED,                  ERROR_DBG_EXCEPTION_HANDLED);
544c2c66affSColin Finck     cmp2(DBG_CONTINUE,                           ERROR_DBG_CONTINUE);
545c2c66affSColin Finck     cmp2(DBG_TERMINATE_THREAD,                   ERROR_DBG_TERMINATE_THREAD);
546c2c66affSColin Finck     cmp2(DBG_TERMINATE_PROCESS,                  ERROR_DBG_TERMINATE_PROCESS);
547c2c66affSColin Finck     cmp2(DBG_CONTROL_C,                          ERROR_DBG_CONTROL_C);
548c2c66affSColin Finck     cmp2(DBG_PRINTEXCEPTION_C,                   ERROR_DBG_PRINTEXCEPTION_C);
549c2c66affSColin Finck     cmp2(DBG_RIPEXCEPTION,                       ERROR_DBG_RIPEXCEPTION);
550c2c66affSColin Finck     cmp2(DBG_CONTROL_BREAK,                      ERROR_DBG_CONTROL_BREAK);
551c2c66affSColin Finck     cmp2(DBG_COMMAND_EXCEPTION,                  ERROR_DBG_COMMAND_EXCEPTION);
552c2c66affSColin Finck     cmp2(DBG_EXCEPTION_NOT_HANDLED,              ERROR_DBG_EXCEPTION_NOT_HANDLED);
553c2c66affSColin Finck     cmp2(STATUS_DEBUG_ATTACH_FAILED,             ERROR_DEBUG_ATTACH_FAILED);
554c2c66affSColin Finck     cmp2(STATUS_VALIDATE_CONTINUE,               ERROR_VALIDATE_CONTINUE);
555c2c66affSColin Finck     cmp2(STATUS_EXTRANEOUS_INFORMATION,          ERROR_EXTRANEOUS_INFORMATION);
556c2c66affSColin Finck     cmp2(STATUS_GUID_SUBSTITUTION_MADE,          ERROR_GUID_SUBSTITUTION_MADE);
557c2c66affSColin Finck     cmp2(STATUS_IMAGE_MACHINE_TYPE_MISMATCH,     ERROR_IMAGE_MACHINE_TYPE_MISMATCH);
558c2c66affSColin Finck     cmp2(STATUS_RECEIVE_PARTIAL,                 ERROR_RECEIVE_PARTIAL);
559c2c66affSColin Finck     cmp2(STATUS_RECEIVE_EXPEDITED,               ERROR_RECEIVE_EXPEDITED);
560c2c66affSColin Finck     cmp2(STATUS_RECEIVE_PARTIAL_EXPEDITED,       ERROR_RECEIVE_PARTIAL_EXPEDITED);
561c2c66affSColin Finck     cmp2(STATUS_EVENT_DONE,                      ERROR_EVENT_DONE);
562c2c66affSColin Finck     cmp2(STATUS_EVENT_PENDING,                   ERROR_EVENT_PENDING);
563c2c66affSColin Finck     cmp2(STATUS_CHECKING_FILE_SYSTEM,            ERROR_CHECKING_FILE_SYSTEM);
564c2c66affSColin Finck     cmp2(STATUS_FATAL_APP_EXIT,                  ERROR_FATAL_APP_EXIT);
565c2c66affSColin Finck     cmp2(STATUS_PREDEFINED_HANDLE,               ERROR_PREDEFINED_HANDLE);
566c2c66affSColin Finck     cmp2(STATUS_WAS_UNLOCKED,                    ERROR_WAS_UNLOCKED);
567c2c66affSColin Finck     cmp2(STATUS_SERVICE_NOTIFICATION,            ERROR_SERVICE_NOTIFICATION);
568c2c66affSColin Finck     cmp2(STATUS_WAS_LOCKED,                      ERROR_WAS_LOCKED);
569c2c66affSColin Finck     cmp2(STATUS_LOG_HARD_ERROR,                  ERROR_LOG_HARD_ERROR);
570c2c66affSColin Finck     cmp2(STATUS_ALREADY_WIN32,                   ERROR_ALREADY_WIN32);
571c2c66affSColin Finck     cmp2(STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE, ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE);
572c2c66affSColin Finck     cmp2(STATUS_NO_YIELD_PERFORMED,              ERROR_NO_YIELD_PERFORMED);
573c2c66affSColin Finck     cmp2(STATUS_TIMER_RESUME_IGNORED,            ERROR_TIMER_RESUME_IGNORED);
574c2c66affSColin Finck     cmp2(STATUS_TIMER_RESOLUTION_NOT_SET,        ERROR_TIMER_RESOLUTION_NOT_SET);
575c2c66affSColin Finck     cmp2(STATUS_ARBITRATION_UNHANDLED,           ERROR_ARBITRATION_UNHANDLED);
576c2c66affSColin Finck     cmp2(STATUS_CARDBUS_NOT_SUPPORTED,           ERROR_CARDBUS_NOT_SUPPORTED);
577c2c66affSColin Finck     cmp2(STATUS_MP_PROCESSOR_MISMATCH,           ERROR_MP_PROCESSOR_MISMATCH);
578c2c66affSColin Finck     cmp2(STATUS_HIBERNATED,                      ERROR_HIBERNATED);
579c2c66affSColin Finck     cmp2(STATUS_RESUME_HIBERNATION,              ERROR_RESUME_HIBERNATION);
580c2c66affSColin Finck     cmp2(STATUS_FIRMWARE_UPDATED,                ERROR_FIRMWARE_UPDATED);
581c2c66affSColin Finck     cmp2(STATUS_WAKE_SYSTEM,                     ERROR_WAKE_SYSTEM);
582c2c66affSColin Finck     cmp2(STATUS_WAIT_1,                          ERROR_WAIT_1);
583c2c66affSColin Finck     cmp2(STATUS_WAIT_2,                          ERROR_WAIT_2);
584c2c66affSColin Finck     cmp2(STATUS_WAIT_3,                          ERROR_WAIT_3);
585c2c66affSColin Finck     cmp2(STATUS_WAIT_63,                         ERROR_WAIT_63);
586c2c66affSColin Finck     cmp2(STATUS_ABANDONED_WAIT_0,                ERROR_WAIT_NO_CHILDREN);
587c2c66affSColin Finck     cmp2(STATUS_ABANDONED_WAIT_63,               ERROR_ABANDONED_WAIT_63);
588c2c66affSColin Finck     cmp2(STATUS_USER_APC,                        ERROR_USER_APC);
589c2c66affSColin Finck     cmp2(STATUS_KERNEL_APC,                      ERROR_KERNEL_APC);
590c2c66affSColin Finck     cmp2(STATUS_ALERTED,                         ERROR_ALERTED);
591c2c66affSColin Finck     cmp2(STATUS_NOTIFY_CLEANUP,                  ERROR_NOTIFY_CLEANUP);
592c2c66affSColin Finck     cmp2(STATUS_NO_CALLBACK_ACTIVE,              ERROR_NO_CALLBACK_ACTIVE);
593c2c66affSColin Finck     cmp4(STATUS_NOINTERFACE,                     ERROR_NOINTERFACE, E_NOINTERFACE);
594c2c66affSColin Finck     cmp(STATUS_BAD_INHERITANCE_ACL,              ERROR_BAD_INHERITANCE_ACL);
595c2c66affSColin Finck     cmp(STATUS_INVALID_GROUP_ATTRIBUTES,         ERROR_INVALID_GROUP_ATTRIBUTES);
596c2c66affSColin Finck     cmp(STATUS_BAD_IMPERSONATION_LEVEL,          ERROR_BAD_IMPERSONATION_LEVEL);
597c2c66affSColin Finck     cmp2(STATUS_ELEVATION_REQUIRED,              ERROR_ELEVATION_REQUIRED);
598c2c66affSColin Finck     cmp(STATUS_CANT_OPEN_ANONYMOUS,              ERROR_CANT_OPEN_ANONYMOUS);
599c2c66affSColin Finck     cmp(STATUS_BAD_VALIDATION_CLASS,             ERROR_BAD_VALIDATION_CLASS);
600c2c66affSColin Finck     cmp(STATUS_BAD_TOKEN_TYPE,                   ERROR_BAD_TOKEN_TYPE);
601c2c66affSColin Finck     cmp2(STATUS_BAD_MASTER_BOOT_RECORD,          ERROR_INVALID_PARAMETER);
602c2c66affSColin Finck     cmp(STATUS_NO_SECURITY_ON_OBJECT,            ERROR_NO_SECURITY_ON_OBJECT);
603c2c66affSColin Finck     cmp(STATUS_CANT_ACCESS_DOMAIN_INFO,          ERROR_CANT_ACCESS_DOMAIN_INFO);
604c2c66affSColin Finck     cmp(STATUS_INVALID_SERVER_STATE,             ERROR_INVALID_SERVER_STATE);
605c2c66affSColin Finck     cmp(STATUS_INVALID_DOMAIN_STATE,             ERROR_INVALID_DOMAIN_STATE);
606c2c66affSColin Finck     cmp(STATUS_INVALID_DOMAIN_ROLE,              ERROR_INVALID_DOMAIN_ROLE);
607c2c66affSColin Finck     cmp(STATUS_NO_SUCH_DOMAIN,                   ERROR_NO_SUCH_DOMAIN);
608c2c66affSColin Finck     cmp(STATUS_DOMAIN_EXISTS,                    ERROR_DOMAIN_EXISTS);
609c2c66affSColin Finck     cmp(STATUS_DOMAIN_LIMIT_EXCEEDED,            ERROR_DOMAIN_LIMIT_EXCEEDED);
610c2c66affSColin Finck     cmp2(STATUS_OPLOCK_NOT_GRANTED,              ERROR_OPLOCK_NOT_GRANTED);
611c2c66affSColin Finck     cmp2(STATUS_INVALID_OPLOCK_PROTOCOL,         ERROR_INVALID_OPLOCK_PROTOCOL);
612c2c66affSColin Finck     cmp2(STATUS_OPLOCK_BREAK_IN_PROGRESS,        ERROR_OPLOCK_BREAK_IN_PROGRESS);
613c2c66affSColin Finck     cmp(STATUS_INTERNAL_DB_CORRUPTION,           ERROR_INTERNAL_DB_CORRUPTION);
614c2c66affSColin Finck     cmp(STATUS_INTERNAL_ERROR,                   ERROR_INTERNAL_ERROR);
615c2c66affSColin Finck     cmp(STATUS_GENERIC_NOT_MAPPED,               ERROR_GENERIC_NOT_MAPPED);
616c2c66affSColin Finck     cmp(STATUS_BAD_DESCRIPTOR_FORMAT,            ERROR_BAD_DESCRIPTOR_FORMAT);
617c2c66affSColin Finck     cmp(STATUS_NOT_LOGON_PROCESS,                ERROR_NOT_LOGON_PROCESS);
618c2c66affSColin Finck     cmp(STATUS_LOGON_SESSION_EXISTS,             ERROR_LOGON_SESSION_EXISTS);
619c2c66affSColin Finck     cmp(STATUS_NO_SUCH_PACKAGE,                  ERROR_NO_SUCH_PACKAGE);
620c2c66affSColin Finck     cmp(STATUS_BAD_LOGON_SESSION_STATE,          ERROR_BAD_LOGON_SESSION_STATE);
621c2c66affSColin Finck     cmp(STATUS_LOGON_SESSION_COLLISION,          ERROR_LOGON_SESSION_COLLISION);
622c2c66affSColin Finck     cmp(STATUS_INVALID_LOGON_TYPE,               ERROR_INVALID_LOGON_TYPE);
623c2c66affSColin Finck     cmp2(STATUS_LOGON_SERVER_CONFLICT,           ERROR_LOGON_SERVER_CONFLICT);
624c2c66affSColin Finck     cmp2(STATUS_SERVER_SID_MISMATCH,             ERROR_SERVER_SID_MISMATCH);
625c2c66affSColin Finck     cmp2(STATUS_RXACT_STATE_CREATED,             ERROR_RXACT_STATE_CREATED);
626c2c66affSColin Finck     cmp(STATUS_RXACT_INVALID_STATE,              ERROR_RXACT_INVALID_STATE);
627c2c66affSColin Finck     cmp2(STATUS_RXACT_COMMITTED,                 ERROR_RXACT_COMMITTED);
628c2c66affSColin Finck     cmp2(STATUS_RXACT_COMMIT_NECESSARY,          ERROR_RXACT_COMMIT_NECESSARY);
629c2c66affSColin Finck     cmp(STATUS_RXACT_COMMIT_FAILURE,             ERROR_RXACT_COMMIT_FAILURE);
630c2c66affSColin Finck     cmp(STATUS_SPECIAL_ACCOUNT,                  ERROR_SPECIAL_ACCOUNT);
631c2c66affSColin Finck     cmp(STATUS_SPECIAL_USER,                     ERROR_SPECIAL_USER);
632c2c66affSColin Finck     cmp(STATUS_MEMBERS_PRIMARY_GROUP,            ERROR_MEMBERS_PRIMARY_GROUP);
633c2c66affSColin Finck     cmp(STATUS_TOKEN_ALREADY_IN_USE,             ERROR_TOKEN_ALREADY_IN_USE);
634c2c66affSColin Finck     cmp(STATUS_NO_SUCH_ALIAS,                    ERROR_NO_SUCH_ALIAS);
635c2c66affSColin Finck     cmp(STATUS_MEMBER_NOT_IN_ALIAS,              ERROR_MEMBER_NOT_IN_ALIAS);
636c2c66affSColin Finck     cmp(STATUS_MEMBER_IN_ALIAS,                  ERROR_MEMBER_IN_ALIAS);
637c2c66affSColin Finck     cmp(STATUS_ALIAS_EXISTS,                     ERROR_ALIAS_EXISTS);
638c2c66affSColin Finck     cmp(STATUS_LOGON_NOT_GRANTED,                ERROR_LOGON_NOT_GRANTED);
639c2c66affSColin Finck     cmp(STATUS_TOO_MANY_SECRETS,                 ERROR_TOO_MANY_SECRETS);
640c2c66affSColin Finck     cmp(STATUS_SECRET_TOO_LONG,                  ERROR_SECRET_TOO_LONG);
641c2c66affSColin Finck     cmp(STATUS_INTERNAL_DB_ERROR,                ERROR_INTERNAL_DB_ERROR);
642c2c66affSColin Finck     cmp(STATUS_TOO_MANY_CONTEXT_IDS,             ERROR_TOO_MANY_CONTEXT_IDS);
643c2c66affSColin Finck     cmp(STATUS_LOGON_TYPE_NOT_GRANTED,           ERROR_LOGON_TYPE_NOT_GRANTED);
644c2c66affSColin Finck     cmp(STATUS_NT_CROSS_ENCRYPTION_REQUIRED,     ERROR_NT_CROSS_ENCRYPTION_REQUIRED);
645c2c66affSColin Finck     cmp(STATUS_NO_SUCH_MEMBER,                   ERROR_NO_SUCH_MEMBER);
646c2c66affSColin Finck     cmp(STATUS_INVALID_MEMBER,                   ERROR_INVALID_MEMBER);
647c2c66affSColin Finck     cmp(STATUS_TOO_MANY_SIDS,                    ERROR_TOO_MANY_SIDS);
648c2c66affSColin Finck     cmp2(STATUS_ALL_SIDS_FILTERED,               ERROR_ALL_SIDS_FILTERED);
649c2c66affSColin Finck     cmp2(STATUS_INSUFFICIENT_LOGON_INFO,         ERROR_INSUFFICIENT_LOGON_INFO);
650c2c66affSColin Finck     cmp(STATUS_LM_CROSS_ENCRYPTION_REQUIRED,     ERROR_LM_CROSS_ENCRYPTION_REQUIRED);
651c2c66affSColin Finck     cmp(STATUS_MESSAGE_NOT_FOUND,                ERROR_MR_MID_NOT_FOUND);
652c2c66affSColin Finck     cmp2(STATUS_CONTROL_C_EXIT,                  ERROR_CONTROL_C_EXIT);
653c2c66affSColin Finck     cmp(STATUS_LOCAL_DISCONNECT,                 ERROR_NETNAME_DELETED);
654c2c66affSColin Finck     cmp(STATUS_REMOTE_DISCONNECT,                ERROR_NETNAME_DELETED);
655c2c66affSColin Finck     cmp(STATUS_REMOTE_RESOURCES,                 ERROR_REM_NOT_LIST);
656c2c66affSColin Finck     cmp(STATUS_LINK_FAILED,                      ERROR_UNEXP_NET_ERR);
657c2c66affSColin Finck     cmp(STATUS_LINK_TIMEOUT,                     ERROR_UNEXP_NET_ERR);
658c2c66affSColin Finck     cmp(STATUS_INVALID_CONNECTION,               ERROR_UNEXP_NET_ERR);
659c2c66affSColin Finck     cmp(STATUS_INVALID_ADDRESS,                  ERROR_UNEXP_NET_ERR);
660c2c66affSColin Finck     cmp2(STATUS_IP_ADDRESS_CONFLICT1,            ERROR_IP_ADDRESS_CONFLICT1);
661c2c66affSColin Finck     cmp2(STATUS_IP_ADDRESS_CONFLICT2,            ERROR_IP_ADDRESS_CONFLICT2);
662c2c66affSColin Finck     cmp2(STATUS_MISSING_SYSTEMFILE,              ERROR_MISSING_SYSTEMFILE);
663c2c66affSColin Finck     cmp2(STATUS_CORRUPT_SYSTEM_FILE,             ERROR_CORRUPT_SYSTEM_FILE);
664c2c66affSColin Finck     cmp2(STATUS_SYSTEM_IMAGE_BAD_SIGNATURE,      ERROR_SYSTEM_IMAGE_BAD_SIGNATURE);
665c2c66affSColin Finck     cmp2(STATUS_CRASH_DUMP,                      ERROR_CRASH_DUMP);
666c2c66affSColin Finck     cmp2(STATUS_LONGJUMP,                        ERROR_LONGJUMP);
667c2c66affSColin Finck     cmp2(STATUS_UNWIND_CONSOLIDATE,              ERROR_UNWIND_CONSOLIDATE);
668c2c66affSColin Finck     cmp2(STATUS_UNHANDLED_EXCEPTION,             ERROR_UNHANDLED_EXCEPTION);
669c2c66affSColin Finck     cmp2(STATUS_MCA_OCCURED,                     ERROR_MCA_OCCURED);
670c2c66affSColin Finck     cmp2(STATUS_APP_INIT_FAILURE,                ERROR_APP_INIT_FAILURE);
671c2c66affSColin Finck     cmp2(STATUS_ILLEGAL_FLOAT_CONTEXT,           ERROR_ILLEGAL_FLOAT_CONTEXT);
672c2c66affSColin Finck     cmp2(STATUS_FLOAT_MULTIPLE_FAULTS,           ERROR_FLOAT_MULTIPLE_FAULTS);
673c2c66affSColin Finck     cmp2(STATUS_FLOAT_MULTIPLE_TRAPS,            ERROR_FLOAT_MULTIPLE_TRAPS);
674c2c66affSColin Finck     cmp2(STATUS_NO_EVENT_PAIR,                   ERROR_NO_EVENT_PAIR);
675c2c66affSColin Finck     cmp2(STATUS_DOMAIN_CTRLR_CONFIG_ERROR,       ERROR_DOMAIN_CTRLR_CONFIG_ERROR);
676c2c66affSColin Finck     cmp(STATUS_IO_DEVICE_ERROR,                  ERROR_IO_DEVICE);
677c2c66affSColin Finck     cmp(STATUS_DEVICE_PROTOCOL_ERROR,            ERROR_IO_DEVICE);
678c2c66affSColin Finck     cmp(STATUS_DRIVER_INTERNAL_ERROR,            ERROR_IO_DEVICE);
679c2c66affSColin Finck     cmp(STATUS_INVALID_DEVICE_STATE,             ERROR_BAD_COMMAND);
680c2c66affSColin Finck     cmp(STATUS_DEVICE_CONFIGURATION_ERROR,       ERROR_INVALID_PARAMETER);
681c2c66affSColin Finck     cmp2(STATUS_DEVICE_ENUMERATION_ERROR,        ERROR_DEVICE_ENUMERATION_ERROR);
682c2c66affSColin Finck     cmp2(STATUS_INVALID_DEVICE_OBJECT_PARAMETER, ERROR_INVALID_DEVICE_OBJECT_PARAMETER);
683c2c66affSColin Finck     cmp2(STATUS_SOURCE_ELEMENT_EMPTY,            ERROR_SOURCE_ELEMENT_EMPTY);
684c2c66affSColin Finck     cmp2(STATUS_DESTINATION_ELEMENT_FULL,        ERROR_DESTINATION_ELEMENT_FULL);
685c2c66affSColin Finck     cmp2(STATUS_ILLEGAL_ELEMENT_ADDRESS,         ERROR_ILLEGAL_ELEMENT_ADDRESS);
686c2c66affSColin Finck     cmp2(STATUS_MAGAZINE_NOT_PRESENT,            ERROR_MAGAZINE_NOT_PRESENT);
687c2c66affSColin Finck     cmp2(STATUS_REINITIALIZATION_NEEDED,         ERROR_DEVICE_REINITIALIZATION_NEEDED);
688c2c66affSColin Finck     cmp2(STATUS_DEVICE_REQUIRES_CLEANING,        ERROR_DEVICE_REQUIRES_CLEANING);
689c2c66affSColin Finck     cmp2(STATUS_DEVICE_DOOR_OPEN,                ERROR_DEVICE_DOOR_OPEN);
690c2c66affSColin Finck     cmp2(STATUS_TRANSPORT_FULL,                  ERROR_TRANSPORT_FULL);
691c2c66affSColin Finck     cmp2(STATUS_CLEANER_CARTRIDGE_INSTALLED,     ERROR_CLEANER_CARTRIDGE_INSTALLED);
692c2c66affSColin Finck     cmp2(STATUS_REG_NAT_CONSUMPTION,             ERROR_REG_NAT_CONSUMPTION);
693c2c66affSColin Finck     cmp4(STATUS_ENCRYPTION_FAILED,               ERROR_ACCESS_DENIED, ERROR_ENCRYPTION_FAILED);
694c2c66affSColin Finck     cmp4(STATUS_DECRYPTION_FAILED,               ERROR_ACCESS_DENIED, ERROR_DECRYPTION_FAILED);
695c2c66affSColin Finck     cmp4(STATUS_NO_RECOVERY_POLICY,              ERROR_ACCESS_DENIED, ERROR_NO_RECOVERY_POLICY);
696c2c66affSColin Finck     cmp4(STATUS_NO_EFS,                          ERROR_ACCESS_DENIED, ERROR_NO_EFS);
697c2c66affSColin Finck     cmp4(STATUS_WRONG_EFS,                       ERROR_ACCESS_DENIED, ERROR_WRONG_EFS);
698c2c66affSColin Finck     cmp4(STATUS_NO_USER_KEYS,                    ERROR_ACCESS_DENIED, ERROR_NO_USER_KEYS);
699c2c66affSColin Finck     cmp2(STATUS_FILE_NOT_ENCRYPTED,              ERROR_FILE_NOT_ENCRYPTED);
700c2c66affSColin Finck     cmp2(STATUS_NOT_EXPORT_FORMAT,               ERROR_NOT_EXPORT_FORMAT);
701c2c66affSColin Finck     cmp2(STATUS_FILE_ENCRYPTED,                  ERROR_FILE_ENCRYPTED);
702c2c66affSColin Finck     cmp2(STATUS_EFS_ALG_BLOB_TOO_BIG,            ERROR_EFS_ALG_BLOB_TOO_BIG);
703c2c66affSColin Finck     cmp2(STATUS_BUFFER_ALL_ZEROS,                ERROR_BUFFER_ALL_ZEROS);
704c2c66affSColin Finck     cmp(STATUS_INVALID_USER_BUFFER,              ERROR_INVALID_USER_BUFFER);
705c2c66affSColin Finck     cmp2(STATUS_BAD_COMPRESSION_BUFFER,          ERROR_BAD_COMPRESSION_BUFFER);
706c2c66affSColin Finck     cmp2(STATUS_UNSUPPORTED_COMPRESSION,         ERROR_UNSUPPORTED_COMPRESSION);
707c2c66affSColin Finck     cmp(STATUS_SERIAL_NO_DEVICE_INITED,          ERROR_SERIAL_NO_DEVICE);
708c2c66affSColin Finck     cmp(STATUS_SHARED_IRQ_BUSY,                  ERROR_IRQ_BUSY);
709c2c66affSColin Finck     cmp(STATUS_SERIAL_MORE_WRITES,               ERROR_MORE_WRITES);
710c2c66affSColin Finck     cmp(STATUS_SERIAL_COUNTER_TIMEOUT,           ERROR_COUNTER_TIMEOUT);
711c2c66affSColin Finck     cmp(STATUS_FLOPPY_ID_MARK_NOT_FOUND,         ERROR_FLOPPY_ID_MARK_NOT_FOUND);
712c2c66affSColin Finck     cmp(STATUS_FLOPPY_WRONG_CYLINDER,            ERROR_FLOPPY_WRONG_CYLINDER);
713c2c66affSColin Finck     cmp(STATUS_FLOPPY_UNKNOWN_ERROR,             ERROR_FLOPPY_UNKNOWN_ERROR);
714c2c66affSColin Finck     cmp(STATUS_FLOPPY_BAD_REGISTERS,             ERROR_FLOPPY_BAD_REGISTERS);
715c2c66affSColin Finck     cmp2(STATUS_FLOPPY_VOLUME,                   ERROR_FLOPPY_VOLUME);
716c2c66affSColin Finck     cmp(STATUS_DISK_RECALIBRATE_FAILED,          ERROR_DISK_RECALIBRATE_FAILED);
717c2c66affSColin Finck     cmp(STATUS_DISK_OPERATION_FAILED,            ERROR_DISK_OPERATION_FAILED);
718c2c66affSColin Finck     cmp(STATUS_DISK_RESET_FAILED,                ERROR_DISK_RESET_FAILED);
719c2c66affSColin Finck     cmp(STATUS_EVENTLOG_FILE_CORRUPT,            ERROR_EVENTLOG_FILE_CORRUPT);
720c2c66affSColin Finck     cmp(STATUS_EVENTLOG_CANT_START,              ERROR_EVENTLOG_CANT_START);
721c2c66affSColin Finck     cmp(STATUS_NETLOGON_NOT_STARTED,             ERROR_NETLOGON_NOT_STARTED);
722c2c66affSColin Finck     cmp(STATUS_ACCOUNT_EXPIRED,                  ERROR_ACCOUNT_EXPIRED);
723c2c66affSColin Finck     cmp(STATUS_NETWORK_CREDENTIAL_CONFLICT,      ERROR_SESSION_CREDENTIAL_CONFLICT);
724c2c66affSColin Finck     cmp(STATUS_REMOTE_SESSION_LIMIT,             ERROR_REMOTE_SESSION_LIMIT_EXCEEDED);
725c2c66affSColin Finck     cmp(STATUS_INVALID_BUFFER_SIZE,              ERROR_INVALID_USER_BUFFER);
726c2c66affSColin Finck     cmp(STATUS_INVALID_ADDRESS_COMPONENT,        ERROR_INVALID_NETNAME);
727c2c66affSColin Finck     cmp(STATUS_INVALID_ADDRESS_WILDCARD,         ERROR_INVALID_NETNAME);
728c2c66affSColin Finck     cmp(STATUS_ADDRESS_ALREADY_EXISTS,           ERROR_DUP_NAME);
729c2c66affSColin Finck     cmp(STATUS_ADDRESS_CLOSED,                   ERROR_NETNAME_DELETED);
730c2c66affSColin Finck     cmp(STATUS_CONNECTION_DISCONNECTED,          ERROR_NETNAME_DELETED);
731c2c66affSColin Finck     cmp(STATUS_CONNECTION_RESET,                 ERROR_NETNAME_DELETED);
732c2c66affSColin Finck     cmp(STATUS_TRANSACTION_ABORTED,              ERROR_UNEXP_NET_ERR);
733c2c66affSColin Finck     cmp(STATUS_TRANSACTION_TIMED_OUT,            ERROR_UNEXP_NET_ERR);
734c2c66affSColin Finck     cmp(STATUS_TRANSACTION_NO_RELEASE,           ERROR_UNEXP_NET_ERR);
735c2c66affSColin Finck     cmp(STATUS_TRANSACTION_NO_MATCH,             ERROR_UNEXP_NET_ERR);
736c2c66affSColin Finck     cmp(STATUS_TRANSACTION_RESPONDED,            ERROR_UNEXP_NET_ERR);
737c2c66affSColin Finck     cmp(STATUS_TRANSACTION_INVALID_ID,           ERROR_UNEXP_NET_ERR);
738c2c66affSColin Finck     cmp(STATUS_TRANSACTION_INVALID_TYPE,         ERROR_UNEXP_NET_ERR);
739c2c66affSColin Finck     cmp(STATUS_NOT_SERVER_SESSION,               ERROR_NOT_SUPPORTED);
740c2c66affSColin Finck     cmp(STATUS_NOT_CLIENT_SESSION,               ERROR_NOT_SUPPORTED);
741c2c66affSColin Finck     cmp2(STATUS_CLIENT_SERVER_PARAMETERS_INVALID,ERROR_CLIENT_SERVER_PARAMETERS_INVALID);
742c2c66affSColin Finck     cmp(STATUS_USER_MAPPED_FILE,                 ERROR_USER_MAPPED_FILE);
743c2c66affSColin Finck     cmp2(STATUS_INVALID_HW_PROFILE,              ERROR_INVALID_HW_PROFILE);
744c2c66affSColin Finck     cmp(STATUS_PLUGPLAY_NO_DEVICE,               ERROR_SERVICE_DISABLED);
745c2c66affSColin Finck     cmp2(STATUS_PLUGPLAY_QUERY_VETOED,           ERROR_PLUGPLAY_QUERY_VETOED);
746c2c66affSColin Finck     cmp2(STATUS_INVALID_PLUGPLAY_DEVICE_PATH,    ERROR_INVALID_PLUGPLAY_DEVICE_PATH);
747c2c66affSColin Finck     cmp2(STATUS_PNP_RESTART_ENUMERATION,         ERROR_PNP_RESTART_ENUMERATION);
748c2c66affSColin Finck     cmp2(STATUS_PNP_REBOOT_REQUIRED,             ERROR_PNP_REBOOT_REQUIRED);
749c2c66affSColin Finck     cmp2(STATUS_WMI_GUID_NOT_FOUND,              ERROR_WMI_GUID_NOT_FOUND);
750c2c66affSColin Finck     cmp2(STATUS_WMI_INSTANCE_NOT_FOUND,          ERROR_WMI_INSTANCE_NOT_FOUND);
751c2c66affSColin Finck     cmp2(STATUS_WMI_ITEMID_NOT_FOUND,            ERROR_WMI_ITEMID_NOT_FOUND);
752c2c66affSColin Finck     cmp2(STATUS_WMI_TRY_AGAIN,                   ERROR_WMI_TRY_AGAIN);
753c2c66affSColin Finck     cmp2(STATUS_WMI_READ_ONLY,                   ERROR_WMI_READ_ONLY);
754c2c66affSColin Finck     cmp2(STATUS_WMI_SET_FAILURE,                 ERROR_WMI_SET_FAILURE);
755c2c66affSColin Finck     cmp2(STATUS_WMI_NOT_SUPPORTED,               ERROR_NOT_SUPPORTED);
756c2c66affSColin Finck     cmp2(STATUS_WMI_GUID_DISCONNECTED,           ERROR_WMI_GUID_DISCONNECTED);
757c2c66affSColin Finck     cmp2(STATUS_WMI_ALREADY_DISABLED,            ERROR_WMI_ALREADY_DISABLED);
758c2c66affSColin Finck     cmp2(STATUS_WMI_ALREADY_ENABLED,             ERROR_WMI_ALREADY_ENABLED);
759c2c66affSColin Finck     cmp2(STATUS_COPY_PROTECTION_FAILURE,         STG_E_STATUS_COPY_PROTECTION_FAILURE);
760c2c66affSColin Finck     cmp2(STATUS_CSS_AUTHENTICATION_FAILURE,      STG_E_CSS_AUTHENTICATION_FAILURE);
761c2c66affSColin Finck     cmp2(STATUS_CSS_KEY_NOT_PRESENT,             STG_E_CSS_KEY_NOT_PRESENT);
762c2c66affSColin Finck     cmp2(STATUS_CSS_KEY_NOT_ESTABLISHED,         STG_E_CSS_KEY_NOT_ESTABLISHED);
763c2c66affSColin Finck     cmp2(STATUS_CSS_SCRAMBLED_SECTOR,            STG_E_CSS_SCRAMBLED_SECTOR);
764c2c66affSColin Finck     cmp2(STATUS_CSS_REGION_MISMATCH,             STG_E_CSS_REGION_MISMATCH);
765c2c66affSColin Finck     cmp2(STATUS_CSS_RESETS_EXHAUSTED,            STG_E_RESETS_EXHAUSTED);
766c2c66affSColin Finck     cmp(RPC_NT_SERVER_UNAVAILABLE,               RPC_S_SERVER_UNAVAILABLE);
767c2c66affSColin Finck     cmp(RPC_NT_INVALID_STRING_BINDING,           RPC_S_INVALID_STRING_BINDING);
768c2c66affSColin Finck     cmp(RPC_NT_WRONG_KIND_OF_BINDING,            RPC_S_WRONG_KIND_OF_BINDING);
769c2c66affSColin Finck     cmp(RPC_NT_PROTSEQ_NOT_SUPPORTED,            RPC_S_PROTSEQ_NOT_SUPPORTED);
770c2c66affSColin Finck     cmp(RPC_NT_INVALID_RPC_PROTSEQ,              RPC_S_INVALID_RPC_PROTSEQ);
771c2c66affSColin Finck     cmp(RPC_NT_INVALID_STRING_UUID,              RPC_S_INVALID_STRING_UUID);
772c2c66affSColin Finck     cmp(RPC_NT_INVALID_ENDPOINT_FORMAT,          RPC_S_INVALID_ENDPOINT_FORMAT);
773c2c66affSColin Finck     cmp(RPC_NT_INVALID_NET_ADDR,                 RPC_S_INVALID_NET_ADDR);
774c2c66affSColin Finck     cmp(RPC_NT_NO_ENDPOINT_FOUND,                RPC_S_NO_ENDPOINT_FOUND);
775c2c66affSColin Finck     cmp(RPC_NT_INVALID_TIMEOUT,                  RPC_S_INVALID_TIMEOUT);
776c2c66affSColin Finck     cmp(RPC_NT_OBJECT_NOT_FOUND,                 RPC_S_OBJECT_NOT_FOUND);
777c2c66affSColin Finck     cmp(RPC_NT_ALREADY_REGISTERED,               RPC_S_ALREADY_REGISTERED);
778c2c66affSColin Finck     cmp(RPC_NT_TYPE_ALREADY_REGISTERED,          RPC_S_TYPE_ALREADY_REGISTERED);
779c2c66affSColin Finck     cmp(RPC_NT_ALREADY_LISTENING,                RPC_S_ALREADY_LISTENING);
780c2c66affSColin Finck     cmp(RPC_NT_NO_PROTSEQS_REGISTERED,           RPC_S_NO_PROTSEQS_REGISTERED);
781c2c66affSColin Finck     cmp(RPC_NT_NOT_LISTENING,                    RPC_S_NOT_LISTENING);
782c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_MGR_TYPE,                 RPC_S_UNKNOWN_MGR_TYPE);
783c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_IF,                       RPC_S_UNKNOWN_IF);
784c2c66affSColin Finck     cmp(RPC_NT_NO_BINDINGS,                      RPC_S_NO_BINDINGS);
785c2c66affSColin Finck     cmp(RPC_NT_NO_MORE_BINDINGS,                 RPC_S_NO_MORE_BINDINGS);
786c2c66affSColin Finck     cmp(RPC_NT_NO_PROTSEQS,                      RPC_S_NO_PROTSEQS);
787c2c66affSColin Finck     cmp(RPC_NT_CANT_CREATE_ENDPOINT,             RPC_S_CANT_CREATE_ENDPOINT);
788c2c66affSColin Finck     cmp(RPC_NT_OUT_OF_RESOURCES,                 RPC_S_OUT_OF_RESOURCES);
789c2c66affSColin Finck     cmp(RPC_NT_SERVER_TOO_BUSY,                  RPC_S_SERVER_TOO_BUSY);
790c2c66affSColin Finck     cmp(RPC_NT_INVALID_NETWORK_OPTIONS,          RPC_S_INVALID_NETWORK_OPTIONS);
791c2c66affSColin Finck     cmp(RPC_NT_NO_CALL_ACTIVE,                   RPC_S_NO_CALL_ACTIVE);
792c2c66affSColin Finck     cmp(RPC_NT_CALL_FAILED,                      RPC_S_CALL_FAILED);
793c2c66affSColin Finck     cmp(RPC_NT_CALL_FAILED_DNE,                  RPC_S_CALL_FAILED_DNE);
794c2c66affSColin Finck     cmp(RPC_NT_PROTOCOL_ERROR,                   RPC_S_PROTOCOL_ERROR);
795c2c66affSColin Finck     cmp(RPC_NT_UNSUPPORTED_TRANS_SYN,            RPC_S_UNSUPPORTED_TRANS_SYN);
796c2c66affSColin Finck     cmp(RPC_NT_UNSUPPORTED_TYPE,                 RPC_S_UNSUPPORTED_TYPE);
797c2c66affSColin Finck     cmp(RPC_NT_INVALID_TAG,                      RPC_S_INVALID_TAG);
798c2c66affSColin Finck     cmp(RPC_NT_INVALID_BOUND,                    RPC_S_INVALID_BOUND);
799c2c66affSColin Finck     cmp(RPC_NT_NO_ENTRY_NAME,                    RPC_S_NO_ENTRY_NAME);
800c2c66affSColin Finck     cmp(RPC_NT_INVALID_NAME_SYNTAX,              RPC_S_INVALID_NAME_SYNTAX);
801c2c66affSColin Finck     cmp(RPC_NT_UNSUPPORTED_NAME_SYNTAX,          RPC_S_UNSUPPORTED_NAME_SYNTAX);
802c2c66affSColin Finck     cmp(RPC_NT_UUID_NO_ADDRESS,                  RPC_S_UUID_NO_ADDRESS);
803c2c66affSColin Finck     cmp(RPC_NT_DUPLICATE_ENDPOINT,               RPC_S_DUPLICATE_ENDPOINT);
804c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_AUTHN_TYPE,               RPC_S_UNKNOWN_AUTHN_TYPE);
805c2c66affSColin Finck     cmp(RPC_NT_MAX_CALLS_TOO_SMALL,              RPC_S_MAX_CALLS_TOO_SMALL);
806c2c66affSColin Finck     cmp(RPC_NT_STRING_TOO_LONG,                  RPC_S_STRING_TOO_LONG);
807c2c66affSColin Finck     cmp(RPC_NT_PROTSEQ_NOT_FOUND,                RPC_S_PROTSEQ_NOT_FOUND);
808c2c66affSColin Finck     cmp(RPC_NT_PROCNUM_OUT_OF_RANGE,             RPC_S_PROCNUM_OUT_OF_RANGE);
809c2c66affSColin Finck     cmp(RPC_NT_BINDING_HAS_NO_AUTH,              RPC_S_BINDING_HAS_NO_AUTH);
810c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_AUTHN_SERVICE,            RPC_S_UNKNOWN_AUTHN_SERVICE);
811c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_AUTHN_LEVEL,              RPC_S_UNKNOWN_AUTHN_LEVEL);
812c2c66affSColin Finck     cmp(RPC_NT_INVALID_AUTH_IDENTITY,            RPC_S_INVALID_AUTH_IDENTITY);
813c2c66affSColin Finck     cmp(RPC_NT_UNKNOWN_AUTHZ_SERVICE,            RPC_S_UNKNOWN_AUTHZ_SERVICE);
814c2c66affSColin Finck     cmp(EPT_NT_INVALID_ENTRY,                    EPT_S_INVALID_ENTRY);
815c2c66affSColin Finck     cmp(EPT_NT_CANT_PERFORM_OP,                  EPT_S_CANT_PERFORM_OP);
816c2c66affSColin Finck     cmp(EPT_NT_NOT_REGISTERED,                   EPT_S_NOT_REGISTERED);
817c2c66affSColin Finck     cmp(RPC_NT_NOTHING_TO_EXPORT,                RPC_S_NOTHING_TO_EXPORT);
818c2c66affSColin Finck     cmp(RPC_NT_INCOMPLETE_NAME,                  RPC_S_INCOMPLETE_NAME);
819c2c66affSColin Finck     cmp(RPC_NT_INVALID_VERS_OPTION,              RPC_S_INVALID_VERS_OPTION);
820c2c66affSColin Finck     cmp(RPC_NT_NO_MORE_MEMBERS,                  RPC_S_NO_MORE_MEMBERS);
821c2c66affSColin Finck     cmp(RPC_NT_NOT_ALL_OBJS_UNEXPORTED,          RPC_S_NOT_ALL_OBJS_UNEXPORTED);
822c2c66affSColin Finck     cmp(RPC_NT_INTERFACE_NOT_FOUND,              RPC_S_INTERFACE_NOT_FOUND);
823c2c66affSColin Finck     cmp(RPC_NT_ENTRY_ALREADY_EXISTS,             RPC_S_ENTRY_ALREADY_EXISTS);
824c2c66affSColin Finck     cmp(RPC_NT_ENTRY_NOT_FOUND,                  RPC_S_ENTRY_NOT_FOUND);
825c2c66affSColin Finck     cmp(RPC_NT_NAME_SERVICE_UNAVAILABLE,         RPC_S_NAME_SERVICE_UNAVAILABLE);
826c2c66affSColin Finck     cmp(RPC_NT_INVALID_NAF_ID,                   RPC_S_INVALID_NAF_ID);
827c2c66affSColin Finck     cmp(RPC_NT_CANNOT_SUPPORT,                   RPC_S_CANNOT_SUPPORT);
828c2c66affSColin Finck     cmp(RPC_NT_NO_CONTEXT_AVAILABLE,             RPC_S_NO_CONTEXT_AVAILABLE);
829c2c66affSColin Finck     cmp(RPC_NT_INTERNAL_ERROR,                   RPC_S_INTERNAL_ERROR);
830c2c66affSColin Finck     cmp(RPC_NT_ZERO_DIVIDE,                      RPC_S_ZERO_DIVIDE);
831c2c66affSColin Finck     cmp(RPC_NT_ADDRESS_ERROR,                    RPC_S_ADDRESS_ERROR);
832c2c66affSColin Finck     cmp(RPC_NT_FP_DIV_ZERO,                      RPC_S_FP_DIV_ZERO);
833c2c66affSColin Finck     cmp(RPC_NT_FP_UNDERFLOW,                     RPC_S_FP_UNDERFLOW);
834c2c66affSColin Finck     cmp(RPC_NT_FP_OVERFLOW,                      RPC_S_FP_OVERFLOW);
835c2c66affSColin Finck     cmp(RPC_NT_NO_MORE_ENTRIES,                  RPC_X_NO_MORE_ENTRIES);
836c2c66affSColin Finck     cmp(RPC_NT_SS_CHAR_TRANS_OPEN_FAIL,          RPC_X_SS_CHAR_TRANS_OPEN_FAIL);
837c2c66affSColin Finck     cmp(RPC_NT_SS_CHAR_TRANS_SHORT_FILE,         RPC_X_SS_CHAR_TRANS_SHORT_FILE);
838c2c66affSColin Finck     cmp(RPC_NT_SS_CONTEXT_MISMATCH,              ERROR_INVALID_HANDLE);
839c2c66affSColin Finck     cmp(RPC_NT_SS_CONTEXT_DAMAGED,               RPC_X_SS_CONTEXT_DAMAGED);
840c2c66affSColin Finck     cmp(RPC_NT_SS_HANDLES_MISMATCH,              RPC_X_SS_HANDLES_MISMATCH);
841c2c66affSColin Finck     cmp(RPC_NT_SS_CANNOT_GET_CALL_HANDLE,        RPC_X_SS_CANNOT_GET_CALL_HANDLE);
842c2c66affSColin Finck     cmp(RPC_NT_NULL_REF_POINTER,                 RPC_X_NULL_REF_POINTER);
843c2c66affSColin Finck     cmp(RPC_NT_ENUM_VALUE_OUT_OF_RANGE,          RPC_X_ENUM_VALUE_OUT_OF_RANGE);
844c2c66affSColin Finck     cmp(RPC_NT_BYTE_COUNT_TOO_SMALL,             RPC_X_BYTE_COUNT_TOO_SMALL);
845c2c66affSColin Finck     cmp(RPC_NT_BAD_STUB_DATA,                    RPC_X_BAD_STUB_DATA);
846c2c66affSColin Finck     cmp(RPC_NT_INVALID_OBJECT,                   RPC_S_INVALID_OBJECT);
847c2c66affSColin Finck     cmp(STATUS_NO_TRUST_LSA_SECRET,              ERROR_NO_TRUST_LSA_SECRET);
848c2c66affSColin Finck     cmp(STATUS_NO_TRUST_SAM_ACCOUNT,             ERROR_NO_TRUST_SAM_ACCOUNT);
849c2c66affSColin Finck     cmp(STATUS_TRUSTED_DOMAIN_FAILURE,           ERROR_TRUSTED_DOMAIN_FAILURE);
850c2c66affSColin Finck     cmp(STATUS_TRUSTED_RELATIONSHIP_FAILURE,     ERROR_TRUSTED_RELATIONSHIP_FAILURE);
851c2c66affSColin Finck     cmp(STATUS_TRUST_FAILURE,                    ERROR_TRUST_FAILURE);
852c2c66affSColin Finck     cmp(RPC_NT_CALL_IN_PROGRESS,                 RPC_S_CALL_IN_PROGRESS);
853c2c66affSColin Finck     cmp(STATUS_LOG_FILE_FULL,                    ERROR_LOG_FILE_FULL);
854c2c66affSColin Finck     cmp(STATUS_EVENTLOG_FILE_CHANGED,            ERROR_EVENTLOG_FILE_CHANGED);
855c2c66affSColin Finck     cmp(STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT, ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT);
856c2c66affSColin Finck     cmp(STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT);
857c2c66affSColin Finck     cmp(STATUS_NOLOGON_SERVER_TRUST_ACCOUNT,     ERROR_NOLOGON_SERVER_TRUST_ACCOUNT);
858c2c66affSColin Finck     cmp(STATUS_DOMAIN_TRUST_INCONSISTENT,        ERROR_DOMAIN_TRUST_INCONSISTENT);
859c2c66affSColin Finck     cmp(STATUS_NO_USER_SESSION_KEY,              ERROR_NO_USER_SESSION_KEY);
860c2c66affSColin Finck     cmp(STATUS_POSSIBLE_DEADLOCK,                ERROR_POSSIBLE_DEADLOCK);
861c2c66affSColin Finck     cmp(STATUS_IMAGE_ALREADY_LOADED,             ERROR_SERVICE_ALREADY_RUNNING);
862c2c66affSColin Finck     cmp(RPC_NT_GROUP_MEMBER_NOT_FOUND,           RPC_S_GROUP_MEMBER_NOT_FOUND);
863c2c66affSColin Finck     cmp(RPC_NT_NO_INTERFACES,                    RPC_S_NO_INTERFACES);
864c2c66affSColin Finck     cmp(RPC_NT_CALL_CANCELLED,                   RPC_S_CALL_CANCELLED);
865c2c66affSColin Finck     cmp(RPC_NT_BINDING_INCOMPLETE,               RPC_S_BINDING_INCOMPLETE);
866c2c66affSColin Finck     cmp(RPC_NT_COMM_FAILURE,                     RPC_S_COMM_FAILURE);
867c2c66affSColin Finck     cmp(RPC_NT_UNSUPPORTED_AUTHN_LEVEL,          RPC_S_UNSUPPORTED_AUTHN_LEVEL);
868c2c66affSColin Finck     cmp(RPC_NT_NO_PRINC_NAME,                    RPC_S_NO_PRINC_NAME);
869c2c66affSColin Finck     cmp(RPC_NT_NOT_RPC_ERROR,                    RPC_S_NOT_RPC_ERROR);
870c2c66affSColin Finck     cmp(RPC_NT_UUID_LOCAL_ONLY,                  RPC_S_UUID_LOCAL_ONLY);
871c2c66affSColin Finck     cmp(RPC_NT_SEC_PKG_ERROR,                    RPC_S_SEC_PKG_ERROR);
872c2c66affSColin Finck     cmp(RPC_NT_NOT_CANCELLED,                    RPC_S_NOT_CANCELLED);
873c2c66affSColin Finck     cmp(RPC_NT_INVALID_ES_ACTION,                RPC_X_INVALID_ES_ACTION);
874c2c66affSColin Finck     cmp(RPC_NT_WRONG_ES_VERSION,                 RPC_X_WRONG_ES_VERSION);
875c2c66affSColin Finck     cmp(RPC_NT_WRONG_STUB_VERSION,               RPC_X_WRONG_STUB_VERSION);
876c2c66affSColin Finck     cmp(RPC_NT_INVALID_PIPE_OBJECT,              RPC_X_INVALID_PIPE_OBJECT);
877c2c66affSColin Finck     cmp(RPC_NT_INVALID_PIPE_OPERATION,           RPC_X_INVALID_PIPE_OPERATION);
878c2c66affSColin Finck     cmp(RPC_NT_WRONG_PIPE_VERSION,               RPC_X_WRONG_PIPE_VERSION);
879c2c66affSColin Finck     cmp(EPT_NT_CANT_CREATE,                      EPT_S_CANT_CREATE);
880c2c66affSColin Finck     cmp(RPC_NT_SEND_INCOMPLETE,                  RPC_S_SEND_INCOMPLETE);
881c2c66affSColin Finck     cmp2(RPC_NT_INVALID_ASYNC_HANDLE,            RPC_S_INVALID_ASYNC_HANDLE);
882c2c66affSColin Finck     cmp2(RPC_NT_INVALID_ASYNC_CALL,              RPC_S_INVALID_ASYNC_CALL);
883c2c66affSColin Finck     cmp2(RPC_NT_PIPE_CLOSED,                     RPC_X_PIPE_CLOSED);
884c2c66affSColin Finck     cmp2(RPC_NT_PIPE_EMPTY,                      RPC_X_PIPE_EMPTY);
885c2c66affSColin Finck     cmp2(RPC_NT_PIPE_DISCIPLINE_ERROR,           RPC_X_PIPE_DISCIPLINE_ERROR);
886c2c66affSColin Finck     cmp(STATUS_NO_BROWSER_SERVERS_FOUND,         ERROR_NO_BROWSER_SERVERS_FOUND);
887c2c66affSColin Finck     cmp(STATUS_MAPPED_ALIGNMENT,                 ERROR_MAPPED_ALIGNMENT);
888c2c66affSColin Finck     cmp(STATUS_CONNECTION_IN_USE,                ERROR_DEVICE_IN_USE);
889c2c66affSColin Finck     cmp(STATUS_VERIFY_REQUIRED,                  ERROR_MEDIA_CHANGED);
890c2c66affSColin Finck     cmp(STATUS_ALREADY_DISCONNECTED,             ERROR_ACTIVE_CONNECTIONS);
891c2c66affSColin Finck     cmp(STATUS_CONNECTION_REFUSED,               ERROR_CONNECTION_REFUSED);
892c2c66affSColin Finck     cmp(STATUS_GRACEFUL_DISCONNECT,              ERROR_GRACEFUL_DISCONNECT);
893c2c66affSColin Finck     cmp(STATUS_ADDRESS_ALREADY_ASSOCIATED,       ERROR_ADDRESS_ALREADY_ASSOCIATED);
894c2c66affSColin Finck     cmp(STATUS_ADDRESS_NOT_ASSOCIATED,           ERROR_ADDRESS_NOT_ASSOCIATED);
895c2c66affSColin Finck     cmp(STATUS_CONNECTION_INVALID,               ERROR_CONNECTION_INVALID);
896c2c66affSColin Finck     cmp(STATUS_CONNECTION_ACTIVE,                ERROR_CONNECTION_ACTIVE);
897c2c66affSColin Finck     cmp(STATUS_NETWORK_UNREACHABLE,              ERROR_NETWORK_UNREACHABLE);
898c2c66affSColin Finck     cmp(STATUS_HOST_UNREACHABLE,                 ERROR_HOST_UNREACHABLE);
899c2c66affSColin Finck     cmp2(STATUS_HOST_DOWN,                       ERROR_HOST_DOWN);
900c2c66affSColin Finck     cmp(STATUS_PROTOCOL_UNREACHABLE,             ERROR_PROTOCOL_UNREACHABLE);
901c2c66affSColin Finck     cmp(STATUS_PORT_UNREACHABLE,                 ERROR_PORT_UNREACHABLE);
902c2c66affSColin Finck     cmp(STATUS_REQUEST_ABORTED,                  ERROR_REQUEST_ABORTED);
903c2c66affSColin Finck     cmp(STATUS_CONNECTION_ABORTED,               ERROR_CONNECTION_ABORTED);
904c2c66affSColin Finck     cmp(STATUS_CONNECTION_COUNT_LIMIT,           ERROR_CONNECTION_COUNT_LIMIT);
905c2c66affSColin Finck     cmp(STATUS_PATH_NOT_COVERED,                 ERROR_HOST_UNREACHABLE);
906c2c66affSColin Finck     cmp(STATUS_LOGIN_TIME_RESTRICTION,           ERROR_LOGIN_TIME_RESTRICTION);
907c2c66affSColin Finck     cmp(STATUS_LOGIN_WKSTA_RESTRICTION,          ERROR_LOGIN_WKSTA_RESTRICTION);
908c2c66affSColin Finck     cmp(STATUS_LICENSE_QUOTA_EXCEEDED,           ERROR_LICENSE_QUOTA_EXCEEDED);
909c2c66affSColin Finck     cmp(STATUS_RESOURCE_NOT_OWNED,               ERROR_NOT_OWNER);
910c2c66affSColin Finck     cmp3(STATUS_DUPLICATE_OBJECTID,              ERROR_OBJECT_ALREADY_EXISTS, STATUS_DUPLICATE_OBJECTID);
911c2c66affSColin Finck     cmp3(STATUS_OBJECTID_EXISTS,                 ERROR_OBJECT_ALREADY_EXISTS, STATUS_OBJECTID_EXISTS);
912c2c66affSColin Finck     cmp2(STATUS_OBJECTID_NOT_FOUND,              ERROR_FILE_NOT_FOUND);
913c2c66affSColin Finck     cmp2(STATUS_MFT_TOO_FRAGMENTED,              ERROR_DISK_TOO_FRAGMENTED);
914c2c66affSColin Finck     cmp(SEC_E_INSUFFICIENT_MEMORY,               ERROR_NO_SYSTEM_RESOURCES);
915c2c66affSColin Finck     cmp(SEC_E_INVALID_HANDLE,                    ERROR_INVALID_HANDLE);
916c2c66affSColin Finck     cmp(SEC_E_UNSUPPORTED_FUNCTION,              ERROR_INVALID_FUNCTION);
917c2c66affSColin Finck     cmp(SEC_E_TARGET_UNKNOWN,                    ERROR_BAD_NETPATH);
918c2c66affSColin Finck     cmp(SEC_E_INTERNAL_ERROR,                    ERROR_INTERNAL_ERROR);
919c2c66affSColin Finck     cmp(SEC_E_SECPKG_NOT_FOUND,                  ERROR_NO_SUCH_PACKAGE);
920c2c66affSColin Finck     cmp(SEC_E_NOT_OWNER,                         ERROR_NOT_OWNER);
921c2c66affSColin Finck     cmp(SEC_E_CANNOT_INSTALL,                    ERROR_NO_SUCH_PACKAGE);
922c2c66affSColin Finck     cmp(SEC_E_INVALID_TOKEN,                     ERROR_INVALID_PARAMETER);
923c2c66affSColin Finck     cmp(SEC_E_CANNOT_PACK,                       ERROR_INVALID_PARAMETER);
924c2c66affSColin Finck     cmp(SEC_E_QOP_NOT_SUPPORTED,                 ERROR_NOT_SUPPORTED);
925c2c66affSColin Finck     cmp(SEC_E_NO_IMPERSONATION,                  ERROR_CANNOT_IMPERSONATE);
926c2c66affSColin Finck     cmp2(SEC_E_MULTIPLE_ACCOUNTS,                ERROR_CANNOT_IMPERSONATE);
927c2c66affSColin Finck     cmp(SEC_E_LOGON_DENIED,                      ERROR_LOGON_FAILURE);
928c2c66affSColin Finck     cmp(SEC_E_UNKNOWN_CREDENTIALS,               ERROR_INVALID_PARAMETER);
929c2c66affSColin Finck     cmp2(SEC_E_INCOMPLETE_CREDENTIALS,           ERROR_INVALID_PARAMETER);
930c2c66affSColin Finck     cmp(SEC_E_NO_CREDENTIALS,                    ERROR_NO_SUCH_LOGON_SESSION);
931c2c66affSColin Finck     cmp(SEC_E_MESSAGE_ALTERED,                   ERROR_ACCESS_DENIED);
932c2c66affSColin Finck     cmp(SEC_E_OUT_OF_SEQUENCE,                   ERROR_ACCESS_DENIED);
933c2c66affSColin Finck     cmp(SEC_E_NO_AUTHENTICATING_AUTHORITY,       ERROR_NO_LOGON_SERVERS);
934c2c66affSColin Finck     cmp(SEC_E_BAD_PKGID,                         ERROR_NO_SUCH_PACKAGE);
935c2c66affSColin Finck     cmp4(SEC_E_WRONG_PRINCIPAL,                  ERROR_WRONG_TARGET_NAME, 1462);
936c2c66affSColin Finck     cmp2(SEC_E_INCOMPLETE_MESSAGE,               ERROR_INVALID_USER_BUFFER);
937c2c66affSColin Finck     cmp2(SEC_E_BUFFER_TOO_SMALL,                 ERROR_INSUFFICIENT_BUFFER);
938c2c66affSColin Finck     cmp2(SEC_E_UNTRUSTED_ROOT,                   ERROR_TRUST_FAILURE);
939c2c66affSColin Finck     cmp2(SEC_E_ILLEGAL_MESSAGE,                  ERROR_INVALID_PARAMETER);
940c2c66affSColin Finck     cmp2(SEC_E_CERT_UNKNOWN,                     ERROR_INVALID_PARAMETER);
941c2c66affSColin Finck     cmp2(SEC_E_CERT_EXPIRED,                     ERROR_PASSWORD_EXPIRED);
942c2c66affSColin Finck     cmp2(SEC_E_ENCRYPT_FAILURE,                  ERROR_ENCRYPTION_FAILED);
943c2c66affSColin Finck     cmp2(SEC_E_DECRYPT_FAILURE,                  ERROR_DECRYPTION_FAILED);
944c2c66affSColin Finck     cmp2(SEC_E_ALGORITHM_MISMATCH,               ERROR_INVALID_FUNCTION);
945c2c66affSColin Finck     cmp2(SEC_E_CONTEXT_EXPIRED,                  ERROR_CONTEXT_EXPIRED);
946c2c66affSColin Finck     cmp2(STATUS_BAD_BINDINGS,                    SEC_E_BAD_BINDINGS);
947c2c66affSColin Finck     cmp2(TRUST_E_CERT_SIGNATURE,                 ERROR_MUTUAL_AUTH_FAILED);
948c2c66affSColin Finck     cmp2(CRYPT_E_REVOKED,                        ERROR_MUTUAL_AUTH_FAILED);
949c2c66affSColin Finck     cmp2(CRYPT_E_NO_REVOCATION_CHECK,            ERROR_MUTUAL_AUTH_FAILED);
950c2c66affSColin Finck     cmp2(CRYPT_E_REVOCATION_OFFLINE,             ERROR_MUTUAL_AUTH_FAILED);
951c2c66affSColin Finck     cmp2(STATUS_SHUTDOWN_IN_PROGRESS,            ERROR_SHUTDOWN_IN_PROGRESS);
952c2c66affSColin Finck     cmp2(STATUS_SERVER_SHUTDOWN_IN_PROGRESS,     ERROR_SERVER_SHUTDOWN_IN_PROGRESS);
953c2c66affSColin Finck     cmp2(STATUS_SYSTEM_SHUTDOWN,                 ERROR_SYSTEM_SHUTDOWN);
954c2c66affSColin Finck     cmp4(STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY, ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY, 1922);
955c2c66affSColin Finck     cmp4(STATUS_DS_NO_ATTRIBUTE_OR_VALUE,        ERROR_DS_NO_ATTRIBUTE_OR_VALUE, 1923);
956c2c66affSColin Finck     cmp4(STATUS_DS_INVALID_ATTRIBUTE_SYNTAX,     ERROR_DS_INVALID_ATTRIBUTE_SYNTAX, 1924);
957c2c66affSColin Finck     cmp4(STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED,     ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED, 1925);
958c2c66affSColin Finck     cmp4(STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS,    ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS, 1926);
959c2c66affSColin Finck     cmp4(STATUS_DS_BUSY,                         ERROR_DS_BUSY, 1927);
960c2c66affSColin Finck     cmp4(STATUS_DS_UNAVAILABLE,                  ERROR_DS_UNAVAILABLE, 1928);
961c2c66affSColin Finck     cmp4(STATUS_DS_NO_RIDS_ALLOCATED,            ERROR_DS_NO_RIDS_ALLOCATED, 1929);
962c2c66affSColin Finck     cmp4(STATUS_DS_NO_MORE_RIDS,                 ERROR_DS_NO_MORE_RIDS, 1930);
963c2c66affSColin Finck     cmp4(STATUS_DS_INCORRECT_ROLE_OWNER,         ERROR_DS_INCORRECT_ROLE_OWNER, 1931);
964c2c66affSColin Finck     cmp4(STATUS_DS_RIDMGR_INIT_ERROR,            ERROR_DS_RIDMGR_INIT_ERROR, 1932);
965c2c66affSColin Finck     cmp4(STATUS_DS_OBJ_CLASS_VIOLATION,          ERROR_DS_OBJ_CLASS_VIOLATION, 1933);
966c2c66affSColin Finck     cmp4(STATUS_DS_CANT_ON_NON_LEAF,             ERROR_DS_CANT_ON_NON_LEAF, 1934);
967c2c66affSColin Finck     cmp4(STATUS_DS_CANT_ON_RDN,                  ERROR_DS_CANT_ON_RDN, 1935);
968c2c66affSColin Finck     cmp4(STATUS_DS_CROSS_DOM_MOVE_FAILED,        ERROR_DS_CROSS_DOM_MOVE_ERROR, 1937);
969c2c66affSColin Finck     cmp4(STATUS_DS_GC_NOT_AVAILABLE,             ERROR_DS_GC_NOT_AVAILABLE, 1938);
970c2c66affSColin Finck     cmp2(STATUS_DS_CANT_MOD_OBJ_CLASS,           ERROR_DS_CANT_MOD_OBJ_CLASS);
971c2c66affSColin Finck     cmp2(STATUS_DS_ADMIN_LIMIT_EXCEEDED,         ERROR_DS_ADMIN_LIMIT_EXCEEDED);
972c2c66affSColin Finck     cmp2(STATUS_DIRECTORY_SERVICE_REQUIRED,      ERROR_DS_DS_REQUIRED);
973c2c66affSColin Finck     cmp2(STATUS_DS_SAM_INIT_FAILURE,             ERROR_DS_SAM_INIT_FAILURE);
974c2c66affSColin Finck     cmp2(STATUS_DS_CANT_START,                   ERROR_DS_CANT_START);
975c2c66affSColin Finck     cmp2(STATUS_DS_INIT_FAILURE,                 ERROR_DS_INIT_FAILURE);
976c2c66affSColin Finck     cmp2(STATUS_SAM_INIT_FAILURE,                ERROR_SAM_INIT_FAILURE);
977c2c66affSColin Finck     cmp2(STATUS_DS_SENSITIVE_GROUP_VIOLATION,    ERROR_DS_SENSITIVE_GROUP_VIOLATION);
978c2c66affSColin Finck     cmp2(STATUS_DS_CANT_MOD_PRIMARYGROUPID,      ERROR_DS_CANT_MOD_PRIMARYGROUPID);
979c2c66affSColin Finck     cmp2(STATUS_DS_INVALID_GROUP_TYPE,           ERROR_DS_INVALID_GROUP_TYPE);
980c2c66affSColin Finck     cmp2(STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN,           ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN);
981c2c66affSColin Finck     cmp2(STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN,            ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN);
982c2c66affSColin Finck     cmp2(STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER,                ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER);
983c2c66affSColin Finck     cmp2(STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER,            ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER);
984c2c66affSColin Finck     cmp2(STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER,             ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER);
985c2c66affSColin Finck     cmp2(STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER,          ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER);
986c2c66affSColin Finck     cmp2(STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER,     ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER);
987c2c66affSColin Finck     cmp2(STATUS_DS_HAVE_PRIMARY_MEMBERS,         ERROR_DS_HAVE_PRIMARY_MEMBERS);
988c2c66affSColin Finck     cmp2(STATUS_DS_GC_REQUIRED,                  ERROR_DS_GC_REQUIRED);
989c2c66affSColin Finck     cmp2(STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY,   ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY);
990c2c66affSColin Finck     cmp2(STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS,   ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS);
991c2c66affSColin Finck     cmp2(STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED,ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED);
992c2c66affSColin Finck     cmp2(STATUS_SAM_NEED_BOOTKEY_PASSWORD,       ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD);
993c2c66affSColin Finck     cmp2(STATUS_SAM_NEED_BOOTKEY_FLOPPY,         ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY);
994c2c66affSColin Finck     cmp2(STATUS_DS_INIT_FAILURE_CONSOLE,         ERROR_DS_INIT_FAILURE_CONSOLE);
995c2c66affSColin Finck     cmp2(STATUS_DS_SAM_INIT_FAILURE_CONSOLE,     ERROR_DS_SAM_INIT_FAILURE_CONSOLE);
996c2c66affSColin Finck     cmp2(STATUS_DS_VERSION_CHECK_FAILURE,        ERROR_DS_VERSION_CHECK_FAILURE);
997c2c66affSColin Finck     cmp2(STATUS_UNFINISHED_CONTEXT_DELETED,      SEC_E_UNFINISHED_CONTEXT_DELETED);
998c2c66affSColin Finck     cmp2(STATUS_NO_TGT_REPLY,                    SEC_E_NO_TGT_REPLY);
999c2c66affSColin Finck     cmp2(STATUS_NO_IP_ADDRESSES,                 SEC_E_NO_IP_ADDRESSES);
1000c2c66affSColin Finck     cmp2(STATUS_WRONG_CREDENTIAL_HANDLE,         SEC_E_WRONG_CREDENTIAL_HANDLE);
1001c2c66affSColin Finck     cmp2(STATUS_CRYPTO_SYSTEM_INVALID,           SEC_E_CRYPTO_SYSTEM_INVALID);
1002c2c66affSColin Finck     cmp2(STATUS_MAX_REFERRALS_EXCEEDED,          SEC_E_MAX_REFERRALS_EXCEEDED);
1003c2c66affSColin Finck     cmp2(STATUS_MUST_BE_KDC,                     SEC_E_MUST_BE_KDC);
1004c2c66affSColin Finck     cmp2(STATUS_STRONG_CRYPTO_NOT_SUPPORTED,     SEC_E_STRONG_CRYPTO_NOT_SUPPORTED);
1005c2c66affSColin Finck     cmp2(STATUS_TOO_MANY_PRINCIPALS,             SEC_E_TOO_MANY_PRINCIPALS);
1006c2c66affSColin Finck     cmp2(STATUS_NO_PA_DATA,                      SEC_E_NO_PA_DATA);
1007c2c66affSColin Finck     cmp2(STATUS_PKINIT_NAME_MISMATCH,            SEC_E_PKINIT_NAME_MISMATCH);
1008c2c66affSColin Finck     cmp2(STATUS_SMARTCARD_LOGON_REQUIRED,        SEC_E_SMARTCARD_LOGON_REQUIRED);
1009c2c66affSColin Finck     cmp2(STATUS_KDC_INVALID_REQUEST,             SEC_E_KDC_INVALID_REQUEST);
1010c2c66affSColin Finck     cmp2(STATUS_KDC_UNABLE_TO_REFER,             SEC_E_KDC_UNABLE_TO_REFER);
1011c2c66affSColin Finck     cmp2(STATUS_KDC_UNKNOWN_ETYPE,               SEC_E_KDC_UNKNOWN_ETYPE);
1012c2c66affSColin Finck     cmp2(STATUS_UNSUPPORTED_PREAUTH,             SEC_E_UNSUPPORTED_PREAUTH);
1013c2c66affSColin Finck     cmp4(STATUS_SHARED_POLICY,                   ERROR_SHARED_POLICY, 1939);
1014c2c66affSColin Finck     cmp4(STATUS_POLICY_OBJECT_NOT_FOUND,         ERROR_POLICY_OBJECT_NOT_FOUND, 1940);
1015c2c66affSColin Finck     cmp4(STATUS_POLICY_ONLY_IN_DS,               ERROR_POLICY_ONLY_IN_DS, 1941);
1016c2c66affSColin Finck     cmp4(STATUS_DEVICE_REMOVED,                  ERROR_DEVICE_REMOVED, 617);
1017c2c66affSColin Finck     cmp2(STATUS_RETRY,                           ERROR_RETRY);
1018c2c66affSColin Finck     cmp2(STATUS_NOT_SUPPORTED_ON_SBS,            ERROR_NOT_SUPPORTED_ON_SBS);
1019c2c66affSColin Finck     cmp2(STATUS_DRIVER_BLOCKED_CRITICAL,         ERROR_DRIVER_BLOCKED);
1020c2c66affSColin Finck     cmp2(STATUS_DRIVER_BLOCKED,                  ERROR_DRIVER_BLOCKED);
1021c2c66affSColin Finck     cmp2(STATUS_DRIVER_CANCEL_TIMEOUT,           ERROR_DRIVER_CANCEL_TIMEOUT);
1022c2c66affSColin Finck     cmp2(STATUS_PRENT4_MACHINE_ACCOUNT,          ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4);
1023c2c66affSColin Finck     cmp2(STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER,ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER);
1024c2c66affSColin Finck     cmp2(STATUS_DS_SHUTTING_DOWN,                ERROR_DS_SHUTTING_DOWN);
1025c2c66affSColin Finck     cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT,       ERROR_ACCESS_DISABLED_BY_POLICY);
1026c2c66affSColin Finck     cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_PATH,          ERROR_ACCESS_DISABLED_BY_POLICY);
1027c2c66affSColin Finck     cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER,     ERROR_ACCESS_DISABLED_BY_POLICY);
1028c2c66affSColin Finck     cmp2(STATUS_ACCESS_DISABLED_BY_POLICY_OTHER, ERROR_ACCESS_DISABLED_BY_POLICY);
1029c2c66affSColin Finck     cmp2(STATUS_FAIL_CHECK,                      ERROR_INVALID_PARAMETER);
1030c2c66affSColin Finck     cmp2(STATUS_CTX_CLOSE_PENDING,               ERROR_CTX_CLOSE_PENDING);
1031c2c66affSColin Finck     cmp2(STATUS_CTX_NO_OUTBUF,                   ERROR_CTX_NO_OUTBUF);
1032c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_INF_NOT_FOUND,         ERROR_CTX_MODEM_INF_NOT_FOUND);
1033c2c66affSColin Finck     cmp2(STATUS_CTX_INVALID_MODEMNAME,           ERROR_CTX_INVALID_MODEMNAME);
1034c2c66affSColin Finck     cmp2(STATUS_CTX_RESPONSE_ERROR,              ERROR_CTX_MODEM_RESPONSE_ERROR);
1035c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_RESPONSE_TIMEOUT,      ERROR_CTX_MODEM_RESPONSE_TIMEOUT);
1036c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_RESPONSE_NO_CARRIER,   ERROR_CTX_MODEM_RESPONSE_NO_CARRIER);
1037c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE,  ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE);
1038c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_RESPONSE_BUSY,         ERROR_CTX_MODEM_RESPONSE_BUSY);
1039c2c66affSColin Finck     cmp2(STATUS_CTX_MODEM_RESPONSE_VOICE,        ERROR_CTX_MODEM_RESPONSE_VOICE);
1040c2c66affSColin Finck     cmp2(STATUS_CTX_TD_ERROR,                    ERROR_CTX_TD_ERROR);
1041c2c66affSColin Finck     cmp2(STATUS_CTX_WINSTATION_NAME_INVALID,     ERROR_CTX_WINSTATION_NAME_INVALID);
1042c2c66affSColin Finck     cmp2(STATUS_CTX_WINSTATION_NOT_FOUND,        ERROR_CTX_WINSTATION_NOT_FOUND);
1043c2c66affSColin Finck     cmp2(STATUS_CTX_WINSTATION_NAME_COLLISION,   ERROR_CTX_WINSTATION_ALREADY_EXISTS);
1044c2c66affSColin Finck     cmp2(STATUS_CTX_WINSTATION_BUSY,             ERROR_CTX_WINSTATION_BUSY);
1045c2c66affSColin Finck     cmp2(STATUS_CTX_GRAPHICS_INVALID,            ERROR_CTX_GRAPHICS_INVALID);
1046c2c66affSColin Finck     cmp2(STATUS_CTX_BAD_VIDEO_MODE,              ERROR_CTX_BAD_VIDEO_MODE);
1047c2c66affSColin Finck     cmp2(STATUS_CTX_NOT_CONSOLE,                 ERROR_CTX_NOT_CONSOLE);
1048c2c66affSColin Finck     cmp2(STATUS_CTX_CLIENT_QUERY_TIMEOUT,        ERROR_CTX_CLIENT_QUERY_TIMEOUT);
1049c2c66affSColin Finck     cmp2(STATUS_CTX_CONSOLE_DISCONNECT,          ERROR_CTX_CONSOLE_DISCONNECT);
1050c2c66affSColin Finck     cmp2(STATUS_CTX_CONSOLE_CONNECT,             ERROR_CTX_CONSOLE_CONNECT);
1051c2c66affSColin Finck     cmp2(STATUS_CTX_SHADOW_DENIED,               ERROR_CTX_SHADOW_DENIED);
1052c2c66affSColin Finck     cmp2(STATUS_CTX_SHADOW_INVALID,              ERROR_CTX_SHADOW_INVALID);
1053c2c66affSColin Finck     cmp2(STATUS_CTX_SHADOW_DISABLED,             ERROR_CTX_SHADOW_DISABLED);
1054c2c66affSColin Finck     cmp2(STATUS_CTX_WINSTATION_ACCESS_DENIED,    ERROR_CTX_WINSTATION_ACCESS_DENIED);
1055c2c66affSColin Finck     cmp2(STATUS_CTX_INVALID_PD,                  ERROR_CTX_INVALID_PD);
1056c2c66affSColin Finck     cmp2(STATUS_CTX_PD_NOT_FOUND,                ERROR_CTX_PD_NOT_FOUND);
1057c2c66affSColin Finck     cmp2(STATUS_CTX_INVALID_WD,                  ERROR_CTX_INVALID_WD);
1058c2c66affSColin Finck     cmp2(STATUS_CTX_WD_NOT_FOUND,                ERROR_CTX_WD_NOT_FOUND);
1059c2c66affSColin Finck     cmp2(STATUS_CTX_CLIENT_LICENSE_IN_USE,       ERROR_CTX_CLIENT_LICENSE_IN_USE);
1060c2c66affSColin Finck     cmp2(STATUS_CTX_CLIENT_LICENSE_NOT_SET,      ERROR_CTX_CLIENT_LICENSE_NOT_SET);
1061c2c66affSColin Finck     cmp2(STATUS_CTX_LICENSE_NOT_AVAILABLE,       ERROR_CTX_LICENSE_NOT_AVAILABLE);
1062c2c66affSColin Finck     cmp2(STATUS_CTX_LICENSE_CLIENT_INVALID,      ERROR_CTX_LICENSE_CLIENT_INVALID);
1063c2c66affSColin Finck     cmp2(STATUS_CTX_LICENSE_EXPIRED,             ERROR_CTX_LICENSE_EXPIRED);
1064c2c66affSColin Finck     cmp2(STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE, ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE);
1065c2c66affSColin Finck     cmp2(STATUS_CTX_SHADOW_NOT_RUNNING,          ERROR_CTX_SHADOW_NOT_RUNNING);
1066c2c66affSColin Finck     cmp2(STATUS_LICENSE_VIOLATION,               ERROR_CTX_LICENSE_NOT_AVAILABLE);
1067c2c66affSColin Finck     cmp2(STATUS_EVALUATION_EXPIRATION,           ERROR_EVALUATION_EXPIRATION);
1068c2c66affSColin Finck     cmp2(STATUS_NETWORK_SESSION_EXPIRED,         ERROR_NO_USER_SESSION_KEY);
1069c2c66affSColin Finck     cmp2(STATUS_FILES_OPEN,                      ERROR_OPEN_FILES);
1070c2c66affSColin Finck     cmp2(STATUS_SXS_SECTION_NOT_FOUND,           ERROR_SXS_SECTION_NOT_FOUND);
1071c2c66affSColin Finck     cmp2(STATUS_SXS_CANT_GEN_ACTCTX,             ERROR_SXS_CANT_GEN_ACTCTX);
1072c2c66affSColin Finck     cmp2(STATUS_SXS_INVALID_ACTCTXDATA_FORMAT,   ERROR_SXS_INVALID_ACTCTXDATA_FORMAT);
1073c2c66affSColin Finck     cmp2(STATUS_SXS_ASSEMBLY_NOT_FOUND,          ERROR_SXS_ASSEMBLY_NOT_FOUND);
1074c2c66affSColin Finck     cmp2(STATUS_SXS_MANIFEST_FORMAT_ERROR,       ERROR_SXS_MANIFEST_FORMAT_ERROR);
1075c2c66affSColin Finck     cmp2(STATUS_SXS_MANIFEST_PARSE_ERROR,        ERROR_SXS_MANIFEST_PARSE_ERROR);
1076c2c66affSColin Finck     cmp2(STATUS_SXS_ACTIVATION_CONTEXT_DISABLED, ERROR_SXS_ACTIVATION_CONTEXT_DISABLED);
1077c2c66affSColin Finck     cmp2(STATUS_SXS_KEY_NOT_FOUND,               ERROR_SXS_KEY_NOT_FOUND);
1078c2c66affSColin Finck     cmp2(STATUS_SXS_VERSION_CONFLICT,            ERROR_SXS_VERSION_CONFLICT);
1079c2c66affSColin Finck     cmp2(STATUS_SXS_WRONG_SECTION_TYPE,          ERROR_SXS_WRONG_SECTION_TYPE);
1080c2c66affSColin Finck     cmp2(STATUS_SXS_THREAD_QUERIES_DISABLED,     ERROR_SXS_THREAD_QUERIES_DISABLED);
1081c2c66affSColin Finck     cmp2(STATUS_SXS_ASSEMBLY_MISSING,            ERROR_SXS_ASSEMBLY_MISSING);
1082c2c66affSColin Finck     cmp2(STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET, ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET);
1083c2c66affSColin Finck     cmp2(STATUS_SXS_EARLY_DEACTIVATION,          ERROR_SXS_EARLY_DEACTIVATION);
1084c2c66affSColin Finck     cmp2(STATUS_SXS_INVALID_DEACTIVATION,        ERROR_SXS_INVALID_DEACTIVATION);
1085c2c66affSColin Finck     cmp2(STATUS_SXS_MULTIPLE_DEACTIVATION,       ERROR_SXS_MULTIPLE_DEACTIVATION);
1086c2c66affSColin Finck     cmp2(STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY,        ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY);
1087c2c66affSColin Finck     cmp2(STATUS_SXS_PROCESS_TERMINATION_REQUESTED,                  ERROR_SXS_PROCESS_TERMINATION_REQUESTED);
1088c2c66affSColin Finck     cmp2(STATUS_SXS_CORRUPT_ACTIVATION_STACK,    ERROR_SXS_CORRUPT_ACTIVATION_STACK);
1089c2c66affSColin Finck     cmp2(STATUS_SXS_CORRUPTION,                  ERROR_SXS_CORRUPTION);
1090c2c66affSColin Finck     cmp2(STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE,               ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE);
1091c2c66affSColin Finck     cmp2(STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME,                ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME);
1092c2c66affSColin Finck     cmp2(STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE,                   ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE);
1093c2c66affSColin Finck     cmp2(STATUS_SXS_IDENTITY_PARSE_ERROR,        ERROR_SXS_IDENTITY_PARSE_ERROR);
1094c2c66affSColin Finck     cmp2(STATUS_SXS_COMPONENT_STORE_CORRUPT,     ERROR_SXS_COMPONENT_STORE_CORRUPT);
1095c2c66affSColin Finck     cmp2(STATUS_SXS_FILE_HASH_MISMATCH,          ERROR_SXS_FILE_HASH_MISMATCH);
1096c2c66affSColin Finck     cmp2(STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT,  ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT);
1097c2c66affSColin Finck     cmp2(STATUS_SXS_IDENTITIES_DIFFERENT,        ERROR_SXS_IDENTITIES_DIFFERENT);
1098c2c66affSColin Finck     cmp2(STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT,                   ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT);
1099c2c66affSColin Finck     cmp2(STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY,   ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY);
1100c2c66affSColin Finck     cmp2(STATUS_ADVANCED_INSTALLER_FAILED,       ERROR_ADVANCED_INSTALLER_FAILED);
1101c2c66affSColin Finck     cmp2(STATUS_XML_ENCODING_MISMATCH,           ERROR_XML_ENCODING_MISMATCH);
1102c2c66affSColin Finck     cmp2(STATUS_SXS_MANIFEST_TOO_BIG,            ERROR_SXS_MANIFEST_TOO_BIG);
1103c2c66affSColin Finck     cmp2(STATUS_SXS_SETTING_NOT_REGISTERED,      ERROR_SXS_SETTING_NOT_REGISTERED);
1104c2c66affSColin Finck     cmp2(STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE,                 ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE);
1105c2c66affSColin Finck     cmp2(STATUS_SMI_PRIMITIVE_INSTALLER_FAILED,  ERROR_SMI_PRIMITIVE_INSTALLER_FAILED);
1106c2c66affSColin Finck     cmp2(STATUS_GENERIC_COMMAND_FAILED,          ERROR_GENERIC_COMMAND_FAILED);
1107c2c66affSColin Finck     cmp2(STATUS_SXS_FILE_HASH_MISSING,           ERROR_SXS_FILE_HASH_MISSING);
1108c2c66affSColin Finck     cmp2(STATUS_REDIRECTOR_STARTED,              ERROR_SERVICE_ALREADY_RUNNING);
1109c2c66affSColin Finck     cmp2(STATUS_AUDITING_DISABLED,               ERROR_AUDITING_DISABLED);
1110c2c66affSColin Finck     cmp2(STATUS_AUDIT_FAILED,                    ERROR_AUDIT_FAILED);
1111c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_ALREADY_UP,         ERROR_CLUSTER_NODE_ALREADY_UP);
1112c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_ALREADY_DOWN,       ERROR_CLUSTER_NODE_ALREADY_DOWN);
1113c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETWORK_ALREADY_ONLINE,  ERROR_CLUSTER_NETWORK_ALREADY_ONLINE);
1114c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE, ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE);
1115c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_ALREADY_MEMBER,     ERROR_CLUSTER_NODE_ALREADY_MEMBER);
1116c2c66affSColin Finck     cmp2(STATUS_CLUSTER_INVALID_NODE,            ERROR_CLUSTER_INVALID_NODE);
1117c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_EXISTS,             ERROR_CLUSTER_NODE_EXISTS);
1118c2c66affSColin Finck     cmp2(STATUS_CLUSTER_JOIN_IN_PROGRESS,        ERROR_CLUSTER_JOIN_IN_PROGRESS);
1119c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_NOT_FOUND,          ERROR_CLUSTER_NODE_NOT_FOUND);
1120c2c66affSColin Finck     cmp2(STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND,    ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND);
1121c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETWORK_EXISTS,          ERROR_CLUSTER_NETWORK_EXISTS);
1122c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETWORK_NOT_FOUND,       ERROR_CLUSTER_NETWORK_NOT_FOUND);
1123c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETINTERFACE_EXISTS,     ERROR_CLUSTER_NETINTERFACE_EXISTS);
1124c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETINTERFACE_NOT_FOUND,  ERROR_CLUSTER_NETINTERFACE_NOT_FOUND);
1125c2c66affSColin Finck     cmp2(STATUS_CLUSTER_INVALID_REQUEST,         ERROR_CLUSTER_INVALID_REQUEST);
1126c2c66affSColin Finck     cmp2(STATUS_CLUSTER_INVALID_NETWORK_PROVIDER,ERROR_CLUSTER_INVALID_NETWORK_PROVIDER);
1127c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_DOWN,               ERROR_CLUSTER_NODE_DOWN);
1128c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_UNREACHABLE,        ERROR_CLUSTER_NODE_UNREACHABLE);
1129c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_NOT_MEMBER,         ERROR_CLUSTER_NODE_NOT_MEMBER);
1130c2c66affSColin Finck     cmp2(STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS,    ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS);
1131c2c66affSColin Finck     cmp2(STATUS_CLUSTER_INVALID_NETWORK,         ERROR_CLUSTER_INVALID_NETWORK);
1132c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_UP,                 ERROR_CLUSTER_NODE_UP);
1133c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_PAUSED,             ERROR_CLUSTER_NODE_PAUSED);
1134c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NODE_NOT_PAUSED,         ERROR_CLUSTER_NODE_NOT_PAUSED);
1135c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NO_SECURITY_CONTEXT,     ERROR_CLUSTER_NO_SECURITY_CONTEXT);
1136c2c66affSColin Finck     cmp2(STATUS_CLUSTER_NETWORK_NOT_INTERNAL,    ERROR_CLUSTER_NETWORK_NOT_INTERNAL);
1137c2c66affSColin Finck }
1138c2c66affSColin Finck 
START_TEST(error)1139c2c66affSColin Finck START_TEST(error)
1140c2c66affSColin Finck {
1141c2c66affSColin Finck     if (prepare_test())
1142c2c66affSColin Finck         run_error_tests();
1143c2c66affSColin Finck }
1144