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