1 /**
2  * Windows API header module
3  *
4  * Translated from MinGW Windows headers
5  *
6  * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
7  * Source: $(DRUNTIMESRC core/sys/windows/_winerror.d)
8  */
9 /// Automatically imported and edited from the druntime module
10 /// core.sys.windows.winerror for the auto-generated win32 package.
11 module win32.winerror;
12 //version (Windows):
13 @system:
14 
15 /* Comments from the Mingw header:
16  * WAIT_TIMEOUT is also defined in winbase.h
17  */
18 
19 import win32.windef;
20 
21 alias int SCODE; // was in win32.wtypes.
22 
23 enum : uint {
24     ERROR_SUCCESS                                         =     0,
25     NO_ERROR                                              =     0,
26     ERROR_INVALID_FUNCTION,
27     ERROR_FILE_NOT_FOUND,
28     ERROR_PATH_NOT_FOUND,
29     ERROR_TOO_MANY_OPEN_FILES,
30     ERROR_ACCESS_DENIED,
31     ERROR_INVALID_HANDLE,
32     ERROR_ARENA_TRASHED,
33     ERROR_NOT_ENOUGH_MEMORY,
34     ERROR_INVALID_BLOCK,
35     ERROR_BAD_ENVIRONMENT,
36     ERROR_BAD_FORMAT,
37     ERROR_INVALID_ACCESS,
38     ERROR_INVALID_DATA,
39     ERROR_OUTOFMEMORY,
40     ERROR_INVALID_DRIVE,
41     ERROR_CURRENT_DIRECTORY,
42     ERROR_NOT_SAME_DEVICE,
43     ERROR_NO_MORE_FILES,
44     ERROR_WRITE_PROTECT,
45     ERROR_BAD_UNIT,
46     ERROR_NOT_READY,
47     ERROR_BAD_COMMAND,
48     ERROR_CRC,
49     ERROR_BAD_LENGTH,
50     ERROR_SEEK,
51     ERROR_NOT_DOS_DISK,
52     ERROR_SECTOR_NOT_FOUND,
53     ERROR_OUT_OF_PAPER,
54     ERROR_WRITE_FAULT,
55     ERROR_READ_FAULT,
56     ERROR_GEN_FAILURE,
57     ERROR_SHARING_VIOLATION,
58     ERROR_LOCK_VIOLATION,
59     ERROR_WRONG_DISK,                                  // =    34
60     ERROR_SHARING_BUFFER_EXCEEDED                         =    36,
61     ERROR_HANDLE_EOF                                      =    38,
62     ERROR_HANDLE_DISK_FULL,                            // =    39
63     ERROR_NOT_SUPPORTED                                   =    50,
64     ERROR_REM_NOT_LIST,
65     ERROR_DUP_NAME,
66     ERROR_BAD_NETPATH,
67     ERROR_NETWORK_BUSY,
68     ERROR_DEV_NOT_EXIST,
69     ERROR_TOO_MANY_CMDS,
70     ERROR_ADAP_HDW_ERR,
71     ERROR_BAD_NET_RESP,
72     ERROR_UNEXP_NET_ERR,
73     ERROR_BAD_REM_ADAP,
74     ERROR_PRINTQ_FULL,
75     ERROR_NO_SPOOL_SPACE,
76     ERROR_PRINT_CANCELLED,
77     ERROR_NETNAME_DELETED,
78     ERROR_NETWORK_ACCESS_DENIED,
79     ERROR_BAD_DEV_TYPE,
80     ERROR_BAD_NET_NAME,
81     ERROR_TOO_MANY_NAMES,
82     ERROR_TOO_MANY_SESS,
83     ERROR_SHARING_PAUSED,
84     ERROR_REQ_NOT_ACCEP,
85     ERROR_REDIR_PAUSED,                                // =    72
86     ERROR_FILE_EXISTS                                     =    80,
87     ERROR_CANNOT_MAKE                                     =    82,
88     ERROR_FAIL_I24,
89     ERROR_OUT_OF_STRUCTURES,
90     ERROR_ALREADY_ASSIGNED,
91     ERROR_INVALID_PASSWORD,
92     ERROR_INVALID_PARAMETER,
93     ERROR_NET_WRITE_FAULT,
94     ERROR_NO_PROC_SLOTS,                               // =    89
95     ERROR_TOO_MANY_SEMAPHORES                             =   100,
96     ERROR_EXCL_SEM_ALREADY_OWNED,
97     ERROR_SEM_IS_SET,
98     ERROR_TOO_MANY_SEM_REQUESTS,
99     ERROR_INVALID_AT_INTERRUPT_TIME,
100     ERROR_SEM_OWNER_DIED,
101     ERROR_SEM_USER_LIMIT,
102     ERROR_DISK_CHANGE,
103     ERROR_DRIVE_LOCKED,
104     ERROR_BROKEN_PIPE,
105     ERROR_OPEN_FAILED,
106     ERROR_BUFFER_OVERFLOW,
107     ERROR_DISK_FULL,
108     ERROR_NO_MORE_SEARCH_HANDLES,
109     ERROR_INVALID_TARGET_HANDLE,                       // =   114
110     ERROR_INVALID_CATEGORY                                =   117,
111     ERROR_INVALID_VERIFY_SWITCH,
112     ERROR_BAD_DRIVER_LEVEL,
113     ERROR_CALL_NOT_IMPLEMENTED,
114     ERROR_SEM_TIMEOUT,
115     ERROR_INSUFFICIENT_BUFFER,
116     ERROR_INVALID_NAME,
117     ERROR_INVALID_LEVEL,
118     ERROR_NO_VOLUME_LABEL,
119     ERROR_MOD_NOT_FOUND,
120     ERROR_PROC_NOT_FOUND,
121     ERROR_WAIT_NO_CHILDREN,
122     ERROR_CHILD_NOT_COMPLETE,
123     ERROR_DIRECT_ACCESS_HANDLE,
124     ERROR_NEGATIVE_SEEK,
125     ERROR_SEEK_ON_DEVICE,
126     ERROR_IS_JOIN_TARGET,
127     ERROR_IS_JOINED,
128     ERROR_IS_SUBSTED,
129     ERROR_NOT_JOINED,
130     ERROR_NOT_SUBSTED,
131     ERROR_JOIN_TO_JOIN,
132     ERROR_SUBST_TO_SUBST,
133     ERROR_JOIN_TO_SUBST,
134     ERROR_SUBST_TO_JOIN,
135     ERROR_BUSY_DRIVE,
136     ERROR_SAME_DRIVE,
137     ERROR_DIR_NOT_ROOT,
138     ERROR_DIR_NOT_EMPTY,
139     ERROR_IS_SUBST_PATH,
140     ERROR_IS_JOIN_PATH,
141     ERROR_PATH_BUSY,
142     ERROR_IS_SUBST_TARGET,
143     ERROR_SYSTEM_TRACE,
144     ERROR_INVALID_EVENT_COUNT,
145     ERROR_TOO_MANY_MUXWAITERS,
146     ERROR_INVALID_LIST_FORMAT,
147     ERROR_LABEL_TOO_LONG,
148     ERROR_TOO_MANY_TCBS,
149     ERROR_SIGNAL_REFUSED,
150     ERROR_DISCARDED,
151     ERROR_NOT_LOCKED,
152     ERROR_BAD_THREADID_ADDR,
153     ERROR_BAD_ARGUMENTS,
154     ERROR_BAD_PATHNAME,
155     ERROR_SIGNAL_PENDING,                              // =   162
156     ERROR_MAX_THRDS_REACHED                               =   164,
157     ERROR_LOCK_FAILED                                     =   167,
158     ERROR_BUSY                                            =   170,
159     ERROR_CANCEL_VIOLATION                                =   173,
160     ERROR_ATOMIC_LOCKS_NOT_SUPPORTED,                  // =   174
161     ERROR_INVALID_SEGMENT_NUMBER                          =   180,
162     ERROR_INVALID_ORDINAL                                 =   182,
163     ERROR_ALREADY_EXISTS,                              // =   183
164     ERROR_INVALID_FLAG_NUMBER                             =   186,
165     ERROR_SEM_NOT_FOUND,
166     ERROR_INVALID_STARTING_CODESEG,
167     ERROR_INVALID_STACKSEG,
168     ERROR_INVALID_MODULETYPE,
169     ERROR_INVALID_EXE_SIGNATURE,
170     ERROR_EXE_MARKED_INVALID,
171     ERROR_BAD_EXE_FORMAT,
172     ERROR_ITERATED_DATA_EXCEEDS_64k,
173     ERROR_INVALID_MINALLOCSIZE,
174     ERROR_DYNLINK_FROM_INVALID_RING,
175     ERROR_IOPL_NOT_ENABLED,
176     ERROR_INVALID_SEGDPL,
177     ERROR_AUTODATASEG_EXCEEDS_64k,
178     ERROR_RING2SEG_MUST_BE_MOVABLE,
179     ERROR_RELOC_CHAIN_XEEDS_SEGLIM,
180     ERROR_INFLOOP_IN_RELOC_CHAIN,
181     ERROR_ENVVAR_NOT_FOUND,                            // =   203
182     ERROR_NO_SIGNAL_SENT                                  =   205,
183     ERROR_FILENAME_EXCED_RANGE,
184     ERROR_RING2_STACK_IN_USE,
185     ERROR_META_EXPANSION_TOO_LONG,
186     ERROR_INVALID_SIGNAL_NUMBER,
187     ERROR_THREAD_1_INACTIVE,                           // =   210
188     ERROR_LOCKED                                          =   212,
189     ERROR_TOO_MANY_MODULES                                =   214,
190     ERROR_NESTING_NOT_ALLOWED,
191     ERROR_EXE_MACHINE_TYPE_MISMATCH,
192     ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY,
193     ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY,      // =   218
194     ERROR_BAD_PIPE                                        =   230,
195     ERROR_PIPE_BUSY,
196     ERROR_NO_DATA,
197     ERROR_PIPE_NOT_CONNECTED,
198     ERROR_MORE_DATA,                                   // =   234
199     ERROR_VC_DISCONNECTED                                 =   240,
200     ERROR_INVALID_EA_NAME                                 =   254,
201     ERROR_EA_LIST_INCONSISTENT,                        // =   255
202     WAIT_TIMEOUT                                          =   258,
203     ERROR_NO_MORE_ITEMS,                               // =   259
204     ERROR_CANNOT_COPY                                     =   266,
205     ERROR_DIRECTORY,                                   // =   267
206     ERROR_EAS_DIDNT_FIT                                   =   275,
207     ERROR_EA_FILE_CORRUPT,
208     ERROR_EA_TABLE_FULL,
209     ERROR_INVALID_EA_HANDLE,                           // =   278
210     ERROR_EAS_NOT_SUPPORTED                               =   282,
211     ERROR_NOT_OWNER                                       =   288,
212     ERROR_TOO_MANY_POSTS                                  =   298,
213     ERROR_PARTIAL_COPY,
214     ERROR_OPLOCK_NOT_GRANTED,
215     ERROR_INVALID_OPLOCK_PROTOCOL,
216     ERROR_DISK_TOO_FRAGMENTED,
217     ERROR_DELETE_PENDING,                              // =   303
218     ERROR_MR_MID_NOT_FOUND                                =   317,
219     ERROR_SCOPE_NOT_FOUND,                             // =   318
220     ERROR_INVALID_ADDRESS                                 =   487,
221     ERROR_ARITHMETIC_OVERFLOW                             =   534,
222     ERROR_PIPE_CONNECTED,
223     ERROR_PIPE_LISTENING,                              // =   536
224     ERROR_EA_ACCESS_DENIED                                =   994,
225     ERROR_OPERATION_ABORTED,
226     ERROR_IO_INCOMPLETE,
227     ERROR_IO_PENDING,
228     ERROR_NOACCESS,
229     ERROR_SWAPERROR,                                   // =   999
230     ERROR_STACK_OVERFLOW                                  =  1001,
231     ERROR_INVALID_MESSAGE,
232     ERROR_CAN_NOT_COMPLETE,
233     ERROR_INVALID_FLAGS,
234     ERROR_UNRECOGNIZED_VOLUME,
235     ERROR_FILE_INVALID,
236     ERROR_FULLSCREEN_MODE,
237     ERROR_NO_TOKEN,
238     ERROR_BADDB,
239     ERROR_BADKEY,
240     ERROR_CANTOPEN,
241     ERROR_CANTREAD,
242     ERROR_CANTWRITE,
243     ERROR_REGISTRY_RECOVERED,
244     ERROR_REGISTRY_CORRUPT,
245     ERROR_REGISTRY_IO_FAILED,
246     ERROR_NOT_REGISTRY_FILE,
247     ERROR_KEY_DELETED,
248     ERROR_NO_LOG_SPACE,
249     ERROR_KEY_HAS_CHILDREN,
250     ERROR_CHILD_MUST_BE_VOLATILE,
251     ERROR_NOTIFY_ENUM_DIR,                             // =  1022
252     ERROR_DEPENDENT_SERVICES_RUNNING                      =  1051,
253     ERROR_INVALID_SERVICE_CONTROL,
254     ERROR_SERVICE_REQUEST_TIMEOUT,
255     ERROR_SERVICE_NO_THREAD,
256     ERROR_SERVICE_DATABASE_LOCKED,
257     ERROR_SERVICE_ALREADY_RUNNING,
258     ERROR_INVALID_SERVICE_ACCOUNT,
259     ERROR_SERVICE_DISABLED,
260     ERROR_CIRCULAR_DEPENDENCY,
261     ERROR_SERVICE_DOES_NOT_EXIST,
262     ERROR_SERVICE_CANNOT_ACCEPT_CTRL,
263     ERROR_SERVICE_NOT_ACTIVE,
264     ERROR_FAILED_SERVICE_CONTROLLER_CONNECT,
265     ERROR_EXCEPTION_IN_SERVICE,
266     ERROR_DATABASE_DOES_NOT_EXIST,
267     ERROR_SERVICE_SPECIFIC_ERROR,
268     ERROR_PROCESS_ABORTED,
269     ERROR_SERVICE_DEPENDENCY_FAIL,
270     ERROR_SERVICE_LOGON_FAILED,
271     ERROR_SERVICE_START_HANG,
272     ERROR_INVALID_SERVICE_LOCK,
273     ERROR_SERVICE_MARKED_FOR_DELETE,
274     ERROR_SERVICE_EXISTS,
275     ERROR_ALREADY_RUNNING_LKG,
276     ERROR_SERVICE_DEPENDENCY_DELETED,
277     ERROR_BOOT_ALREADY_ACCEPTED,
278     ERROR_SERVICE_NEVER_STARTED,
279     ERROR_DUPLICATE_SERVICE_NAME,
280     ERROR_DIFFERENT_SERVICE_ACCOUNT,
281     ERROR_CANNOT_DETECT_DRIVER_FAILURE,
282     ERROR_CANNOT_DETECT_PROCESS_ABORT,
283     ERROR_NO_RECOVERY_PROGRAM,
284     ERROR_SERVICE_NOT_IN_EXE,
285     ERROR_NOT_SAFEBOOT_SERVICE,                        // =  1084
286     ERROR_END_OF_MEDIA                                    =  1100,
287     ERROR_FILEMARK_DETECTED,
288     ERROR_BEGINNING_OF_MEDIA,
289     ERROR_SETMARK_DETECTED,
290     ERROR_NO_DATA_DETECTED,
291     ERROR_PARTITION_FAILURE,
292     ERROR_INVALID_BLOCK_LENGTH,
293     ERROR_DEVICE_NOT_PARTITIONED,
294     ERROR_UNABLE_TO_LOCK_MEDIA,
295     ERROR_UNABLE_TO_UNLOAD_MEDIA,
296     ERROR_MEDIA_CHANGED,
297     ERROR_BUS_RESET,
298     ERROR_NO_MEDIA_IN_DRIVE,
299     ERROR_NO_UNICODE_TRANSLATION,
300     ERROR_DLL_INIT_FAILED,
301     ERROR_SHUTDOWN_IN_PROGRESS,
302     ERROR_NO_SHUTDOWN_IN_PROGRESS,
303     ERROR_IO_DEVICE,
304     ERROR_SERIAL_NO_DEVICE,
305     ERROR_IRQ_BUSY,
306     ERROR_MORE_WRITES,
307     ERROR_COUNTER_TIMEOUT,
308     ERROR_FLOPPY_ID_MARK_NOT_FOUND,
309     ERROR_FLOPPY_WRONG_CYLINDER,
310     ERROR_FLOPPY_UNKNOWN_ERROR,
311     ERROR_FLOPPY_BAD_REGISTERS,
312     ERROR_DISK_RECALIBRATE_FAILED,
313     ERROR_DISK_OPERATION_FAILED,
314     ERROR_DISK_RESET_FAILED,
315     ERROR_EOM_OVERFLOW,
316     ERROR_NOT_ENOUGH_SERVER_MEMORY,
317     ERROR_POSSIBLE_DEADLOCK,
318     ERROR_MAPPED_ALIGNMENT,                            // =  1132
319     ERROR_SET_POWER_STATE_VETOED                          =  1140,
320     ERROR_SET_POWER_STATE_FAILED,
321     ERROR_TOO_MANY_LINKS,                              // =  1142
322     ERROR_OLD_WIN_VERSION                                 =  1150,
323     ERROR_APP_WRONG_OS,
324     ERROR_SINGLE_INSTANCE_APP,
325     ERROR_RMODE_APP,
326     ERROR_INVALID_DLL,
327     ERROR_NO_ASSOCIATION,
328     ERROR_DDE_FAIL,
329     ERROR_DLL_NOT_FOUND,
330     ERROR_NO_MORE_USER_HANDLES,
331     ERROR_MESSAGE_SYNC_ONLY,
332     ERROR_SOURCE_ELEMENT_EMPTY,
333     ERROR_DESTINATION_ELEMENT_FULL,
334     ERROR_ILLEGAL_ELEMENT_ADDRESS,
335     ERROR_MAGAZINE_NOT_PRESENT,
336     ERROR_DEVICE_REINITIALIZATION_NEEDED,
337     ERROR_DEVICE_REQUIRES_CLEANING,
338     ERROR_DEVICE_DOOR_OPEN,
339     ERROR_DEVICE_NOT_CONNECTED,
340     ERROR_NOT_FOUND,
341     ERROR_NO_MATCH,
342     ERROR_SET_NOT_FOUND,
343     ERROR_POINT_NOT_FOUND,
344     ERROR_NO_TRACKING_SERVICE,
345     ERROR_NO_VOLUME_ID,                                // =  1173
346     ERROR_UNABLE_TO_REMOVE_REPLACED                       =  1175,
347     ERROR_UNABLE_TO_MOVE_REPLACEMENT,
348     ERROR_UNABLE_TO_MOVE_REPLACEMENT_2,
349     ERROR_JOURNAL_DELETE_IN_PROGRESS,
350     ERROR_JOURNAL_NOT_ACTIVE,
351     ERROR_POTENTIAL_FILE_FOUND,
352     ERROR_JOURNAL_ENTRY_DELETED,                       // =  1181
353     ERROR_BAD_DEVICE                                      =  1200,
354     ERROR_CONNECTION_UNAVAIL,
355     ERROR_DEVICE_ALREADY_REMEMBERED,
356     ERROR_NO_NET_OR_BAD_PATH,
357     ERROR_BAD_PROVIDER,
358     ERROR_CANNOT_OPEN_PROFILE,
359     ERROR_BAD_PROFILE,
360     ERROR_NOT_CONTAINER,
361     ERROR_EXTENDED_ERROR,
362     ERROR_INVALID_GROUPNAME,
363     ERROR_INVALID_COMPUTERNAME,
364     ERROR_INVALID_EVENTNAME,
365     ERROR_INVALID_DOMAINNAME,
366     ERROR_INVALID_SERVICENAME,
367     ERROR_INVALID_NETNAME,
368     ERROR_INVALID_SHARENAME,
369     ERROR_INVALID_PASSWORDNAME,
370     ERROR_INVALID_MESSAGENAME,
371     ERROR_INVALID_MESSAGEDEST,
372     ERROR_SESSION_CREDENTIAL_CONFLICT,
373     ERROR_REMOTE_SESSION_LIMIT_EXCEEDED,
374     ERROR_DUP_DOMAINNAME,
375     ERROR_NO_NETWORK,
376     ERROR_CANCELLED,
377     ERROR_USER_MAPPED_FILE,
378     ERROR_CONNECTION_REFUSED,
379     ERROR_GRACEFUL_DISCONNECT,
380     ERROR_ADDRESS_ALREADY_ASSOCIATED,
381     ERROR_ADDRESS_NOT_ASSOCIATED,
382     ERROR_CONNECTION_INVALID,
383     ERROR_CONNECTION_ACTIVE,
384     ERROR_NETWORK_UNREACHABLE,
385     ERROR_HOST_UNREACHABLE,
386     ERROR_PROTOCOL_UNREACHABLE,
387     ERROR_PORT_UNREACHABLE,
388     ERROR_REQUEST_ABORTED,
389     ERROR_CONNECTION_ABORTED,
390     ERROR_RETRY,
391     ERROR_CONNECTION_COUNT_LIMIT,
392     ERROR_LOGIN_TIME_RESTRICTION,
393     ERROR_LOGIN_WKSTA_RESTRICTION,
394     ERROR_INCORRECT_ADDRESS,
395     ERROR_ALREADY_REGISTERED,
396     ERROR_SERVICE_NOT_FOUND,
397     ERROR_NOT_AUTHENTICATED,
398     ERROR_NOT_LOGGED_ON,
399     ERROR_CONTINUE,
400     ERROR_ALREADY_INITIALIZED,
401     ERROR_NO_MORE_DEVICES,
402     ERROR_NO_SUCH_SITE,
403     ERROR_DOMAIN_CONTROLLER_EXISTS,
404     ERROR_ONLY_IF_CONNECTED,
405     ERROR_OVERRIDE_NOCHANGES,
406     ERROR_BAD_USER_PROFILE,
407     ERROR_NOT_SUPPORTED_ON_SBS,
408     ERROR_SERVER_SHUTDOWN_IN_PROGRESS,
409     ERROR_HOST_DOWN,
410     ERROR_NON_ACCOUNT_SID,
411     ERROR_NON_DOMAIN_SID,
412     ERROR_APPHELP_BLOCK,
413     ERROR_ACCESS_DISABLED_BY_POLICY,
414     ERROR_REG_NAT_CONSUMPTION,
415     ERROR_CSCSHARE_OFFLINE,
416     ERROR_PKINIT_FAILURE,
417     ERROR_SMARTCARD_SUBSYSTEM_FAILURE,
418     ERROR_DOWNGRADE_DETECTED,
419     SEC_E_SMARTCARD_CERT_REVOKED,
420     SEC_E_ISSUING_CA_UNTRUSTED,
421     SEC_E_REVOCATION_OFFLINE_C,
422     SEC_E_PKINIT_CLIENT_FAILUR,
423     SEC_E_SMARTCARD_CERT_EXPIRED,
424     ERROR_MACHINE_LOCKED,                              // =  1271
425     ERROR_CALLBACK_SUPPLIED_INVALID_DATA                  =  1273,
426     ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED,
427     ERROR_DRIVER_BLOCKED,
428     ERROR_INVALID_IMPORT_OF_NON_DLL,
429     ERROR_ACCESS_DISABLED_WEBBLADE,
430     ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER,
431     ERROR_RECOVERY_FAILURE,
432     ERROR_ALREADY_FIBER,
433     ERROR_ALREADY_THREAD,
434     ERROR_STACK_BUFFER_OVERRUN,
435     ERROR_PARAMETER_QUOTA_EXCEEDED,
436     ERROR_DEBUGGER_INACTIVE,                           // =  1284
437     ERROR_NOT_ALL_ASSIGNED                                =  1300,
438     ERROR_SOME_NOT_MAPPED,
439     ERROR_NO_QUOTAS_FOR_ACCOUNT,
440     ERROR_LOCAL_USER_SESSION_KEY,
441     ERROR_NULL_LM_PASSWORD,
442     ERROR_UNKNOWN_REVISION,
443     ERROR_REVISION_MISMATCH,
444     ERROR_INVALID_OWNER,
445     ERROR_INVALID_PRIMARY_GROUP,
446     ERROR_NO_IMPERSONATION_TOKEN,
447     ERROR_CANT_DISABLE_MANDATORY,
448     ERROR_NO_LOGON_SERVERS,
449     ERROR_NO_SUCH_LOGON_SESSION,
450     ERROR_NO_SUCH_PRIVILEGE,
451     ERROR_PRIVILEGE_NOT_HELD,
452     ERROR_INVALID_ACCOUNT_NAME,
453     ERROR_USER_EXISTS,
454     ERROR_NO_SUCH_USER,
455     ERROR_GROUP_EXISTS,
456     ERROR_NO_SUCH_GROUP,
457     ERROR_MEMBER_IN_GROUP,
458     ERROR_MEMBER_NOT_IN_GROUP,
459     ERROR_LAST_ADMIN,
460     ERROR_WRONG_PASSWORD,
461     ERROR_ILL_FORMED_PASSWORD,
462     ERROR_PASSWORD_RESTRICTION,
463     ERROR_LOGON_FAILURE,
464     ERROR_ACCOUNT_RESTRICTION,
465     ERROR_INVALID_LOGON_HOURS,
466     ERROR_INVALID_WORKSTATION,
467     ERROR_PASSWORD_EXPIRED,
468     ERROR_ACCOUNT_DISABLED,
469     ERROR_NONE_MAPPED,
470     ERROR_TOO_MANY_LUIDS_REQUESTED,
471     ERROR_LUIDS_EXHAUSTED,
472     ERROR_INVALID_SUB_AUTHORITY,
473     ERROR_INVALID_ACL,
474     ERROR_INVALID_SID,
475     ERROR_INVALID_SECURITY_DESCR,                      // =  1338
476     ERROR_BAD_INHERITANCE_ACL                             =  1340,
477     ERROR_SERVER_DISABLED,
478     ERROR_SERVER_NOT_DISABLED,
479     ERROR_INVALID_ID_AUTHORITY,
480     ERROR_ALLOTTED_SPACE_EXCEEDED,
481     ERROR_INVALID_GROUP_ATTRIBUTES,
482     ERROR_BAD_IMPERSONATION_LEVEL,
483     ERROR_CANT_OPEN_ANONYMOUS,
484     ERROR_BAD_VALIDATION_CLASS,
485     ERROR_BAD_TOKEN_TYPE,
486     ERROR_NO_SECURITY_ON_OBJECT,
487     ERROR_CANT_ACCESS_DOMAIN_INFO,
488     ERROR_INVALID_SERVER_STATE,
489     ERROR_INVALID_DOMAIN_STATE,
490     ERROR_INVALID_DOMAIN_ROLE,
491     ERROR_NO_SUCH_DOMAIN,
492     ERROR_DOMAIN_EXISTS,
493     ERROR_DOMAIN_LIMIT_EXCEEDED,
494     ERROR_INTERNAL_DB_CORRUPTION,
495     ERROR_INTERNAL_ERROR,
496     ERROR_GENERIC_NOT_MAPPED,
497     ERROR_BAD_DESCRIPTOR_FORMAT,
498     ERROR_NOT_LOGON_PROCESS,
499     ERROR_LOGON_SESSION_EXISTS,
500     ERROR_NO_SUCH_PACKAGE,
501     ERROR_BAD_LOGON_SESSION_STATE,
502     ERROR_LOGON_SESSION_COLLISION,
503     ERROR_INVALID_LOGON_TYPE,
504     ERROR_CANNOT_IMPERSONATE,
505     ERROR_RXACT_INVALID_STATE,
506     ERROR_RXACT_COMMIT_FAILURE,
507     ERROR_SPECIAL_ACCOUNT,
508     ERROR_SPECIAL_GROUP,
509     ERROR_SPECIAL_USER,
510     ERROR_MEMBERS_PRIMARY_GROUP,
511     ERROR_TOKEN_ALREADY_IN_USE,
512     ERROR_NO_SUCH_ALIAS,
513     ERROR_MEMBER_NOT_IN_ALIAS,
514     ERROR_MEMBER_IN_ALIAS,
515     ERROR_ALIAS_EXISTS,
516     ERROR_LOGON_NOT_GRANTED,
517     ERROR_TOO_MANY_SECRETS,
518     ERROR_SECRET_TOO_LONG,
519     ERROR_INTERNAL_DB_ERROR,
520     ERROR_TOO_MANY_CONTEXT_IDS,
521     ERROR_LOGON_TYPE_NOT_GRANTED,
522     ERROR_NT_CROSS_ENCRYPTION_REQUIRED,
523     ERROR_NO_SUCH_MEMBER,
524     ERROR_INVALID_MEMBER,
525     ERROR_TOO_MANY_SIDS,
526     ERROR_LM_CROSS_ENCRYPTION_REQUIRED,
527     ERROR_NO_INHERITANCE,
528     ERROR_FILE_CORRUPT,
529     ERROR_DISK_CORRUPT,
530     ERROR_NO_USER_SESSION_KEY,
531     ERROR_LICENSE_QUOTA_EXCEEDED,
532     ERROR_WRONG_TARGET_NAME,
533     ERROR_MUTUAL_AUTH_FAILED,
534     ERROR_TIME_SKEW,
535     ERROR_CURRENT_DOMAIN_NOT_ALLOWED,
536     ERROR_INVALID_WINDOW_HANDLE,
537     ERROR_INVALID_MENU_HANDLE,
538     ERROR_INVALID_CURSOR_HANDLE,
539     ERROR_INVALID_ACCEL_HANDLE,
540     ERROR_INVALID_HOOK_HANDLE,
541     ERROR_INVALID_DWP_HANDLE,
542     ERROR_TLW_WITH_WSCHILD,
543     ERROR_CANNOT_FIND_WND_CLASS,
544     ERROR_WINDOW_OF_OTHER_THREAD,
545     ERROR_HOTKEY_ALREADY_REGISTERED,
546     ERROR_CLASS_ALREADY_EXISTS,
547     ERROR_CLASS_DOES_NOT_EXIST,
548     ERROR_CLASS_HAS_WINDOWS,
549     ERROR_INVALID_INDEX,
550     ERROR_INVALID_ICON_HANDLE,
551     ERROR_PRIVATE_DIALOG_INDEX,
552     ERROR_LISTBOX_ID_NOT_FOUND,
553     ERROR_NO_WILDCARD_CHARACTERS,
554     ERROR_CLIPBOARD_NOT_OPEN,
555     ERROR_HOTKEY_NOT_REGISTERED,
556     ERROR_WINDOW_NOT_DIALOG,
557     ERROR_CONTROL_ID_NOT_FOUND,
558     ERROR_INVALID_COMBOBOX_MESSAGE,
559     ERROR_WINDOW_NOT_COMBOBOX,
560     ERROR_INVALID_EDIT_HEIGHT,
561     ERROR_DC_NOT_FOUND,
562     ERROR_INVALID_HOOK_FILTER,
563     ERROR_INVALID_FILTER_PROC,
564     ERROR_HOOK_NEEDS_HMOD,
565     ERROR_GLOBAL_ONLY_HOOK,
566     ERROR_JOURNAL_HOOK_SET,
567     ERROR_HOOK_NOT_INSTALLED,
568     ERROR_INVALID_LB_MESSAGE,
569     ERROR_SETCOUNT_ON_BAD_LB,
570     ERROR_LB_WITHOUT_TABSTOPS,
571     ERROR_DESTROY_OBJECT_OF_OTHER_THREAD,
572     ERROR_CHILD_WINDOW_MENU,
573     ERROR_NO_SYSTEM_MENU,
574     ERROR_INVALID_MSGBOX_STYLE,
575     ERROR_INVALID_SPI_VALUE,
576     ERROR_SCREEN_ALREADY_LOCKED,
577     ERROR_HWNDS_HAVE_DIFF_PARENT,
578     ERROR_NOT_CHILD_WINDOW,
579     ERROR_INVALID_GW_COMMAND,
580     ERROR_INVALID_THREAD_ID,
581     ERROR_NON_MDICHILD_WINDOW,
582     ERROR_POPUP_ALREADY_ACTIVE,
583     ERROR_NO_SCROLLBARS,
584     ERROR_INVALID_SCROLLBAR_RANGE,
585     ERROR_INVALID_SHOWWIN_COMMAND,
586     ERROR_NO_SYSTEM_RESOURCES,
587     ERROR_NONPAGED_SYSTEM_RESOURCES,
588     ERROR_PAGED_SYSTEM_RESOURCES,
589     ERROR_WORKING_SET_QUOTA,
590     ERROR_PAGEFILE_QUOTA,
591     ERROR_COMMITMENT_LIMIT,
592     ERROR_MENU_ITEM_NOT_FOUND,
593     ERROR_INVALID_KEYBOARD_HANDLE,
594     ERROR_HOOK_TYPE_NOT_ALLOWED,
595     ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION,
596     ERROR_TIMEOUT,
597     ERROR_INVALID_MONITOR_HANDLE,                      // =  1461
598     ERROR_EVENTLOG_FILE_CORRUPT                           =  1500,
599     ERROR_EVENTLOG_CANT_START,
600     ERROR_LOG_FILE_FULL,
601     ERROR_EVENTLOG_FILE_CHANGED,                       // =  1503
602     ERROR_INSTALL_SERVICE_FAILURE                         =  1601,
603     ERROR_INSTALL_USEREXIT,
604     ERROR_INSTALL_FAILURE,
605     ERROR_INSTALL_SUSPEND,
606     ERROR_UNKNOWN_PRODUCT,
607     ERROR_UNKNOWN_FEATURE,
608     ERROR_UNKNOWN_COMPONENT,
609     ERROR_UNKNOWN_PROPERTY,
610     ERROR_INVALID_HANDLE_STATE,
611     ERROR_BAD_CONFIGURATION,
612     ERROR_INDEX_ABSENT,
613     ERROR_INSTALL_SOURCE_ABSENT,
614     ERROR_INSTALL_PACKAGE_VERSION,
615     ERROR_PRODUCT_UNINSTALLED,
616     ERROR_BAD_QUERY_SYNTAX,
617     ERROR_INVALID_FIELD,
618     ERROR_DEVICE_REMOVED,
619     ERROR_INSTALL_ALREADY_RUNNING,
620     ERROR_INSTALL_PACKAGE_OPEN_FAILED,
621     ERROR_INSTALL_PACKAGE_INVALID,
622     ERROR_INSTALL_UI_FAILURE,
623     ERROR_INSTALL_LOG_FAILURE,
624     ERROR_INSTALL_LANGUAGE_UNSUPPORTED,
625     ERROR_INSTALL_TRANSFORM_FAILURE,
626     ERROR_INSTALL_PACKAGE_REJECTED,
627     ERROR_FUNCTION_NOT_CALLED,
628     ERROR_FUNCTION_FAILED,
629     ERROR_INVALID_TABLE,
630     ERROR_DATATYPE_MISMATCH,
631     ERROR_UNSUPPORTED_TYPE,
632     ERROR_CREATE_FAILED,
633     ERROR_INSTALL_TEMP_UNWRITABLE,
634     ERROR_INSTALL_PLATFORM_UNSUPPORTED,
635     ERROR_INSTALL_NOTUSED,
636     ERROR_PATCH_PACKAGE_OPEN_FAILED,
637     ERROR_PATCH_PACKAGE_INVALID,
638     ERROR_PATCH_PACKAGE_UNSUPPORTED,
639     ERROR_PRODUCT_VERSION,
640     ERROR_INVALID_COMMAND_LINE,
641     ERROR_INSTALL_REMOTE_DISALLOWED,
642     ERROR_SUCCESS_REBOOT_INITIATED,
643     ERROR_PATCH_TARGET_NOT_FOUND,
644     ERROR_PATCH_PACKAGE_REJECTED,
645     ERROR_INSTALL_TRANSFORM_REJECTED,
646     ERROR_INSTALL_REMOTE_PROHIBITED,                   // =  1645
647     RPC_S_INVALID_STRING_BINDING                          =  1700,
648     RPC_S_WRONG_KIND_OF_BINDING,
649     RPC_S_INVALID_BINDING,
650     RPC_S_PROTSEQ_NOT_SUPPORTED,
651     RPC_S_INVALID_RPC_PROTSEQ,
652     RPC_S_INVALID_STRING_UUID,
653     RPC_S_INVALID_ENDPOINT_FORMAT,
654     RPC_S_INVALID_NET_ADDR,
655     RPC_S_NO_ENDPOINT_FOUND,
656     RPC_S_INVALID_TIMEOUT,
657     RPC_S_OBJECT_NOT_FOUND,
658     RPC_S_ALREADY_REGISTERED,
659     RPC_S_TYPE_ALREADY_REGISTERED,
660     RPC_S_ALREADY_LISTENING,
661     RPC_S_NO_PROTSEQS_REGISTERED,
662     RPC_S_NOT_LISTENING,
663     RPC_S_UNKNOWN_MGR_TYPE,
664     RPC_S_UNKNOWN_IF,
665     RPC_S_NO_BINDINGS,
666     RPC_S_NO_PROTSEQS,
667     RPC_S_CANT_CREATE_ENDPOINT,
668     RPC_S_OUT_OF_RESOURCES,
669     RPC_S_SERVER_UNAVAILABLE,
670     RPC_S_SERVER_TOO_BUSY,
671     RPC_S_INVALID_NETWORK_OPTIONS,
672     RPC_S_NO_CALL_ACTIVE,
673     RPC_S_CALL_FAILED,
674     RPC_S_CALL_FAILED_DNE,
675     RPC_S_PROTOCOL_ERROR,                              // =  1728
676     RPC_S_UNSUPPORTED_TRANS_SYN                           =  1730,
677     RPC_S_UNSUPPORTED_TYPE                                =  1732,
678     RPC_S_INVALID_TAG,
679     RPC_S_INVALID_BOUND,
680     RPC_S_NO_ENTRY_NAME,
681     RPC_S_INVALID_NAME_SYNTAX,
682     RPC_S_UNSUPPORTED_NAME_SYNTAX,                     // =  1737
683     RPC_S_UUID_NO_ADDRESS                                 =  1739,
684     RPC_S_DUPLICATE_ENDPOINT,
685     RPC_S_UNKNOWN_AUTHN_TYPE,
686     RPC_S_MAX_CALLS_TOO_SMALL,
687     RPC_S_STRING_TOO_LONG,
688     RPC_S_PROTSEQ_NOT_FOUND,
689     RPC_S_PROCNUM_OUT_OF_RANGE,
690     RPC_S_BINDING_HAS_NO_AUTH,
691     RPC_S_UNKNOWN_AUTHN_SERVICE,
692     RPC_S_UNKNOWN_AUTHN_LEVEL,
693     RPC_S_INVALID_AUTH_IDENTITY,
694     RPC_S_UNKNOWN_AUTHZ_SERVICE,
695     EPT_S_INVALID_ENTRY,
696     EPT_S_CANT_PERFORM_OP,
697     EPT_S_NOT_REGISTERED,
698     RPC_S_NOTHING_TO_EXPORT,
699     RPC_S_INCOMPLETE_NAME,
700     RPC_S_INVALID_VERS_OPTION,
701     RPC_S_NO_MORE_MEMBERS,
702     RPC_S_NOT_ALL_OBJS_UNEXPORTED,
703     RPC_S_INTERFACE_NOT_FOUND,
704     RPC_S_ENTRY_ALREADY_EXISTS,
705     RPC_S_ENTRY_NOT_FOUND,
706     RPC_S_NAME_SERVICE_UNAVAILABLE,
707     RPC_S_INVALID_NAF_ID,
708     RPC_S_CANNOT_SUPPORT,
709     RPC_S_NO_CONTEXT_AVAILABLE,
710     RPC_S_INTERNAL_ERROR,
711     RPC_S_ZERO_DIVIDE,
712     RPC_S_ADDRESS_ERROR,
713     RPC_S_FP_DIV_ZERO,
714     RPC_S_FP_UNDERFLOW,
715     RPC_S_FP_OVERFLOW,
716     RPC_X_NO_MORE_ENTRIES,
717     RPC_X_SS_CHAR_TRANS_OPEN_FAIL,
718     RPC_X_SS_CHAR_TRANS_SHORT_FILE,
719     RPC_X_SS_IN_NULL_CONTEXT,                          // =  1775
720     RPC_X_SS_CONTEXT_DAMAGED                              =  1777,
721     RPC_X_SS_HANDLES_MISMATCH,
722     RPC_X_SS_CANNOT_GET_CALL_HANDLE,
723     RPC_X_NULL_REF_POINTER,
724     RPC_X_ENUM_VALUE_OUT_OF_RANGE,
725     RPC_X_BYTE_COUNT_TOO_SMALL,
726     RPC_X_BAD_STUB_DATA,
727     ERROR_INVALID_USER_BUFFER,
728     ERROR_UNRECOGNIZED_MEDIA,
729     ERROR_NO_TRUST_LSA_SECRET,
730     ERROR_NO_TRUST_SAM_ACCOUNT,
731     ERROR_TRUSTED_DOMAIN_FAILURE,
732     ERROR_TRUSTED_RELATIONSHIP_FAILURE,
733     ERROR_TRUST_FAILURE,
734     RPC_S_CALL_IN_PROGRESS,
735     ERROR_NETLOGON_NOT_STARTED,
736     ERROR_ACCOUNT_EXPIRED,
737     ERROR_REDIRECTOR_HAS_OPEN_HANDLES,
738     ERROR_PRINTER_DRIVER_ALREADY_INSTALLED,
739     ERROR_UNKNOWN_PORT,
740     ERROR_UNKNOWN_PRINTER_DRIVER,
741     ERROR_UNKNOWN_PRINTPROCESSOR,
742     ERROR_INVALID_SEPARATOR_FILE,
743     ERROR_INVALID_PRIORITY,
744     ERROR_INVALID_PRINTER_NAME,
745     ERROR_PRINTER_ALREADY_EXISTS,
746     ERROR_INVALID_PRINTER_COMMAND,
747     ERROR_INVALID_DATATYPE,
748     ERROR_INVALID_ENVIRONMENT,
749     RPC_S_NO_MORE_BINDINGS,
750     ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT,
751     ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT,
752     ERROR_NOLOGON_SERVER_TRUST_ACCOUNT,
753     ERROR_DOMAIN_TRUST_INCONSISTENT,
754     ERROR_SERVER_HAS_OPEN_HANDLES,
755     ERROR_RESOURCE_DATA_NOT_FOUND,
756     ERROR_RESOURCE_TYPE_NOT_FOUND,
757     ERROR_RESOURCE_NAME_NOT_FOUND,
758     ERROR_RESOURCE_LANG_NOT_FOUND,
759     ERROR_NOT_ENOUGH_QUOTA,
760     RPC_S_NO_INTERFACES,
761     RPC_S_CALL_CANCELLED,
762     RPC_S_BINDING_INCOMPLETE,
763     RPC_S_COMM_FAILURE,
764     RPC_S_UNSUPPORTED_AUTHN_LEVEL,
765     RPC_S_NO_PRINC_NAME,
766     RPC_S_NOT_RPC_ERROR,
767     RPC_S_UUID_LOCAL_ONLY,
768     RPC_S_SEC_PKG_ERROR,
769     RPC_S_NOT_CANCELLED,
770     RPC_X_INVALID_ES_ACTION,
771     RPC_X_WRONG_ES_VERSION,
772     RPC_X_WRONG_STUB_VERSION,
773     RPC_X_INVALID_PIPE_OBJECT,
774     RPC_X_WRONG_PIPE_ORDER,
775     RPC_X_WRONG_PIPE_VERSION,                          // =  1832
776     RPC_S_GROUP_MEMBER_NOT_FOUND                          =  1898,
777     EPT_S_CANT_CREATE,
778     RPC_S_INVALID_OBJECT,
779     ERROR_INVALID_TIME,
780     ERROR_INVALID_FORM_NAME,
781     ERROR_INVALID_FORM_SIZE,
782     ERROR_ALREADY_WAITING,
783     ERROR_PRINTER_DELETED,
784     ERROR_INVALID_PRINTER_STATE,
785     ERROR_PASSWORD_MUST_CHANGE,
786     ERROR_DOMAIN_CONTROLLER_NOT_FOUND,
787     ERROR_ACCOUNT_LOCKED_OUT,
788     OR_INVALID_OXID,
789     OR_INVALID_OID,
790     OR_INVALID_SET,
791     RPC_S_SEND_INCOMPLETE,
792     RPC_S_INVALID_ASYNC_HANDLE,
793     RPC_S_INVALID_ASYNC_CALL,
794     RPC_X_PIPE_CLOSED,
795     RPC_X_PIPE_DISCIPLINE_ERROR,
796     RPC_X_PIPE_EMPTY,
797     ERROR_NO_SITENAME,
798     ERROR_CANT_ACCESS_FILE,
799     ERROR_CANT_RESOLVE_FILENAME,
800     RPC_S_ENTRY_TYPE_MISMATCH,
801     RPC_S_NOT_ALL_OBJS_EXPORTED,
802     RPC_S_INTERFACE_NOT_EXPORTED,
803     RPC_S_PROFILE_NOT_ADDED,
804     RPC_S_PRF_ELT_NOT_ADDED,
805     RPC_S_PRF_ELT_NOT_REMOVED,
806     RPC_S_GRP_ELT_NOT_ADDED,
807     RPC_S_GRP_ELT_NOT_REMOVED,
808     ERROR_KM_DRIVER_BLOCKED,
809     ERROR_CONTEXT_EXPIRED,
810     ERROR_PER_USER_TRUST_QUOTA_EXCEEDED,
811     ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED,
812     ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED,            // =  1934
813     ERROR_INVALID_PIXEL_FORMAT                            =  2000,
814     ERROR_BAD_DRIVER,
815     ERROR_INVALID_WINDOW_STYLE,
816     ERROR_METAFILE_NOT_SUPPORTED,
817     ERROR_TRANSFORM_NOT_SUPPORTED,
818     ERROR_CLIPPING_NOT_SUPPORTED,                      // =  2005
819     ERROR_INVALID_CMM                                     =  2010,
820     ERROR_INVALID_PROFILE,
821     ERROR_TAG_NOT_FOUND,
822     ERROR_TAG_NOT_PRESENT,
823     ERROR_DUPLICATE_TAG,
824     ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE,
825     ERROR_PROFILE_NOT_FOUND,
826     ERROR_INVALID_COLORSPACE,
827     ERROR_ICM_NOT_ENABLED,
828     ERROR_DELETING_ICM_XFORM,
829     ERROR_INVALID_TRANSFORM,
830     ERROR_COLORSPACE_MISMATCH,
831     ERROR_INVALID_COLORINDEX,                          // =  2022
832     ERROR_CONNECTED_OTHER_PASSWORD                        =  2108,
833     ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT,            // =  2109
834     ERROR_BAD_USERNAME                                    =  2202,
835     ERROR_NOT_CONNECTED                                   =  2250,
836     ERROR_OPEN_FILES                                      =  2401,
837     ERROR_ACTIVE_CONNECTIONS,                          // =  2402
838     ERROR_DEVICE_IN_USE                                   =  2404,
839     ERROR_UNKNOWN_PRINT_MONITOR                           =  3000,
840     ERROR_PRINTER_DRIVER_IN_USE,
841     ERROR_SPOOL_FILE_NOT_FOUND,
842     ERROR_SPL_NO_STARTDOC,
843     ERROR_SPL_NO_ADDJOB,
844     ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED,
845     ERROR_PRINT_MONITOR_ALREADY_INSTALLED,
846     ERROR_INVALID_PRINT_MONITOR,
847     ERROR_PRINT_MONITOR_IN_USE,
848     ERROR_PRINTER_HAS_JOBS_QUEUED,
849     ERROR_SUCCESS_REBOOT_REQUIRED,
850     ERROR_SUCCESS_RESTART_REQUIRED,
851     ERROR_PRINTER_NOT_FOUND,
852     ERROR_PRINTER_DRIVER_WARNED,
853     ERROR_PRINTER_DRIVER_BLOCKED,                      // =  3014
854     ERROR_WINS_INTERNAL                                   =  4000,
855     ERROR_CAN_NOT_DEL_LOCAL_WINS,
856     ERROR_STATIC_INIT,
857     ERROR_INC_BACKUP,
858     ERROR_FULL_BACKUP,
859     ERROR_REC_NON_EXISTENT,
860     ERROR_RPL_NOT_ALLOWED,                             // =  4006
861     ERROR_DHCP_ADDRESS_CONFLICT                           =  4100,
862     ERROR_WMI_GUID_NOT_FOUND                              =  4200,
863     ERROR_WMI_INSTANCE_NOT_FOUND,
864     ERROR_WMI_ITEMID_NOT_FOUND,
865     ERROR_WMI_TRY_AGAIN,
866     ERROR_WMI_DP_NOT_FOUND,
867     ERROR_WMI_UNRESOLVED_INSTANCE_REF,
868     ERROR_WMI_ALREADY_ENABLED,
869     ERROR_WMI_GUID_DISCONNECTED,
870     ERROR_WMI_SERVER_UNAVAILABLE,
871     ERROR_WMI_DP_FAILED,
872     ERROR_WMI_INVALID_MOF,
873     ERROR_WMI_INVALID_REGINFO,
874     ERROR_WMI_ALREADY_DISABLED,
875     ERROR_WMI_READ_ONLY,
876     ERROR_WMI_SET_FAILURE,                             // =  4214
877     ERROR_INVALID_MEDIA                                   =  4300,
878     ERROR_INVALID_LIBRARY,
879     ERROR_INVALID_MEDIA_POOL,
880     ERROR_DRIVE_MEDIA_MISMATCH,
881     ERROR_MEDIA_OFFLINE,
882     ERROR_LIBRARY_OFFLINE,
883     ERROR_EMPTY,
884     ERROR_NOT_EMPTY,
885     ERROR_MEDIA_UNAVAILABLE,
886     ERROR_RESOURCE_DISABLED,
887     ERROR_INVALID_CLEANER,
888     ERROR_UNABLE_TO_CLEAN,
889     ERROR_OBJECT_NOT_FOUND,
890     ERROR_DATABASE_FAILURE,
891     ERROR_DATABASE_FULL,
892     ERROR_MEDIA_INCOMPATIBLE,
893     ERROR_RESOURCE_NOT_PRESENT,
894     ERROR_INVALID_OPERATION,
895     ERROR_MEDIA_NOT_AVAILABLE,
896     ERROR_DEVICE_NOT_AVAILABLE,
897     ERROR_REQUEST_REFUSED,
898     ERROR_INVALID_DRIVE_OBJECT,
899     ERROR_LIBRARY_FULL,
900     ERROR_MEDIUM_NOT_ACCESSIBLE,
901     ERROR_UNABLE_TO_LOAD_MEDIUM,
902     ERROR_UNABLE_TO_INVENTORY_DRIVE,
903     ERROR_UNABLE_TO_INVENTORY_SLOT,
904     ERROR_UNABLE_TO_INVENTORY_TRANSPORT,
905     ERROR_TRANSPORT_FULL,
906     ERROR_CONTROLLING_IEPORT,
907     ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA,
908     ERROR_CLEANER_SLOT_SET,
909     ERROR_CLEANER_SLOT_NOT_SET,
910     ERROR_CLEANER_CARTRIDGE_SPENT,
911     ERROR_UNEXPECTED_OMID,
912     ERROR_CANT_DELETE_LAST_ITEM,
913     ERROR_MESSAGE_EXCEEDS_MAX_SIZE,
914     ERROR_VOLUME_CONTAINS_SYS_FILES,
915     ERROR_INDIGENOUS_TYPE,
916     ERROR_NO_SUPPORTING_DRIVES,
917     ERROR_CLEANER_CARTRIDGE_INSTALLED,                 // =  4340
918     ERROR_FILE_OFFLINE                                    =  4350,
919     ERROR_REMOTE_STORAGE_NOT_ACTIVE,
920     ERROR_REMOTE_STORAGE_MEDIA_ERROR,                  // =  4352
921     ERROR_NOT_A_REPARSE_POINT                             =  4390,
922     ERROR_REPARSE_ATTRIBUTE_CONFLICT,
923     ERROR_INVALID_REPARSE_DATA,
924     ERROR_REPARSE_TAG_INVALID,
925     ERROR_REPARSE_TAG_MISMATCH,                        // =  4394
926     ERROR_VOLUME_NOT_SIS_ENABLED                          =  4500,
927     ERROR_DEPENDENT_RESOURCE_EXISTS                       =  5001,
928     ERROR_DEPENDENCY_NOT_FOUND,
929     ERROR_DEPENDENCY_ALREADY_EXISTS,
930     ERROR_RESOURCE_NOT_ONLINE,
931     ERROR_HOST_NODE_NOT_AVAILABLE,
932     ERROR_RESOURCE_NOT_AVAILABLE,
933     ERROR_RESOURCE_NOT_FOUND,
934     ERROR_SHUTDOWN_CLUSTER,
935     ERROR_CANT_EVICT_ACTIVE_NODE,
936     ERROR_OBJECT_ALREADY_EXISTS,
937     ERROR_OBJECT_IN_LIST,
938     ERROR_GROUP_NOT_AVAILABLE,
939     ERROR_GROUP_NOT_FOUND,
940     ERROR_GROUP_NOT_ONLINE,
941     ERROR_HOST_NODE_NOT_RESOURCE_OWNER,
942     ERROR_HOST_NODE_NOT_GROUP_OWNER,
943     ERROR_RESMON_CREATE_FAILED,
944     ERROR_RESMON_ONLINE_FAILED,
945     ERROR_RESOURCE_ONLINE,
946     ERROR_QUORUM_RESOURCE,
947     ERROR_NOT_QUORUM_CAPABLE,
948     ERROR_CLUSTER_SHUTTING_DOWN,
949     ERROR_INVALID_STATE,
950     ERROR_RESOURCE_PROPERTIES_STORED,
951     ERROR_NOT_QUORUM_CLASS,
952     ERROR_CORE_RESOURCE,
953     ERROR_QUORUM_RESOURCE_ONLINE_FAILED,
954     ERROR_QUORUMLOG_OPEN_FAILED,
955     ERROR_CLUSTERLOG_CORRUPT,
956     ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE,
957     ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE,
958     ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND,
959     ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE,
960     ERROR_QUORUM_OWNER_ALIVE,
961     ERROR_NETWORK_NOT_AVAILABLE,
962     ERROR_NODE_NOT_AVAILABLE,
963     ERROR_ALL_NODES_NOT_AVAILABLE,
964     ERROR_RESOURCE_FAILED,
965     ERROR_CLUSTER_INVALID_NODE,
966     ERROR_CLUSTER_NODE_EXISTS,
967     ERROR_CLUSTER_JOIN_IN_PROGRESS,
968     ERROR_CLUSTER_NODE_NOT_FOUND,
969     ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND,
970     ERROR_CLUSTER_NETWORK_EXISTS,
971     ERROR_CLUSTER_NETWORK_NOT_FOUND,
972     ERROR_CLUSTER_NETINTERFACE_EXISTS,
973     ERROR_CLUSTER_NETINTERFACE_NOT_FOUND,
974     ERROR_CLUSTER_INVALID_REQUEST,
975     ERROR_CLUSTER_INVALID_NETWORK_PROVIDER,
976     ERROR_CLUSTER_NODE_DOWN,
977     ERROR_CLUSTER_NODE_UNREACHABLE,
978     ERROR_CLUSTER_NODE_NOT_MEMBER,
979     ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS,
980     ERROR_CLUSTER_INVALID_NETWORK,                     // =  5054
981     ERROR_CLUSTER_NODE_UP                                 =  5056,
982     ERROR_CLUSTER_IPADDR_IN_USE,
983     ERROR_CLUSTER_NODE_NOT_PAUSED,
984     ERROR_CLUSTER_NO_SECURITY_CONTEXT,
985     ERROR_CLUSTER_NETWORK_NOT_INTERNAL,
986     ERROR_CLUSTER_NODE_ALREADY_UP,
987     ERROR_CLUSTER_NODE_ALREADY_DOWN,
988     ERROR_CLUSTER_NETWORK_ALREADY_ONLINE,
989     ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE,
990     ERROR_CLUSTER_NODE_ALREADY_MEMBER,
991     ERROR_CLUSTER_LAST_INTERNAL_NETWORK,
992     ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS,
993     ERROR_INVALID_OPERATION_ON_QUORUM,
994     ERROR_DEPENDENCY_NOT_ALLOWED,
995     ERROR_CLUSTER_NODE_PAUSED,
996     ERROR_NODE_CANT_HOST_RESOURCE,
997     ERROR_CLUSTER_NODE_NOT_READY,
998     ERROR_CLUSTER_NODE_SHUTTING_DOWN,
999     ERROR_CLUSTER_JOIN_ABORTED,
1000     ERROR_CLUSTER_INCOMPATIBLE_VERSIONS,
1001     ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED,
1002     ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED,
1003     ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND,
1004     ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED,
1005     ERROR_CLUSTER_RESNAME_NOT_FOUND,
1006     ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED,
1007     ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST,
1008     ERROR_CLUSTER_DATABASE_SEQMISMATCH,
1009     ERROR_RESMON_INVALID_STATE,
1010     ERROR_CLUSTER_GUM_NOT_LOCKER,
1011     ERROR_QUORUM_DISK_NOT_FOUND,
1012     ERROR_DATABASE_BACKUP_CORRUPT,
1013     ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT,
1014     ERROR_RESOURCE_PROPERTY_UNCHANGEABLE,              // =  5089
1015     ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE                =  5890,
1016     ERROR_CLUSTER_QUORUMLOG_NOT_FOUND,
1017     ERROR_CLUSTER_MEMBERSHIP_HALT,
1018     ERROR_CLUSTER_INSTANCE_ID_MISMATCH,
1019     ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP,
1020     ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH,
1021     ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP,
1022     ERROR_CLUSTER_PARAMETER_MISMATCH,
1023     ERROR_NODE_CANNOT_BE_CLUSTERED,
1024     ERROR_CLUSTER_WRONG_OS_VERSION,
1025     ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME,
1026     ERROR_CLUSCFG_ALREADY_COMMITTED,
1027     ERROR_CLUSCFG_ROLLBACK_FAILED,
1028     ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT,
1029     ERROR_CLUSTER_OLD_VERSION,
1030     ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME,       // =  5905
1031     ERROR_ENCRYPTION_FAILED                               =  6000,
1032     ERROR_DECRYPTION_FAILED,
1033     ERROR_FILE_ENCRYPTED,
1034     ERROR_NO_RECOVERY_POLICY,
1035     ERROR_NO_EFS,
1036     ERROR_WRONG_EFS,
1037     ERROR_NO_USER_KEYS,
1038     ERROR_FILE_NOT_ENCRYPTED,
1039     ERROR_NOT_EXPORT_FORMAT,
1040     ERROR_FILE_READ_ONLY,
1041     ERROR_DIR_EFS_DISALLOWED,
1042     ERROR_EFS_SERVER_NOT_TRUSTED,
1043     ERROR_BAD_RECOVERY_POLICY,
1044     ERROR_EFS_ALG_BLOB_TOO_BIG,
1045     ERROR_VOLUME_NOT_SUPPORT_EFS,
1046     ERROR_EFS_DISABLED,
1047     ERROR_EFS_VERSION_NOT_SUPPORT,                     // =  6016
1048     ERROR_NO_BROWSER_SERVERS_FOUND                        =  6118,
1049     SCHED_E_SERVICE_NOT_LOCALSYSTEM                       =  6200,
1050 
1051     ERROR_CTX_WINSTATION_NAME_INVALID                     =  7001,
1052     ERROR_CTX_INVALID_PD,
1053     ERROR_CTX_PD_NOT_FOUND,
1054     ERROR_CTX_WD_NOT_FOUND,
1055     ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY,
1056     ERROR_CTX_SERVICE_NAME_COLLISION,
1057     ERROR_CTX_CLOSE_PENDING,
1058     ERROR_CTX_NO_OUTBUF,
1059     ERROR_CTX_MODEM_INF_NOT_FOUND,
1060     ERROR_CTX_INVALID_MODEMNAME,
1061     ERROR_CTX_MODEM_RESPONSE_ERROR,
1062     ERROR_CTX_MODEM_RESPONSE_TIMEOUT,
1063     ERROR_CTX_MODEM_RESPONSE_NO_CARRIER,
1064     ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE,
1065     ERROR_CTX_MODEM_RESPONSE_BUSY,
1066     ERROR_CTX_MODEM_RESPONSE_VOICE,
1067     ERROR_CTX_TD_ERROR,                                // =  7017
1068     ERROR_CTX_WINSTATION_NOT_FOUND                        =  7022,
1069     ERROR_CTX_WINSTATION_ALREADY_EXISTS,
1070     ERROR_CTX_WINSTATION_BUSY,
1071     ERROR_CTX_BAD_VIDEO_MODE,                          // =  7025
1072     ERROR_CTX_GRAPHICS_INVALID                            =  7035,
1073     ERROR_CTX_LOGON_DISABLED                              =  7037,
1074     ERROR_CTX_NOT_CONSOLE,                             // =  7038
1075     ERROR_CTX_CLIENT_QUERY_TIMEOUT                        =  7040,
1076     ERROR_CTX_CONSOLE_DISCONNECT,
1077     ERROR_CTX_CONSOLE_CONNECT,                         // =  7042
1078     ERROR_CTX_SHADOW_DENIED                               =  7044,
1079     ERROR_CTX_WINSTATION_ACCESS_DENIED,                // =  7045
1080     ERROR_CTX_INVALID_WD                                  =  7049,
1081     ERROR_CTX_SHADOW_INVALID,
1082     ERROR_CTX_SHADOW_DISABLED,
1083     ERROR_CTX_CLIENT_LICENSE_IN_USE,
1084     ERROR_CTX_CLIENT_LICENSE_NOT_SET,
1085     ERROR_CTX_LICENSE_NOT_AVAILABLE,
1086     ERROR_CTX_LICENSE_CLIENT_INVALID,
1087     ERROR_CTX_LICENSE_EXPIRED,
1088     ERROR_CTX_SHADOW_NOT_RUNNING,
1089     ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE,
1090     ERROR_ACTIVATION_COUNT_EXCEEDED,                   // =  7059
1091 
1092     FRS_ERR_INVALID_API_SEQUENCE                          =  8001,
1093     FRS_ERR_STARTING_SERVICE,
1094     FRS_ERR_STOPPING_SERVICE,
1095     FRS_ERR_INTERNAL_API,
1096     FRS_ERR_INTERNAL,
1097     FRS_ERR_SERVICE_COMM,
1098     FRS_ERR_INSUFFICIENT_PRIV,
1099     FRS_ERR_AUTHENTICATION,
1100     FRS_ERR_PARENT_INSUFFICIENT_PRIV,
1101     FRS_ERR_PARENT_AUTHENTICATION,
1102     FRS_ERR_CHILD_TO_PARENT_COMM,
1103     FRS_ERR_PARENT_TO_CHILD_COMM,
1104     FRS_ERR_SYSVOL_POPULATE,
1105     FRS_ERR_SYSVOL_POPULATE_TIMEOUT,
1106     FRS_ERR_SYSVOL_IS_BUSY,
1107     FRS_ERR_SYSVOL_DEMOTE,
1108     FRS_ERR_INVALID_SERVICE_PARAMETER,                 // =  8017
1109     ERROR_DS_NOT_INSTALLED                                =  8200,
1110     ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY,
1111     ERROR_DS_NO_ATTRIBUTE_OR_VALUE,
1112     ERROR_DS_INVALID_ATTRIBUTE_SYNTAX,
1113     ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED,
1114     ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS,
1115     ERROR_DS_BUSY,
1116     ERROR_DS_UNAVAILABLE,
1117     ERROR_DS_NO_RIDS_ALLOCATED,
1118     ERROR_DS_NO_MORE_RIDS,
1119     ERROR_DS_INCORRECT_ROLE_OWNER,
1120     ERROR_DS_RIDMGR_INIT_ERROR,
1121     ERROR_DS_OBJ_CLASS_VIOLATION,
1122     ERROR_DS_CANT_ON_NON_LEAF,
1123     ERROR_DS_CANT_ON_RDN,
1124     ERROR_DS_CANT_MOD_OBJ_CLASS,
1125     ERROR_DS_CROSS_DOM_MOVE_ERROR,
1126     ERROR_DS_GC_NOT_AVAILABLE,
1127     ERROR_SHARED_POLICY,
1128     ERROR_POLICY_OBJECT_NOT_FOUND,
1129     ERROR_POLICY_ONLY_IN_DS,
1130     ERROR_PROMOTION_ACTIVE,
1131     ERROR_NO_PROMOTION_ACTIVE,                         // =  8222
1132     ERROR_DS_OPERATIONS_ERROR                             =  8224,
1133     ERROR_DS_PROTOCOL_ERROR,
1134     ERROR_DS_TIMELIMIT_EXCEEDED,
1135     ERROR_DS_SIZELIMIT_EXCEEDED,
1136     ERROR_DS_ADMIN_LIMIT_EXCEEDED,
1137     ERROR_DS_COMPARE_FALSE,
1138     ERROR_DS_COMPARE_TRUE,
1139     ERROR_DS_AUTH_METHOD_NOT_SUPPORTED,
1140     ERROR_DS_STRONG_AUTH_REQUIRED,
1141     ERROR_DS_INAPPROPRIATE_AUTH,
1142     ERROR_DS_AUTH_UNKNOWN,
1143     ERROR_DS_REFERRAL,
1144     ERROR_DS_UNAVAILABLE_CRIT_EXTENSION,
1145     ERROR_DS_CONFIDENTIALITY_REQUIRED,
1146     ERROR_DS_INAPPROPRIATE_MATCHING,
1147     ERROR_DS_CONSTRAINT_VIOLATION,
1148     ERROR_DS_NO_SUCH_OBJECT,
1149     ERROR_DS_ALIAS_PROBLEM,
1150     ERROR_DS_INVALID_DN_SYNTAX,
1151     ERROR_DS_IS_LEAF,
1152     ERROR_DS_ALIAS_DEREF_PROBLEM,
1153     ERROR_DS_UNWILLING_TO_PERFORM,
1154     ERROR_DS_LOOP_DETECT,
1155     ERROR_DS_NAMING_VIOLATION,
1156     ERROR_DS_OBJECT_RESULTS_TOO_LARGE,
1157     ERROR_DS_AFFECTS_MULTIPLE_DSAS,
1158     ERROR_DS_SERVER_DOWN,
1159     ERROR_DS_LOCAL_ERROR,
1160     ERROR_DS_ENCODING_ERROR,
1161     ERROR_DS_DECODING_ERROR,
1162     ERROR_DS_FILTER_UNKNOWN,
1163     ERROR_DS_PARAM_ERROR,
1164     ERROR_DS_NOT_SUPPORTED,
1165     ERROR_DS_NO_RESULTS_RETURNED,
1166     ERROR_DS_CONTROL_NOT_FOUND,
1167     ERROR_DS_CLIENT_LOOP,
1168     ERROR_DS_REFERRAL_LIMIT_EXCEEDED,
1169     ERROR_DS_SORT_CONTROL_MISSING,
1170     ERROR_DS_OFFSET_RANGE_ERROR,                       // =  8262
1171     ERROR_DS_ROOT_MUST_BE_NC                              =  8301,
1172     ERROR_DS_ADD_REPLICA_INHIBITED,
1173     ERROR_DS_ATT_NOT_DEF_IN_SCHEMA,
1174     ERROR_DS_MAX_OBJ_SIZE_EXCEEDED,
1175     ERROR_DS_OBJ_STRING_NAME_EXISTS,
1176     ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA,
1177     ERROR_DS_RDN_DOESNT_MATCH_SCHEMA,
1178     ERROR_DS_NO_REQUESTED_ATTS_FOUND,
1179     ERROR_DS_USER_BUFFER_TO_SMALL,
1180     ERROR_DS_ATT_IS_NOT_ON_OBJ,
1181     ERROR_DS_ILLEGAL_MOD_OPERATION,
1182     ERROR_DS_OBJ_TOO_LARGE,
1183     ERROR_DS_BAD_INSTANCE_TYPE,
1184     ERROR_DS_MASTERDSA_REQUIRED,
1185     ERROR_DS_OBJECT_CLASS_REQUIRED,
1186     ERROR_DS_MISSING_REQUIRED_ATT,
1187     ERROR_DS_ATT_NOT_DEF_FOR_CLASS,
1188     ERROR_DS_ATT_ALREADY_EXISTS,                       // =  8318
1189     ERROR_DS_CANT_ADD_ATT_VALUES                          =  8320,
1190     ERROR_DS_SINGLE_VALUE_CONSTRAINT,
1191     ERROR_DS_RANGE_CONSTRAINT,
1192     ERROR_DS_ATT_VAL_ALREADY_EXISTS,
1193     ERROR_DS_CANT_REM_MISSING_ATT,
1194     ERROR_DS_CANT_REM_MISSING_ATT_VAL,
1195     ERROR_DS_ROOT_CANT_BE_SUBREF,
1196     ERROR_DS_NO_CHAINING,
1197     ERROR_DS_NO_CHAINED_EVAL,
1198     ERROR_DS_NO_PARENT_OBJECT,
1199     ERROR_DS_PARENT_IS_AN_ALIAS,
1200     ERROR_DS_CANT_MIX_MASTER_AND_REPS,
1201     ERROR_DS_CHILDREN_EXIST,
1202     ERROR_DS_OBJ_NOT_FOUND,
1203     ERROR_DS_ALIASED_OBJ_MISSING,
1204     ERROR_DS_BAD_NAME_SYNTAX,
1205     ERROR_DS_ALIAS_POINTS_TO_ALIAS,
1206     ERROR_DS_CANT_DEREF_ALIAS,
1207     ERROR_DS_OUT_OF_SCOPE,
1208     ERROR_DS_OBJECT_BEING_REMOVED,
1209     ERROR_DS_CANT_DELETE_DSA_OBJ,
1210     ERROR_DS_GENERIC_ERROR,
1211     ERROR_DS_DSA_MUST_BE_INT_MASTER,
1212     ERROR_DS_CLASS_NOT_DSA,
1213     ERROR_DS_INSUFF_ACCESS_RIGHTS,
1214     ERROR_DS_ILLEGAL_SUPERIOR,
1215     ERROR_DS_ATTRIBUTE_OWNED_BY_SAM,
1216     ERROR_DS_NAME_TOO_MANY_PARTS,
1217     ERROR_DS_NAME_TOO_LONG,
1218     ERROR_DS_NAME_VALUE_TOO_LONG,
1219     ERROR_DS_NAME_UNPARSEABLE,
1220     ERROR_DS_NAME_TYPE_UNKNOWN,
1221     ERROR_DS_NOT_AN_OBJECT,
1222     ERROR_DS_SEC_DESC_TOO_SHORT,
1223     ERROR_DS_SEC_DESC_INVALID,
1224     ERROR_DS_NO_DELETED_NAME,
1225     ERROR_DS_SUBREF_MUST_HAVE_PARENT,
1226     ERROR_DS_NCNAME_MUST_BE_NC,
1227     ERROR_DS_CANT_ADD_SYSTEM_ONLY,
1228     ERROR_DS_CLASS_MUST_BE_CONCRETE,
1229     ERROR_DS_INVALID_DMD,
1230     ERROR_DS_OBJ_GUID_EXISTS,
1231     ERROR_DS_NOT_ON_BACKLINK,
1232     ERROR_DS_NO_CROSSREF_FOR_NC,
1233     ERROR_DS_SHUTTING_DOWN,
1234     ERROR_DS_UNKNOWN_OPERATION,
1235     ERROR_DS_INVALID_ROLE_OWNER,
1236     ERROR_DS_COULDNT_CONTACT_FSMO,
1237     ERROR_DS_CROSS_NC_DN_RENAME,
1238     ERROR_DS_CANT_MOD_SYSTEM_ONLY,
1239     ERROR_DS_REPLICATOR_ONLY,
1240     ERROR_DS_OBJ_CLASS_NOT_DEFINED,
1241     ERROR_DS_OBJ_CLASS_NOT_SUBCLASS,
1242     ERROR_DS_NAME_REFERENCE_INVALID,
1243     ERROR_DS_CROSS_REF_EXISTS,
1244     ERROR_DS_CANT_DEL_MASTER_CROSSREF,
1245     ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD,
1246     ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX,
1247     ERROR_DS_DUP_RDN,
1248     ERROR_DS_DUP_OID,
1249     ERROR_DS_DUP_MAPI_ID,
1250     ERROR_DS_DUP_SCHEMA_ID_GUID,
1251     ERROR_DS_DUP_LDAP_DISPLAY_NAME,
1252     ERROR_DS_SEMANTIC_ATT_TEST,
1253     ERROR_DS_SYNTAX_MISMATCH,
1254     ERROR_DS_EXISTS_IN_MUST_HAVE,
1255     ERROR_DS_EXISTS_IN_MAY_HAVE,
1256     ERROR_DS_NONEXISTENT_MAY_HAVE,
1257     ERROR_DS_NONEXISTENT_MUST_HAVE,
1258     ERROR_DS_AUX_CLS_TEST_FAIL,
1259     ERROR_DS_NONEXISTENT_POSS_SUP,
1260     ERROR_DS_SUB_CLS_TEST_FAIL,
1261     ERROR_DS_BAD_RDN_ATT_ID_SYNTAX,
1262     ERROR_DS_EXISTS_IN_AUX_CLS,
1263     ERROR_DS_EXISTS_IN_SUB_CLS,
1264     ERROR_DS_EXISTS_IN_POSS_SUP,
1265     ERROR_DS_RECALCSCHEMA_FAILED,
1266     ERROR_DS_TREE_DELETE_NOT_FINISHED,
1267     ERROR_DS_CANT_DELETE,
1268     ERROR_DS_ATT_SCHEMA_REQ_ID,
1269     ERROR_DS_BAD_ATT_SCHEMA_SYNTAX,
1270     ERROR_DS_CANT_CACHE_ATT,
1271     ERROR_DS_CANT_CACHE_CLASS,
1272     ERROR_DS_CANT_REMOVE_ATT_CACHE,
1273     ERROR_DS_CANT_REMOVE_CLASS_CACHE,
1274     ERROR_DS_CANT_RETRIEVE_DN,
1275     ERROR_DS_MISSING_SUPREF,
1276     ERROR_DS_CANT_RETRIEVE_INSTANCE,
1277     ERROR_DS_CODE_INCONSISTENCY,
1278     ERROR_DS_DATABASE_ERROR,
1279     ERROR_DS_GOVERNSID_MISSING,
1280     ERROR_DS_MISSING_EXPECTED_ATT,
1281     ERROR_DS_NCNAME_MISSING_CR_REF,
1282     ERROR_DS_SECURITY_CHECKING_ERROR,
1283     ERROR_DS_SCHEMA_NOT_LOADED,
1284     ERROR_DS_SCHEMA_ALLOC_FAILED,
1285     ERROR_DS_ATT_SCHEMA_REQ_SYNTAX,
1286     ERROR_DS_GCVERIFY_ERROR,
1287     ERROR_DS_DRA_SCHEMA_MISMATCH,
1288     ERROR_DS_CANT_FIND_DSA_OBJ,
1289     ERROR_DS_CANT_FIND_EXPECTED_NC,
1290     ERROR_DS_CANT_FIND_NC_IN_CACHE,
1291     ERROR_DS_CANT_RETRIEVE_CHILD,
1292     ERROR_DS_SECURITY_ILLEGAL_MODIFY,
1293     ERROR_DS_CANT_REPLACE_HIDDEN_REC,
1294     ERROR_DS_BAD_HIERARCHY_FILE,
1295     ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED,
1296     ERROR_DS_CONFIG_PARAM_MISSING,
1297     ERROR_DS_COUNTING_AB_INDICES_FAILED,
1298     ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED,
1299     ERROR_DS_INTERNAL_FAILURE,
1300     ERROR_DS_UNKNOWN_ERROR,
1301     ERROR_DS_ROOT_REQUIRES_CLASS_TOP,
1302     ERROR_DS_REFUSING_FSMO_ROLES,
1303     ERROR_DS_MISSING_FSMO_SETTINGS,
1304     ERROR_DS_UNABLE_TO_SURRENDER_ROLES,
1305     ERROR_DS_DRA_GENERIC,
1306     ERROR_DS_DRA_INVALID_PARAMETER,
1307     ERROR_DS_DRA_BUSY,
1308     ERROR_DS_DRA_BAD_DN,
1309     ERROR_DS_DRA_BAD_NC,
1310     ERROR_DS_DRA_DN_EXISTS,
1311     ERROR_DS_DRA_INTERNAL_ERROR,
1312     ERROR_DS_DRA_INCONSISTENT_DIT,
1313     ERROR_DS_DRA_CONNECTION_FAILED,
1314     ERROR_DS_DRA_BAD_INSTANCE_TYPE,
1315     ERROR_DS_DRA_OUT_OF_MEM,
1316     ERROR_DS_DRA_MAIL_PROBLEM,
1317     ERROR_DS_DRA_REF_ALREADY_EXISTS,
1318     ERROR_DS_DRA_REF_NOT_FOUND,
1319     ERROR_DS_DRA_OBJ_IS_REP_SOURCE,
1320     ERROR_DS_DRA_DB_ERROR,
1321     ERROR_DS_DRA_NO_REPLICA,
1322     ERROR_DS_DRA_ACCESS_DENIED,
1323     ERROR_DS_DRA_NOT_SUPPORTED,
1324     ERROR_DS_DRA_RPC_CANCELLED,
1325     ERROR_DS_DRA_SOURCE_DISABLED,
1326     ERROR_DS_DRA_SINK_DISABLED,
1327     ERROR_DS_DRA_NAME_COLLISION,
1328     ERROR_DS_DRA_SOURCE_REINSTALLED,
1329     ERROR_DS_DRA_MISSING_PARENT,
1330     ERROR_DS_DRA_PREEMPTED,
1331     ERROR_DS_DRA_ABANDON_SYNC,
1332     ERROR_DS_DRA_SHUTDOWN,
1333     ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET,
1334     ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA,
1335     ERROR_DS_DRA_EXTN_CONNECTION_FAILED,
1336     ERROR_DS_INSTALL_SCHEMA_MISMATCH,
1337     ERROR_DS_DUP_LINK_ID,
1338     ERROR_DS_NAME_ERROR_RESOLVING,
1339     ERROR_DS_NAME_ERROR_NOT_FOUND,
1340     ERROR_DS_NAME_ERROR_NOT_UNIQUE,
1341     ERROR_DS_NAME_ERROR_NO_MAPPING,
1342     ERROR_DS_NAME_ERROR_DOMAIN_ONLY,
1343     ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING,
1344     ERROR_DS_CONSTRUCTED_ATT_MOD,
1345     ERROR_DS_WRONG_OM_OBJ_CLASS,
1346     ERROR_DS_DRA_REPL_PENDING,
1347     ERROR_DS_DS_REQUIRED,
1348     ERROR_DS_INVALID_LDAP_DISPLAY_NAME,
1349     ERROR_DS_NON_BASE_SEARCH,
1350     ERROR_DS_CANT_RETRIEVE_ATTS,
1351     ERROR_DS_BACKLINK_WITHOUT_LINK,
1352     ERROR_DS_EPOCH_MISMATCH,
1353     ERROR_DS_SRC_NAME_MISMATCH,
1354     ERROR_DS_SRC_AND_DST_NC_IDENTICAL,
1355     ERROR_DS_DST_NC_MISMATCH,
1356     ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC,
1357     ERROR_DS_SRC_GUID_MISMATCH,
1358     ERROR_DS_CANT_MOVE_DELETED_OBJECT,
1359     ERROR_DS_PDC_OPERATION_IN_PROGRESS,
1360     ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD,
1361     ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION,
1362     ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS,
1363     ERROR_DS_NC_MUST_HAVE_NC_PARENT,
1364     ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE,
1365     ERROR_DS_DST_DOMAIN_NOT_NATIVE,
1366     ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER,
1367     ERROR_DS_CANT_MOVE_ACCOUNT_GROUP,
1368     ERROR_DS_CANT_MOVE_RESOURCE_GROUP,
1369     ERROR_DS_INVALID_SEARCH_FLAG,
1370     ERROR_DS_NO_TREE_DELETE_ABOVE_NC,
1371     ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE,
1372     ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE,
1373     ERROR_DS_SAM_INIT_FAILURE,
1374     ERROR_DS_SENSITIVE_GROUP_VIOLATION,
1375     ERROR_DS_CANT_MOD_PRIMARYGROUPID,
1376     ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD,
1377     ERROR_DS_NONSAFE_SCHEMA_CHANGE,
1378     ERROR_DS_SCHEMA_UPDATE_DISALLOWED,
1379     ERROR_DS_CANT_CREATE_UNDER_SCHEMA,
1380     ERROR_DS_INSTALL_NO_SRC_SCH_VERSION,
1381     ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE,
1382     ERROR_DS_INVALID_GROUP_TYPE,
1383     ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN,
1384     ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN,
1385     ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER,
1386     ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER,
1387     ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER,
1388     ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER,
1389     ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER,
1390     ERROR_DS_HAVE_PRIMARY_MEMBERS,
1391     ERROR_DS_STRING_SD_CONVERSION_FAILED,
1392     ERROR_DS_NAMING_MASTER_GC,
1393     ERROR_DS_LOOKUP_FAILURE,
1394     ERROR_DS_COULDNT_UPDATE_SPNS,
1395     ERROR_DS_CANT_RETRIEVE_SD,
1396     ERROR_DS_KEY_NOT_UNIQUE,
1397     ERROR_DS_WRONG_LINKED_ATT_SYNTAX,
1398     ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD,
1399     ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY,
1400     ERROR_DS_CANT_START,
1401     ERROR_DS_INIT_FAILURE,
1402     ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION,
1403     ERROR_DS_SOURCE_DOMAIN_IN_FOREST,
1404     ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST,
1405     ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED,
1406     ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN,
1407     ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER,
1408     ERROR_DS_SRC_SID_EXISTS_IN_FOREST,
1409     ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH,
1410     ERROR_SAM_INIT_FAILURE,
1411     ERROR_DS_DRA_SCHEMA_INFO_SHIP,
1412     ERROR_DS_DRA_SCHEMA_CONFLICT,
1413     ERROR_DS_DRA_EARLIER_SCHEMA_CONLICT,
1414     ERROR_DS_DRA_OBJ_NC_MISMATCH,
1415     ERROR_DS_NC_STILL_HAS_DSAS,
1416     ERROR_DS_GC_REQUIRED,
1417     ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY,
1418     ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS,
1419     ERROR_DS_CANT_ADD_TO_GC,
1420     ERROR_DS_NO_CHECKPOINT_WITH_PDC,
1421     ERROR_DS_SOURCE_AUDITING_NOT_ENABLED,
1422     ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC,
1423     ERROR_DS_INVALID_NAME_FOR_SPN,
1424     ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS,
1425     ERROR_DS_UNICODEPWD_NOT_IN_QUOTES,
1426     ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED,
1427     ERROR_DS_MUST_BE_RUN_ON_DST_DC,
1428     ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER,
1429     ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ,
1430     ERROR_DS_INIT_FAILURE_CONSOLE,
1431     ERROR_DS_SAM_INIT_FAILURE_CONSOLE,
1432     ERROR_DS_FOREST_VERSION_TOO_HIGH,
1433     ERROR_DS_DOMAIN_VERSION_TOO_HIGH,
1434     ERROR_DS_FOREST_VERSION_TOO_LOW,
1435     ERROR_DS_DOMAIN_VERSION_TOO_LOW,
1436     ERROR_DS_INCOMPATIBLE_VERSION,
1437     ERROR_DS_LOW_DSA_VERSION,
1438     ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN,
1439     ERROR_DS_NOT_SUPPORTED_SORT_ORDER,
1440     ERROR_DS_NAME_NOT_UNIQUE,
1441     ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4,
1442     ERROR_DS_OUT_OF_VERSION_STORE,
1443     ERROR_DS_INCOMPATIBLE_CONTROLS_USED,
1444     ERROR_DS_NO_REF_DOMAIN,
1445     ERROR_DS_RESERVED_LINK_ID,
1446     ERROR_DS_LINK_ID_NOT_AVAILABLE,
1447     ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER,
1448     ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE,
1449     ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC,
1450     ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG,
1451     ERROR_DS_MODIFYDN_WRONG_GRANDPARENT,
1452     ERROR_DS_NAME_ERROR_TRUST_REFERRAL,
1453     ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER,
1454     ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD,
1455     ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2,
1456     ERROR_DS_THREAD_LIMIT_EXCEEDED,
1457     ERROR_DS_NOT_CLOSEST,
1458     ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF,
1459     ERROR_DS_SINGLE_USER_MODE_FAILED,
1460     ERROR_DS_NTDSCRIPT_SYNTAX_ERROR,
1461     ERROR_DS_NTDSCRIPT_PROCESS_ERROR,
1462     ERROR_DS_DIFFERENT_REPL_EPOCHS,
1463     ERROR_DS_DRS_EXTENSIONS_CHANGED,
1464     ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR,
1465     ERROR_DS_NO_MSDS_INTID,
1466     ERROR_DS_DUP_MSDS_INTID,
1467     ERROR_DS_EXISTS_IN_RDNATTID,
1468     ERROR_DS_AUTHORIZATION_FAILED,
1469     ERROR_DS_INVALID_SCRIPT,
1470     ERROR_DS_REMOTE_CROSSREF_OP_FAILED,
1471     ERROR_DS_CROSS_REF_BUSY,
1472     ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN,
1473     ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC,
1474     ERROR_DS_DUPLICATE_ID_FOUND,
1475     ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT,
1476     ERROR_DS_GROUP_CONVERSION_ERROR,
1477     ERROR_DS_CANT_MOVE_APP_BASIC_GROUP,
1478     ERROR_DS_CANT_MOVE_APP_QUERY_GROUP,
1479     ERROR_DS_ROLE_NOT_VERIFIED,
1480     ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL,
1481     ERROR_DS_DOMAIN_RENAME_IN_PROGRESS,
1482     ERROR_DS_EXISTING_AD_CHILD_NC,                     // =  8613
1483     DNS_ERROR_RCODE_FORMAT_ERROR                          =  9001,
1484     DNS_ERROR_RCODE_SERVER_FAILURE,
1485     DNS_ERROR_RCODE_NAME_ERROR,
1486     DNS_ERROR_RCODE_NOT_IMPLEMENTED,
1487     DNS_ERROR_RCODE_REFUSED,
1488     DNS_ERROR_RCODE_YXDOMAIN,
1489     DNS_ERROR_RCODE_YXRRSET,
1490     DNS_ERROR_RCODE_NXRRSET,
1491     DNS_ERROR_RCODE_NOTAUTH,
1492     DNS_ERROR_RCODE_NOTZONE,                           // =  9010
1493     DNS_ERROR_RCODE_BADSIG                                =  9016,
1494     DNS_ERROR_RCODE_BADKEY,
1495     DNS_ERROR_RCODE_BADTIME,                           // =  9018
1496     DNS_INFO_NO_RECORDS                                   =  9501,
1497     DNS_ERROR_BAD_PACKET,
1498     DNS_ERROR_NO_PACKET,
1499     DNS_ERROR_RCODE,
1500     DNS_ERROR_UNSECURE_PACKET,                         // =  9505
1501     DNS_ERROR_INVALID_TYPE                                =  9551,
1502     DNS_ERROR_INVALID_IP_ADDRESS,
1503     DNS_ERROR_INVALID_PROPERTY,
1504     DNS_ERROR_TRY_AGAIN_LATER,
1505     DNS_ERROR_NOT_UNIQUE,
1506     DNS_ERROR_NON_RFC_NAME,
1507     DNS_STATUS_FQDN,
1508     DNS_STATUS_DOTTED_NAME,
1509     DNS_STATUS_SINGLE_PART_NAME,
1510     DNS_ERROR_INVALID_NAME_CHAR,
1511     DNS_ERROR_NUMERIC_NAME,
1512     DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER,
1513     DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION,
1514     DNS_ERROR_CANNOT_FIND_ROOT_HINTS,
1515     DNS_ERROR_INCONSISTENT_ROOT_HINTS,                 // =  9565
1516     DNS_ERROR_ZONE_DOES_NOT_EXIST                         =  9601,
1517     DNS_ERROR_NO_ZONE_INFO,
1518     DNS_ERROR_INVALID_ZONE_OPERATION,
1519     DNS_ERROR_ZONE_CONFIGURATION_ERROR,
1520     DNS_ERROR_ZONE_HAS_NO_SOA_RECORD,
1521     DNS_ERROR_ZONE_HAS_NO_NS_RECORDS,
1522     DNS_ERROR_ZONE_LOCKED,
1523     DNS_ERROR_ZONE_CREATION_FAILED,
1524     DNS_ERROR_ZONE_ALREADY_EXISTS,
1525     DNS_ERROR_AUTOZONE_ALREADY_EXISTS,
1526     DNS_ERROR_INVALID_ZONE_TYPE,
1527     DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP,
1528     DNS_ERROR_ZONE_NOT_SECONDARY,
1529     DNS_ERROR_NEED_SECONDARY_ADDRESSES,
1530     DNS_ERROR_WINS_INIT_FAILED,
1531     DNS_ERROR_NEED_WINS_SERVERS,
1532     DNS_ERROR_NBSTAT_INIT_FAILED,
1533     DNS_ERROR_SOA_DELETE_INVALID,
1534     DNS_ERROR_FORWARDER_ALREADY_EXISTS,
1535     DNS_ERROR_ZONE_REQUIRES_MASTER_IP,
1536     DNS_ERROR_ZONE_IS_SHUTDOWN,                        // =  9621
1537     DNS_ERROR_PRIMARY_REQUIRES_DATAFILE                   =  9651,
1538     DNS_ERROR_INVALID_DATAFILE_NAME,
1539     DNS_ERROR_DATAFILE_OPEN_FAILURE,
1540     DNS_ERROR_FILE_WRITEBACK_FAILED,
1541     DNS_ERROR_DATAFILE_PARSING,                        // =  9655
1542     DNS_ERROR_RECORD_DOES_NOT_EXIST                       =  9701,
1543     DNS_ERROR_RECORD_FORMAT,
1544     DNS_ERROR_NODE_CREATION_FAILED,
1545     DNS_ERROR_UNKNOWN_RECORD_TYPE,
1546     DNS_ERROR_RECORD_TIMED_OUT,
1547     DNS_ERROR_NAME_NOT_IN_ZONE,
1548     DNS_ERROR_CNAME_LOOP,
1549     DNS_ERROR_NODE_IS_CNAME,
1550     DNS_ERROR_CNAME_COLLISION,
1551     DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT,
1552     DNS_ERROR_RECORD_ALREADY_EXISTS,
1553     DNS_ERROR_SECONDARY_DATA,
1554     DNS_ERROR_NO_CREATE_CACHE_DATA,
1555     DNS_ERROR_NAME_DOES_NOT_EXIST,
1556     DNS_WARNING_PTR_CREATE_FAILED,
1557     DNS_WARNING_DOMAIN_UNDELETED,
1558     DNS_ERROR_DS_UNAVAILABLE,
1559     DNS_ERROR_DS_ZONE_ALREADY_EXISTS,
1560     DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE,                  // =  9719
1561     DNS_INFO_AXFR_COMPLETE                                =  9751,
1562     DNS_ERROR_AXFR,
1563     DNS_INFO_ADDED_LOCAL_WINS,                         // =  9753
1564     DNS_STATUS_CONTINUE_NEEDED                            =  9801,
1565     DNS_ERROR_NO_TCPIP                                    =  9851,
1566     DNS_ERROR_NO_DNS_SERVERS,                          // =  9852
1567     DNS_ERROR_DP_DOES_NOT_EXIST                           =  9901,
1568     DNS_ERROR_DP_ALREADY_EXISTS,
1569     DNS_ERROR_DP_NOT_ENLISTED,
1570     DNS_ERROR_DP_ALREADY_ENLISTED,
1571     DNS_ERROR_DP_NOT_AVAILABLE,                        // =  9905
1572 
1573 /+  already in winsock2.d defined!
1574 
1575     WSABASEERR                                            = 10000,
1576     WSAEINTR                                              = 10004,
1577     WSAEBADF                                              = 10009,
1578     WSAEACCES                                             = 10013,
1579     WSAEFAULT,                                         // = 10014
1580     WSAEINVAL                                             = 10022,
1581     WSAEMFILE                                             = 10024,
1582     WSAEWOULDBLOCK                                        = 10035,
1583     WSAEINPROGRESS,
1584     WSAEALREADY,
1585     WSAENOTSOCK,
1586     WSAEDESTADDRREQ,
1587     WSAEMSGSIZE,
1588     WSAEPROTOTYPE,
1589     WSAENOPROTOOPT,
1590     WSAEPROTONOSUPPORT,
1591     WSAESOCKTNOSUPPORT,
1592     WSAEOPNOTSUPP,
1593     WSAEPFNOSUPPORT,
1594     WSAEAFNOSUPPORT,
1595     WSAEADDRINUSE,
1596     WSAEADDRNOTAVAIL,
1597     WSAENETDOWN,
1598     WSAENETUNREACH,
1599     WSAENETRESET,
1600     WSAECONNABORTED,
1601     WSAECONNRESET,
1602     WSAENOBUFS,
1603     WSAEISCONN,
1604     WSAENOTCONN,
1605     WSAESHUTDOWN,
1606     WSAETOOMANYREFS,
1607     WSAETIMEDOUT,
1608     WSAECONNREFUSED,
1609     WSAELOOP,
1610     WSAENAMETOOLONG,
1611     WSAEHOSTDOWN,
1612     WSAEHOSTUNREACH,
1613     WSAENOTEMPTY,
1614     WSAEPROCLIM,
1615     WSAEUSERS,
1616     WSAEDQUOT,
1617     WSAESTALE,
1618     WSAEREMOTE,                                        // = 10071
1619     WSASYSNOTREADY                                        = 10091,
1620     WSAVERNOTSUPPORTED,
1621     WSANOTINITIALISED,                                 // = 10093
1622     WSAEDISCON                                            = 10101,
1623     WSAENOMORE,
1624     WSAECANCELLED,
1625     WSAEINVALIDPROCTABLE,
1626     WSAEINVALIDPROVIDER,
1627     WSAEPROVIDERFAILEDINIT,
1628     WSASYSCALLFAILURE,
1629     WSASERVICE_NOT_FOUND,
1630     WSATYPE_NOT_FOUND,
1631     WSA_E_NO_MORE,
1632     WSA_E_CANCELLED,
1633     WSAEREFUSED,                                       // = 10112
1634     WSAHOST_NOT_FOUND                                     = 11001,
1635     WSATRY_AGAIN,
1636     WSANO_RECOVERY,
1637     WSANO_DATA,
1638     WSA_QOS_RECEIVERS,
1639     WSA_QOS_SENDERS,
1640     WSA_QOS_NO_SENDERS,
1641     WSA_QOS_NO_RECEIVERS,
1642     WSA_QOS_REQUEST_CONFIRMED,
1643     WSA_QOS_ADMISSION_FAILURE,
1644     WSA_QOS_POLICY_FAILURE,
1645     WSA_QOS_BAD_STYLE,
1646     WSA_QOS_BAD_OBJECT,
1647     WSA_QOS_TRAFFIC_CTRL_ERROR,
1648     WSA_QOS_GENERIC_ERROR,
1649     WSA_QOS_ESERVICETYPE,
1650     WSA_QOS_EFLOWSPEC,
1651     WSA_QOS_EPROVSPECBUF,
1652     WSA_QOS_EFILTERSTYLE,
1653     WSA_QOS_EFILTERTYPE,
1654     WSA_QOS_EFILTERCOUNT,
1655     WSA_QOS_EOBJLENGTH,
1656     WSA_QOS_EFLOWCOUNT,
1657     WSA_QOS_EUNKNOWNPSOBJ,
1658     WSA_QOS_EPOLICYOBJ,
1659     WSA_QOS_EFLOWDESC,
1660     WSA_QOS_EPSFLOWSPEC,
1661     WSA_QOS_EPSFILTERSPEC,
1662     WSA_QOS_ESDMODEOBJ,
1663     WSA_QOS_ESHAPERATEOBJ,
1664     WSA_QOS_RESERVED_PETYPE,                           // = 11031
1665 
1666 +/
1667 
1668     ERROR_IPSEC_QM_POLICY_EXISTS                          = 13000,
1669     ERROR_IPSEC_QM_POLICY_NOT_FOUND,
1670     ERROR_IPSEC_QM_POLICY_IN_USE,
1671     ERROR_IPSEC_MM_POLICY_EXISTS,
1672     ERROR_IPSEC_MM_POLICY_NOT_FOUND,
1673     ERROR_IPSEC_MM_POLICY_IN_USE,
1674     ERROR_IPSEC_MM_FILTER_EXISTS,
1675     ERROR_IPSEC_MM_FILTER_NOT_FOUND,
1676     ERROR_IPSEC_TRANSPORT_FILTER_EXISTS,
1677     ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND,
1678     ERROR_IPSEC_MM_AUTH_EXISTS,
1679     ERROR_IPSEC_MM_AUTH_NOT_FOUND,
1680     ERROR_IPSEC_MM_AUTH_IN_USE,
1681     ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND,
1682     ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND,
1683     ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND,
1684     ERROR_IPSEC_TUNNEL_FILTER_EXISTS,
1685     ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND,
1686     ERROR_IPSEC_MM_FILTER_PENDING_DELETION,
1687     ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION,
1688     ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION,
1689     ERROR_IPSEC_MM_POLICY_PENDING_DELETION,
1690     ERROR_IPSEC_MM_AUTH_PENDING_DELETION,
1691     ERROR_IPSEC_QM_POLICY_PENDING_DELETION,
1692     WARNING_IPSEC_MM_POLICY_PRUNED,
1693     WARNING_IPSEC_QM_POLICY_PRUNED,                    // = 13025
1694     ERROR_IPSEC_IKE_AUTH_FAIL                             = 13801,
1695     ERROR_IPSEC_IKE_ATTRIB_FAIL,
1696     ERROR_IPSEC_IKE_NEGOTIATION_PENDING,
1697     ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR,
1698     ERROR_IPSEC_IKE_TIMED_OUT,
1699     ERROR_IPSEC_IKE_NO_CERT,
1700     ERROR_IPSEC_IKE_SA_DELETED,
1701     ERROR_IPSEC_IKE_SA_REAPED,
1702     ERROR_IPSEC_IKE_MM_ACQUIRE_DROP,
1703     ERROR_IPSEC_IKE_QM_ACQUIRE_DROP,
1704     ERROR_IPSEC_IKE_QUEUE_DROP_MM,
1705     ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM,
1706     ERROR_IPSEC_IKE_DROP_NO_RESPONSE,
1707     ERROR_IPSEC_IKE_MM_DELAY_DROP,
1708     ERROR_IPSEC_IKE_QM_DELAY_DROP,
1709     ERROR_IPSEC_IKE_ERROR,
1710     ERROR_IPSEC_IKE_CRL_FAILED,
1711     ERROR_IPSEC_IKE_INVALID_KEY_USAGE,
1712     ERROR_IPSEC_IKE_INVALID_CERT_TYPE,
1713     ERROR_IPSEC_IKE_NO_PRIVATE_KEY,                    // = 13820
1714     ERROR_IPSEC_IKE_DH_FAIL                               = 13822,
1715     ERROR_IPSEC_IKE_INVALID_HEADER                        = 13824,
1716     ERROR_IPSEC_IKE_NO_POLICY,
1717     ERROR_IPSEC_IKE_INVALID_SIGNATURE,
1718     ERROR_IPSEC_IKE_KERBEROS_ERROR,
1719     ERROR_IPSEC_IKE_NO_PUBLIC_KEY,
1720     ERROR_IPSEC_IKE_PROCESS_ERR,
1721     ERROR_IPSEC_IKE_PROCESS_ERR_SA,
1722     ERROR_IPSEC_IKE_PROCESS_ERR_PROP,
1723     ERROR_IPSEC_IKE_PROCESS_ERR_TRANS,
1724     ERROR_IPSEC_IKE_PROCESS_ERR_KE,
1725     ERROR_IPSEC_IKE_PROCESS_ERR_ID,
1726     ERROR_IPSEC_IKE_PROCESS_ERR_CERT,
1727     ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ,
1728     ERROR_IPSEC_IKE_PROCESS_ERR_HASH,
1729     ERROR_IPSEC_IKE_PROCESS_ERR_SIG,
1730     ERROR_IPSEC_IKE_PROCESS_ERR_NONCE,
1731     ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY,
1732     ERROR_IPSEC_IKE_PROCESS_ERR_DELETE,
1733     ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR,
1734     ERROR_IPSEC_IKE_INVALID_PAYLOAD,
1735     ERROR_IPSEC_IKE_LOAD_SOFT_SA,
1736     ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN,
1737     ERROR_IPSEC_IKE_INVALID_COOKIE,
1738     ERROR_IPSEC_IKE_NO_PEER_CERT,
1739     ERROR_IPSEC_IKE_PEER_CRL_FAILED,
1740     ERROR_IPSEC_IKE_POLICY_CHANGE,
1741     ERROR_IPSEC_IKE_NO_MM_POLICY,
1742     ERROR_IPSEC_IKE_NOTCBPRIV,
1743     ERROR_IPSEC_IKE_SECLOADFAIL,
1744     ERROR_IPSEC_IKE_FAILSSPINIT,
1745     ERROR_IPSEC_IKE_FAILQUERYSSP,
1746     ERROR_IPSEC_IKE_SRVACQFAIL,
1747     ERROR_IPSEC_IKE_SRVQUERYCRED,
1748     ERROR_IPSEC_IKE_GETSPIFAIL,
1749     ERROR_IPSEC_IKE_INVALID_FILTER,
1750     ERROR_IPSEC_IKE_OUT_OF_MEMORY,
1751     ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED,
1752     ERROR_IPSEC_IKE_INVALID_POLICY,
1753     ERROR_IPSEC_IKE_UNKNOWN_DOI,
1754     ERROR_IPSEC_IKE_INVALID_SITUATION,
1755     ERROR_IPSEC_IKE_DH_FAILURE,
1756     ERROR_IPSEC_IKE_INVALID_GROUP,
1757     ERROR_IPSEC_IKE_ENCRYPT,
1758     ERROR_IPSEC_IKE_DECRYPT,
1759     ERROR_IPSEC_IKE_POLICY_MATCH,
1760     ERROR_IPSEC_IKE_UNSUPPORTED_ID,
1761     ERROR_IPSEC_IKE_INVALID_HASH,
1762     ERROR_IPSEC_IKE_INVALID_HASH_ALG,
1763     ERROR_IPSEC_IKE_INVALID_HASH_SIZE,
1764     ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG,
1765     ERROR_IPSEC_IKE_INVALID_AUTH_ALG,
1766     ERROR_IPSEC_IKE_INVALID_SIG,
1767     ERROR_IPSEC_IKE_LOAD_FAILED,
1768     ERROR_IPSEC_IKE_RPC_DELETE,
1769     ERROR_IPSEC_IKE_BENIGN_REINIT,
1770     ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY, // = 13879
1771     ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN                   = 13881,
1772     ERROR_IPSEC_IKE_MM_LIMIT,
1773     ERROR_IPSEC_IKE_NEGOTIATION_DISABLED,
1774     ERROR_IPSEC_IKE_NEG_STATUS_END,
1775     ERROR_SXS_SECTION_NOT_FOUND,
1776     ERROR_SXS_CANT_GEN_ACTCTX,
1777     ERROR_SXS_INVALID_ACTCTXDATA_FORMAT,
1778     ERROR_SXS_ASSEMBLY_NOT_FOUND,
1779     ERROR_SXS_MANIFEST_FORMAT_ERROR,
1780     ERROR_SXS_MANIFEST_PARSE_ERROR,
1781     ERROR_SXS_ACTIVATION_CONTEXT_DISABLED,
1782     ERROR_SXS_KEY_NOT_FOUND,
1783     ERROR_SXS_VERSION_CONFLICT,
1784     ERROR_SXS_WRONG_SECTION_TYPE,
1785     ERROR_SXS_THREAD_QUERIES_DISABLED,
1786     ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET,
1787     ERROR_SXS_UNKNOWN_ENCODING_GROUP,
1788     ERROR_SXS_UNKNOWN_ENCODING,
1789     ERROR_SXS_INVALID_XML_NAMESPACE_URI,
1790     ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED,
1791     ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED,
1792     ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE,
1793     ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE,
1794     ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE,
1795     ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT,
1796     ERROR_SXS_DUPLICATE_DLL_NAME,
1797     ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME,
1798     ERROR_SXS_DUPLICATE_CLSID,
1799     ERROR_SXS_DUPLICATE_IID,
1800     ERROR_SXS_DUPLICATE_TLBID,
1801     ERROR_SXS_DUPLICATE_PROGID,
1802     ERROR_SXS_DUPLICATE_ASSEMBLY_NAME,
1803     ERROR_SXS_FILE_HASH_MISMATCH,
1804     ERROR_SXS_POLICY_PARSE_ERROR,
1805     ERROR_SXS_XML_E_MISSINGQUOTE,
1806     ERROR_SXS_XML_E_COMMENTSYNTAX,
1807     ERROR_SXS_XML_E_BADSTARTNAMECHAR,
1808     ERROR_SXS_XML_E_BADNAMECHAR,
1809     ERROR_SXS_XML_E_BADCHARINSTRING,
1810     ERROR_SXS_XML_E_XMLDECLSYNTAX,
1811     ERROR_SXS_XML_E_BADCHARDATA,
1812     ERROR_SXS_XML_E_MISSINGWHITESPACE,
1813     ERROR_SXS_XML_E_EXPECTINGTAGEND,
1814     ERROR_SXS_XML_E_MISSINGSEMICOLON,
1815     ERROR_SXS_XML_E_UNBALANCEDPAREN,
1816     ERROR_SXS_XML_E_INTERNALERROR,
1817     ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE,
1818     ERROR_SXS_XML_E_INCOMPLETE_ENCODING,
1819     ERROR_SXS_XML_E_MISSING_PAREN,
1820     ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE,
1821     ERROR_SXS_XML_E_MULTIPLE_COLONS,
1822     ERROR_SXS_XML_E_INVALID_DECIMAL,
1823     ERROR_SXS_XML_E_INVALID_HEXIDECIMAL,
1824     ERROR_SXS_XML_E_INVALID_UNICODE,
1825     ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK,
1826     ERROR_SXS_XML_E_UNEXPECTEDENDTAG,
1827     ERROR_SXS_XML_E_UNCLOSEDTAG,
1828     ERROR_SXS_XML_E_DUPLICATEATTRIBUTE,
1829     ERROR_SXS_XML_E_MULTIPLEROOTS,
1830     ERROR_SXS_XML_E_INVALIDATROOTLEVEL,
1831     ERROR_SXS_XML_E_BADXMLDECL,
1832     ERROR_SXS_XML_E_MISSINGROOT,
1833     ERROR_SXS_XML_E_UNEXPECTEDEOF,
1834     ERROR_SXS_XML_E_BADPEREFINSUBSET,
1835     ERROR_SXS_XML_E_UNCLOSEDSTARTTAG,
1836     ERROR_SXS_XML_E_UNCLOSEDENDTAG,
1837     ERROR_SXS_XML_E_UNCLOSEDSTRING,
1838     ERROR_SXS_XML_E_UNCLOSEDCOMMENT,
1839     ERROR_SXS_XML_E_UNCLOSEDDECL,
1840     ERROR_SXS_XML_E_UNCLOSEDCDATA,
1841     ERROR_SXS_XML_E_RESERVEDNAMESPACE,
1842     ERROR_SXS_XML_E_INVALIDENCODING,
1843     ERROR_SXS_XML_E_INVALIDSWITCH,
1844     ERROR_SXS_XML_E_BADXMLCASE,
1845     ERROR_SXS_XML_E_INVALID_STANDALONE,
1846     ERROR_SXS_XML_E_UNEXPECTED_STANDALONE,
1847     ERROR_SXS_XML_E_INVALID_VERSION,
1848     ERROR_SXS_XML_E_MISSINGEQUALS,
1849     ERROR_SXS_PROTECTION_RECOVERY_FAILED,
1850     ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT,
1851     ERROR_SXS_PROTECTION_CATALOG_NOT_VALID,
1852     ERROR_SXS_UNTRANSLATABLE_HRESULT,
1853     ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING,
1854     ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE,
1855     ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME // = 14080
1856 }
1857 
1858 enum : HRESULT {
1859     S_OK                                   = 0x00000000,
1860     S_FALSE                                = 0x00000001,
1861 
1862     NOERROR                                = 0x00000000,
1863 
1864     E_PENDING                              = 0x8000000A,
1865     E_NOTIMPL                              = 0x80004001,
1866     E_NOINTERFACE                          = 0x80004002,
1867     E_POINTER                              = 0x80004003,
1868     E_ABORT                                = 0x80004004,
1869     E_FAIL                                 = 0x80004005,
1870     E_ACCESSDENIED                         = 0x80070005,
1871     E_HANDLE                               = 0x80070006,
1872     E_OUTOFMEMORY                          = 0x8007000E,
1873     E_INVALIDARG                           = 0x80070057,
1874     E_UNEXPECTED                           = 0x8000FFFF,
1875 
1876     CO_E_INIT_TLS                          = 0x80004006,
1877     CO_E_INIT_SHARED_ALLOCATOR             = 0x80004007,
1878     CO_E_INIT_MEMORY_ALLOCATOR             = 0x80004008,
1879     CO_E_INIT_CLASS_CACHE                  = 0x80004009,
1880     CO_E_INIT_RPC_CHANNEL                  = 0x8000400A,
1881     CO_E_INIT_TLS_SET_CHANNEL_CONTROL      = 0x8000400B,
1882     CO_E_INIT_TLS_CHANNEL_CONTROL          = 0x8000400C,
1883     CO_E_INIT_UNACCEPTED_USER_ALLOCATOR    = 0x8000400D,
1884     CO_E_INIT_SCM_MUTEX_EXISTS             = 0x8000400E,
1885     CO_E_INIT_SCM_FILE_MAPPING_EXISTS      = 0x8000400F,
1886     CO_E_INIT_SCM_MAP_VIEW_OF_FILE         = 0x80004010,
1887     CO_E_INIT_SCM_EXEC_FAILURE             = 0x80004011,
1888     CO_E_INIT_ONLY_SINGLE_THREADED         = 0x80004012,
1889 
1890     RPC_E_CALL_REJECTED                    = 0x80010001,
1891     RPC_E_CALL_CANCELED                    = 0x80010002,
1892     RPC_E_CANTPOST_INSENDCALL              = 0x80010003,
1893     RPC_E_CANTCALLOUT_INASYNCCALL          = 0x80010004,
1894     RPC_E_CANTCALLOUT_INEXTERNALCALL       = 0x80010005,
1895     RPC_E_CONNECTION_TERMINATED            = 0x80010006,
1896     RPC_E_SERVER_DIED                      = 0x80010007,
1897     RPC_E_CLIENT_DIED                      = 0x80010008,
1898     RPC_E_INVALID_DATAPACKET               = 0x80010009,
1899     RPC_E_CANTTRANSMIT_CALL                = 0x8001000A,
1900     RPC_E_CLIENT_CANTMARSHAL_DATA          = 0x8001000B,
1901     RPC_E_CLIENT_CANTUNMARSHAL_DATA        = 0x8001000C,
1902     RPC_E_SERVER_CANTMARSHAL_DATA          = 0x8001000D,
1903     RPC_E_SERVER_CANTUNMARSHAL_DATA        = 0x8001000E,
1904     RPC_E_INVALID_DATA                     = 0x8001000F,
1905     RPC_E_INVALID_PARAMETER                = 0x80010010,
1906     RPC_E_CANTCALLOUT_AGAIN                = 0x80010011,
1907     RPC_E_SERVER_DIED_DNE                  = 0x80010012,
1908     RPC_E_SYS_CALL_FAILED                  = 0x80010100,
1909     RPC_E_OUT_OF_RESOURCES                 = 0x80010101,
1910     RPC_E_ATTEMPTED_MULTITHREAD            = 0x80010102,
1911     RPC_E_NOT_REGISTERED                   = 0x80010103,
1912     RPC_E_FAULT                            = 0x80010104,
1913     RPC_E_SERVERFAULT                      = 0x80010105,
1914     RPC_E_CHANGED_MODE                     = 0x80010106,
1915     RPC_E_INVALIDMETHOD                    = 0x80010107,
1916     RPC_E_DISCONNECTED                     = 0x80010108,
1917     RPC_E_RETRY                            = 0x80010109,
1918     RPC_E_SERVERCALL_RETRYLATER            = 0x8001010A,
1919     RPC_E_SERVERCALL_REJECTED              = 0x8001010B,
1920     RPC_E_INVALID_CALLDATA                 = 0x8001010C,
1921     RPC_E_CANTCALLOUT_ININPUTSYNCCALL      = 0x8001010D,
1922     RPC_E_WRONG_THREAD                     = 0x8001010E,
1923     RPC_E_THREAD_NOT_INIT                  = 0x8001010F,
1924     RPC_E_UNEXPECTED                       = 0x8001FFFF,
1925 
1926     DISP_E_UNKNOWNINTERFACE                = 0x80020001,
1927     DISP_E_MEMBERNOTFOUND                  = 0x80020003,
1928     DISP_E_PARAMNOTFOUND                   = 0x80020004,
1929     DISP_E_TYPEMISMATCH                    = 0x80020005,
1930     DISP_E_UNKNOWNNAME                     = 0x80020006,
1931     DISP_E_NONAMEDARGS                     = 0x80020007,
1932     DISP_E_BADVARTYPE                      = 0x80020008,
1933     DISP_E_EXCEPTION                       = 0x80020009,
1934     DISP_E_OVERFLOW                        = 0x8002000A,
1935     DISP_E_BADINDEX                        = 0x8002000B,
1936     DISP_E_UNKNOWNLCID                     = 0x8002000C,
1937     DISP_E_ARRAYISLOCKED                   = 0x8002000D,
1938     DISP_E_BADPARAMCOUNT                   = 0x8002000E,
1939     DISP_E_PARAMNOTOPTIONAL                = 0x8002000F,
1940     DISP_E_BADCALLEE                       = 0x80020010,
1941     DISP_E_NOTACOLLECTION                  = 0x80020011,
1942     DISP_E_DIVBYZERO                       = 0x80020012,
1943 
1944     TYPE_E_BUFFERTOOSMALL                  = 0x80028016,
1945     TYPE_E_INVDATAREAD                     = 0x80028018,
1946     TYPE_E_UNSUPFORMAT                     = 0x80028019,
1947     TYPE_E_REGISTRYACCESS                  = 0x8002801C,
1948     TYPE_E_LIBNOTREGISTERED                = 0x8002801D,
1949     TYPE_E_UNDEFINEDTYPE                   = 0x80028027,
1950     TYPE_E_QUALIFIEDNAMEDISALLOWED         = 0x80028028,
1951     TYPE_E_INVALIDSTATE                    = 0x80028029,
1952     TYPE_E_WRONGTYPEKIND                   = 0x8002802A,
1953     TYPE_E_ELEMENTNOTFOUND                 = 0x8002802B,
1954     TYPE_E_AMBIGUOUSNAME                   = 0x8002802C,
1955     TYPE_E_NAMECONFLICT                    = 0x8002802D,
1956     TYPE_E_UNKNOWNLCID                     = 0x8002802E,
1957     TYPE_E_DLLFUNCTIONNOTFOUND             = 0x8002802F,
1958     TYPE_E_BADMODULEKIND                   = 0x800288BD,
1959     TYPE_E_SIZETOOBIG                      = 0x800288C5,
1960     TYPE_E_DUPLICATEID                     = 0x800288C6,
1961     TYPE_E_INVALIDID                       = 0x800288CF,
1962     TYPE_E_TYPEMISMATCH                    = 0x80028CA0,
1963     TYPE_E_OUTOFBOUNDS                     = 0x80028CA1,
1964     TYPE_E_IOERROR                         = 0x80028CA2,
1965     TYPE_E_CANTCREATETMPFILE               = 0x80028CA3,
1966     TYPE_E_CANTLOADLIBRARY                 = 0x80029C4A,
1967     TYPE_E_INCONSISTENTPROPFUNCS           = 0x80029C83,
1968     TYPE_E_CIRCULARTYPE                    = 0x80029C84,
1969 
1970     STG_E_INVALIDFUNCTION                  = 0x80030001,
1971     STG_E_FILENOTFOUND                     = 0x80030002,
1972     STG_E_PATHNOTFOUND                     = 0x80030003,
1973     STG_E_TOOMANYOPENFILES                 = 0x80030004,
1974     STG_E_ACCESSDENIED                     = 0x80030005,
1975     STG_E_INVALIDHANDLE                    = 0x80030006,
1976     STG_E_INSUFFICIENTMEMORY               = 0x80030008,
1977     STG_E_INVALIDPOINTER                   = 0x80030009,
1978     STG_E_NOMOREFILES                      = 0x80030012,
1979     STG_E_DISKISWRITEPROTECTED             = 0x80030013,
1980     STG_E_SEEKERROR                        = 0x80030019,
1981     STG_E_WRITEFAULT                       = 0x8003001D,
1982     STG_E_READFAULT                        = 0x8003001E,
1983     STG_E_SHAREVIOLATION                   = 0x80030020,
1984     STG_E_LOCKVIOLATION                    = 0x80030021,
1985     STG_E_FILEALREADYEXISTS                = 0x80030050,
1986     STG_E_INVALIDPARAMETER                 = 0x80030057,
1987     STG_E_MEDIUMFULL                       = 0x80030070,
1988     STG_E_ABNORMALAPIEXIT                  = 0x800300FA,
1989     STG_E_INVALIDHEADER                    = 0x800300FB,
1990     STG_E_INVALIDNAME                      = 0x800300FC,
1991     STG_E_UNKNOWN                          = 0x800300FD,
1992     STG_E_UNIMPLEMENTEDFUNCTION            = 0x800300FE,
1993     STG_E_INVALIDFLAG                      = 0x800300FF,
1994     STG_E_INUSE                            = 0x80030100,
1995     STG_E_NOTCURRENT                       = 0x80030101,
1996     STG_E_REVERTED                         = 0x80030102,
1997     STG_E_CANTSAVE                         = 0x80030103,
1998     STG_E_OLDFORMAT                        = 0x80030104,
1999     STG_E_OLDDLL                           = 0x80030105,
2000     STG_E_SHAREREQUIRED                    = 0x80030106,
2001     STG_E_NOTFILEBASEDSTORAGE              = 0x80030107,
2002     STG_E_EXTANTMARSHALLINGS               = 0x80030108,
2003     STG_S_CONVERTED                        = 0x00030200,
2004 
2005     OLE_E_FIRST                            = 0x80040000,
2006     OLE_S_FIRST                            = 0x00040000,
2007     OLE_E_OLEVERB                          = 0x80040000,
2008     OLE_S_USEREG                           = 0x00040000,
2009     OLE_E_ADVF                             = 0x80040001,
2010     OLE_S_STATIC                           = 0x00040001,
2011     OLE_E_ENUM_NOMORE                      = 0x80040002,
2012     OLE_S_MAC_CLIPFORMAT                   = 0x00040002,
2013     OLE_E_ADVISENOTSUPPORTED               = 0x80040003,
2014     OLE_E_NOCONNECTION                     = 0x80040004,
2015     OLE_E_NOTRUNNING                       = 0x80040005,
2016     OLE_E_NOCACHE                          = 0x80040006,
2017     OLE_E_BLANK                            = 0x80040007,
2018     OLE_E_CLASSDIFF                        = 0x80040008,
2019     OLE_E_CANT_GETMONIKER                  = 0x80040009,
2020     OLE_E_CANT_BINDTOSOURCE                = 0x8004000A,
2021     OLE_E_STATIC                           = 0x8004000B,
2022     OLE_E_PROMPTSAVECANCELLED              = 0x8004000C,
2023     OLE_E_INVALIDRECT                      = 0x8004000D,
2024     OLE_E_WRONGCOMPOBJ                     = 0x8004000E,
2025     OLE_E_INVALIDHWND                      = 0x8004000F,
2026     OLE_E_NOT_INPLACEACTIVE                = 0x80040010,
2027     OLE_E_CANTCONVERT                      = 0x80040011,
2028     OLE_E_NOSTORAGE                        = 0x80040012,
2029 
2030     DV_E_FORMATETC                         = 0x80040064,
2031     DV_E_DVTARGETDEVICE                    = 0x80040065,
2032     DV_E_STGMEDIUM                         = 0x80040066,
2033     DV_E_STATDATA                          = 0x80040067,
2034     DV_E_LINDEX                            = 0x80040068,
2035     DV_E_TYMED                             = 0x80040069,
2036     DV_E_CLIPFORMAT                        = 0x8004006A,
2037     DV_E_DVASPECT                          = 0x8004006B,
2038     DV_E_DVTARGETDEVICE_SIZE               = 0x8004006C,
2039     DV_E_NOIVIEWOBJECT                     = 0x8004006D,
2040 
2041     OLE_E_LAST                             = 0x800400FF,
2042     OLE_S_LAST                             = 0x000400FF,
2043     DRAGDROP_E_FIRST                       = 0x80040100,
2044     DRAGDROP_S_FIRST                       = 0x00040100,
2045     DRAGDROP_E_NOTREGISTERED               = 0x80040100,
2046     DRAGDROP_S_DROP                        = 0x00040100,
2047     DRAGDROP_E_ALREADYREGISTERED           = 0x80040101,
2048     DRAGDROP_S_CANCEL                      = 0x00040101,
2049     DRAGDROP_E_INVALIDHWND                 = 0x80040102,
2050     DRAGDROP_S_USEDEFAULTCURSORS           = 0x00040102,
2051     DRAGDROP_E_LAST                        = 0x8004010F,
2052     DRAGDROP_S_LAST                        = 0x0004010F,
2053     CLASSFACTORY_E_FIRST                   = 0x80040110,
2054     CLASSFACTORY_S_FIRST                   = 0x00040110,
2055     CLASS_E_NOAGGREGATION                  = 0x80040110,
2056     CLASS_E_CLASSNOTAVAILABLE              = 0x80040111,
2057     CLASSFACTORY_E_LAST                    = 0x8004011F,
2058     CLASSFACTORY_S_LAST                    = 0x0004011F,
2059     MARSHAL_E_FIRST                        = 0x80040120,
2060     MARSHAL_S_FIRST                        = 0x00040120,
2061     MARSHAL_E_LAST                         = 0x8004012F,
2062     MARSHAL_S_LAST                         = 0x0004012F,
2063     DATA_E_FIRST                           = 0x80040130,
2064     DATA_S_FIRST                           = 0x00040130,
2065     DATA_S_SAMEFORMATETC                   = 0x00040130,
2066     DATA_E_LAST                            = 0x8004013F,
2067     DATA_S_LAST                            = 0x0004013F,
2068     VIEW_E_FIRST                           = 0x80040140,
2069     VIEW_S_FIRST                           = 0x00040140,
2070     VIEW_E_DRAW                            = 0x80040140,
2071     VIEW_S_ALREADY_FROZEN                  = 0x00040140,
2072     VIEW_E_LAST                            = 0x8004014F,
2073     VIEW_S_LAST                            = 0x0004014F,
2074     REGDB_E_FIRST                          = 0x80040150,
2075     REGDB_S_FIRST                          = 0x00040150,
2076     REGDB_E_READREGDB                      = 0x80040150,
2077     REGDB_E_WRITEREGDB                     = 0x80040151,
2078     REGDB_E_KEYMISSING                     = 0x80040152,
2079     REGDB_E_INVALIDVALUE                   = 0x80040153,
2080     REGDB_E_CLASSNOTREG                    = 0x80040154,
2081     REGDB_E_IIDNOTREG                      = 0x80040155,
2082     REGDB_E_LAST                           = 0x8004015F,
2083     REGDB_S_LAST                           = 0x0004015F,
2084     CACHE_E_FIRST                          = 0x80040170,
2085     CACHE_S_FIRST                          = 0x00040170,
2086     CACHE_E_NOCACHE_UPDATED                = 0x80040170,
2087     CACHE_S_FORMATETC_NOTSUPPORTED         = 0x00040170,
2088     CACHE_S_SAMECACHE                      = 0x00040171,
2089     CACHE_S_SOMECACHES_NOTUPDATED          = 0x00040172,
2090     CACHE_E_LAST                           = 0x8004017F,
2091     CACHE_S_LAST                           = 0x0004017F,
2092     OLEOBJ_E_FIRST                         = 0x80040180,
2093     OLEOBJ_S_FIRST                         = 0x00040180,
2094     OLEOBJ_E_NOVERBS                       = 0x80040180,
2095     OLEOBJ_S_INVALIDVERB                   = 0x00040180,
2096     OLEOBJ_E_INVALIDVERB                   = 0x80040181,
2097     OLEOBJ_S_CANNOT_DOVERB_NOW             = 0x00040181,
2098     OLEOBJ_S_INVALIDHWND                   = 0x00040182,
2099     OLEOBJ_E_LAST                          = 0x8004018F,
2100     OLEOBJ_S_LAST                          = 0x0004018F,
2101     CLIENTSITE_E_FIRST                     = 0x80040190,
2102     CLIENTSITE_S_FIRST                     = 0x00040190,
2103     CLIENTSITE_E_LAST                      = 0x8004019F,
2104     CLIENTSITE_S_LAST                      = 0x0004019F,
2105     INPLACE_E_NOTUNDOABLE                  = 0x800401A0,
2106     INPLACE_E_FIRST                        = 0x800401A0,
2107     INPLACE_S_FIRST                        = 0x000401A0,
2108     INPLACE_S_TRUNCATED                    = 0x000401A0,
2109     INPLACE_E_NOTOOLSPACE                  = 0x800401A1,
2110     INPLACE_E_LAST                         = 0x800401AF,
2111     INPLACE_S_LAST                         = 0x000401AF,
2112     ENUM_E_FIRST                           = 0x800401B0,
2113     ENUM_S_FIRST                           = 0x000401B0,
2114     ENUM_E_LAST                            = 0x800401BF,
2115     ENUM_S_LAST                            = 0x000401BF,
2116     CONVERT10_E_FIRST                      = 0x800401C0,
2117     CONVERT10_S_FIRST                      = 0x000401C0,
2118     CONVERT10_E_OLESTREAM_GET              = 0x800401C0,
2119     CONVERT10_S_NO_PRESENTATION            = 0x000401C0,
2120     CONVERT10_E_OLESTREAM_PUT              = 0x800401C1,
2121     CONVERT10_E_OLESTREAM_FMT              = 0x800401C2,
2122     CONVERT10_E_OLESTREAM_BITMAP_TO_DIB    = 0x800401C3,
2123     CONVERT10_E_STG_FMT                    = 0x800401C4,
2124     CONVERT10_E_STG_NO_STD_STREAM          = 0x800401C5,
2125     CONVERT10_E_STG_DIB_TO_BITMAP          = 0x800401C6,
2126     CONVERT10_E_LAST                       = 0x800401CF,
2127     CONVERT10_S_LAST                       = 0x000401CF,
2128     CLIPBRD_E_FIRST                        = 0x800401D0,
2129     CLIPBRD_S_FIRST                        = 0x000401D0,
2130     CLIPBRD_E_CANT_OPEN                    = 0x800401D0,
2131     CLIPBRD_E_CANT_EMPTY                   = 0x800401D1,
2132     CLIPBRD_E_CANT_SET                     = 0x800401D2,
2133     CLIPBRD_E_BAD_DATA                     = 0x800401D3,
2134     CLIPBRD_E_CANT_CLOSE                   = 0x800401D4,
2135     CLIPBRD_E_LAST                         = 0x800401DF,
2136     CLIPBRD_S_LAST                         = 0x000401DF,
2137     MK_E_FIRST                             = 0x800401E0,
2138     MK_S_FIRST                             = 0x000401E0,
2139     MK_E_CONNECTMANUALLY                   = 0x800401E0,
2140     MK_E_EXCEEDEDDEADLINE                  = 0x800401E1,
2141     MK_E_NEEDGENERIC                       = 0x800401E2,
2142     MK_S_REDUCED_TO_SELF                   = 0x000401E2,
2143     MK_E_UNAVAILABLE                       = 0x800401E3,
2144     MK_E_SYNTAX                            = 0x800401E4,
2145     MK_S_ME                                = 0x000401E4,
2146     MK_E_NOOBJECT                          = 0x800401E5,
2147     MK_S_HIM                               = 0x000401E5,
2148     MK_E_INVALIDEXTENSION                  = 0x800401E6,
2149     MK_S_US                                = 0x000401E6,
2150     MK_E_INTERMEDIATEINTERFACENOTSUPPORTED = 0x800401E7,
2151     MK_S_MONIKERALREADYREGISTERED          = 0x000401E7,
2152     MK_E_NOTBINDABLE                       = 0x800401E8,
2153     MK_E_NOTBOUND                          = 0x800401E9,
2154     MK_E_CANTOPENFILE                      = 0x800401EA,
2155     MK_E_MUSTBOTHERUSER                    = 0x800401EB,
2156     MK_E_NOINVERSE                         = 0x800401EC,
2157     MK_E_NOSTORAGE                         = 0x800401ED,
2158     MK_E_NOPREFIX                          = 0x800401EE,
2159     MK_E_LAST                              = 0x800401EF,
2160     MK_S_LAST                              = 0x000401EF,
2161     MK_E_ENUMERATION_FAILED                = 0x800401EF,
2162     CO_E_FIRST                             = 0x800401F0,
2163     CO_S_FIRST                             = 0x000401F0,
2164     CO_E_NOTINITIALIZED                    = 0x800401F0,
2165     CO_E_ALREADYINITIALIZED                = 0x800401F1,
2166     CO_E_CANTDETERMINECLASS                = 0x800401F2,
2167     CO_E_CLASSSTRING                       = 0x800401F3,
2168     CO_E_IIDSTRING                         = 0x800401F4,
2169     CO_E_APPNOTFOUND                       = 0x800401F5,
2170     CO_E_APPSINGLEUSE                      = 0x800401F6,
2171     CO_E_ERRORINAPP                        = 0x800401F7,
2172     CO_E_DLLNOTFOUND                       = 0x800401F8,
2173     CO_E_ERRORINDLL                        = 0x800401F9,
2174     CO_E_WRONGOSFORAPP                     = 0x800401FA,
2175     CO_E_OBJNOTREG                         = 0x800401FB,
2176     CO_E_OBJISREG                          = 0x800401FC,
2177     CO_E_OBJNOTCONNECTED                   = 0x800401FD,
2178     CO_E_APPDIDNTREG                       = 0x800401FE,
2179     CO_E_LAST                              = 0x800401FF,
2180     CO_S_LAST                              = 0x000401FF,
2181     CO_E_RELEASED                          = 0x800401FF,
2182 
2183     CO_E_CLASS_CREATE_FAILED               = 0x80080001,
2184     CO_E_SCM_ERROR                         = 0x80080002,
2185     CO_E_SCM_RPC_FAILURE                   = 0x80080003,
2186     CO_E_BAD_PATH                          = 0x80080004,
2187     CO_E_SERVER_EXEC_FAILURE               = 0x80080005,
2188     CO_E_OBJSRV_RPC_FAILURE                = 0x80080006,
2189     MK_E_NO_NORMALIZED                     = 0x80080007,
2190     CO_E_SERVER_STOPPING                   = 0x80080008,
2191     MEM_E_INVALID_ROOT                     = 0x80080009,
2192     MEM_E_INVALID_LINK                     = 0x80080010,
2193     MEM_E_INVALID_SIZE                     = 0x80080011,
2194     CO_S_NOTALLINTERFACES                  = 0x00080012,
2195 
2196     NTE_BAD_UID                            = 0x80090001,
2197     NTE_BAD_HASH                           = 0x80090002,
2198     NTE_BAD_KEY                            = 0x80090003,
2199     NTE_BAD_LEN                            = 0x80090004,
2200     NTE_BAD_DATA                           = 0x80090005,
2201     NTE_BAD_SIGNATURE                      = 0x80090006,
2202     NTE_BAD_VER                            = 0x80090007,
2203     NTE_BAD_ALGID                          = 0x80090008,
2204     NTE_BAD_FLAGS                          = 0x80090009,
2205     NTE_BAD_TYPE                           = 0x8009000A,
2206     NTE_BAD_KEY_STATE                      = 0x8009000B,
2207     NTE_BAD_HASH_STATE                     = 0x8009000C,
2208     NTE_NO_KEY                             = 0x8009000D,
2209     NTE_NO_MEMORY                          = 0x8009000E,
2210     NTE_EXISTS                             = 0x8009000F,
2211     NTE_PERM                               = 0x80090010,
2212     NTE_NOT_FOUND                          = 0x80090011,
2213     NTE_DOUBLE_ENCRYPT                     = 0x80090012,
2214     NTE_BAD_PROVIDER                       = 0x80090013,
2215     NTE_BAD_PROV_TYPE                      = 0x80090014,
2216     NTE_BAD_PUBLIC_KEY                     = 0x80090015,
2217     NTE_BAD_KEYSET                         = 0x80090016,
2218     NTE_PROV_TYPE_NOT_DEF                  = 0x80090017,
2219     NTE_PROV_TYPE_ENTRY_BAD                = 0x80090018,
2220     NTE_KEYSET_NOT_DEF                     = 0x80090019,
2221     NTE_KEYSET_ENTRY_BAD                   = 0x8009001A,
2222     NTE_PROV_TYPE_NO_MATCH                 = 0x8009001B,
2223     NTE_SIGNATURE_FILE_BAD                 = 0x8009001C,
2224     NTE_PROVIDER_DLL_FAIL                  = 0x8009001D,
2225     NTE_PROV_DLL_NOT_FOUND                 = 0x8009001E,
2226     NTE_BAD_KEYSET_PARAM                   = 0x8009001F,
2227     NTE_FAIL                               = 0x80090020,
2228     NTE_SYS_ERR                            = 0x80090021
2229 }
2230 
2231 
2232 enum : uint {
2233     SEVERITY_SUCCESS = 0,
2234     SEVERITY_ERROR   = 1
2235 }
2236 
2237 enum : uint {
2238     FACILITY_NULL     =   0,
2239     FACILITY_RPC,
2240     FACILITY_DISPATCH,
2241     FACILITY_STORAGE,
2242     FACILITY_ITF,  // =   4
2243     FACILITY_WIN32    =   7,
2244     FACILITY_WINDOWS  =   8,
2245     FACILITY_CONTROL  =  10,
2246     FACILITY_NT_BIT   = 0x10000000
2247 }
2248 
2249 // C Macros
2250 
2251 pure nothrow @nogc {
2252     bool SUCCEEDED()(HRESULT Status) {
2253         return Status >= 0;
2254     }
2255 
2256     bool FAILED()(HRESULT Status) {
2257         return Status < 0;
2258     }
2259 
2260     bool IS_ERROR()(HRESULT Status) {
2261         return (Status >>> 31) == SEVERITY_ERROR;
2262     }
2263 
2264     ushort HRESULT_CODE()(HRESULT r) {
2265         return cast(ushort) (r & 0xFFFF);
2266     }
2267 
2268     ushort SCODE_CODE()(SCODE r) {
2269         return cast(ushort) (r & 0xFFFF);
2270     }
2271 
2272     ushort HRESULT_FACILITY()(HRESULT r) {
2273         return cast(ushort) ((r>>16) & 0x1fff);
2274     }
2275 
2276     ushort SCODE_FACILITY()(SCODE r) {
2277         return cast(ushort) ((r>>16) & 0x1fff);
2278     }
2279 
2280     ushort HRESULT_SEVERITY()(HRESULT r) {
2281         return cast(ushort) ((r>>31) & 0x1);
2282     }
2283 
2284     ushort SCODE_SEVERITY()(SCODE r) {
2285         return cast(ushort) ((r>>31) & 0x1);
2286     }
2287 
2288     HRESULT MAKE_HRESULT()(bool s, uint f, uint c) {
2289         return (s << 31) | (f << 16) | c;
2290     }
2291 
2292     SCODE MAKE_SCODE()(bool s, uint f, uint c) {
2293         return (s << 31) | (f << 16) | c;
2294     }
2295 
2296     SCODE GetScode()(HRESULT hr) {
2297         return hr;
2298     }
2299 
2300     HRESULT ResultFromScode()(SCODE c) {
2301         return c;
2302     }
2303 
2304     HRESULT HRESULT_FROM_NT()(HRESULT x) {
2305         return x | FACILITY_NT_BIT;
2306     }
2307 
2308     HRESULT HRESULT_FROM_WIN32()(HRESULT x) {
2309         return  x ? (x & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000 : 0;
2310     }
2311 
2312     HRESULT PropagateResult()(HRESULT hrPrevious, SCODE scBase) {
2313         return scBase;
2314     }
2315 }