werror: use autogenerated error codes.
[sfrench/samba-autobuild/.git] / libcli / util / werror.h
index d4c6805160fe2771b107b252e3d6272d50c6d521..1fc2afbd15f28df097b566fc94426dbb17cec901 100644 (file)
@@ -82,100 +82,7 @@ typedef uint32_t WERROR;
 /* these are win32 error codes. There are only a few places where
    these matter for Samba, primarily in the NT printing code */
 #define WERR_OK W_ERROR(0x00000000)
-#define WERR_ACCESS_DENIED W_ERROR(0x00000005)
-#define WERR_NOT_SUPPORTED W_ERROR(0x00000032)
-#define WERR_DUP_NAME W_ERROR(0x00000034)
-#define WERR_BAD_NETPATH W_ERROR(0x00000035)
-#define WERR_BAD_NET_RESP W_ERROR(0x0000003A)
-#define WERR_UNEXP_NET_ERR W_ERROR(0x0000003B)
-#define WERR_PRINTQ_FULL W_ERROR(0x0000003D)
-#define WERR_NO_SPOOL_SPACE W_ERROR(0x0000003E)
-#define WERR_FILE_EXISTS W_ERROR(0x00000050)
-#define WERR_CALL_NOT_IMPLEMENTED W_ERROR(0x00000078)
-#define WERR_SEM_TIMEOUT W_ERROR(0x00000079)
-#define WERR_INSUFFICIENT_BUFFER W_ERROR(0x0000007A)
-#define WERR_INVALID_NAME W_ERROR(0x0000007B)
-#define WERR_ALREADY_EXISTS W_ERROR(0x000000B7)
-#define WERR_MORE_DATA W_ERROR(0x000000EA)
-#define WERR_NO_MORE_ITEMS W_ERROR(0x00000103)
 #define WERR_STATUS_MORE_ENTRIES W_ERROR(0x00000105)
-#define WERR_IO_PENDING W_ERROR(0x000003E5)
-#define WERR_CAN_NOT_COMPLETE W_ERROR(0x000003EB)
-#define WERR_INVALID_FLAGS W_ERROR(0x000003EC)
-#define WERR_INVALID_SERVICE_CONTROL W_ERROR(0x0000041C)
-#define WERR_SERVICE_ALREADY_RUNNING W_ERROR(0x00000420)
-#define WERR_SERVICE_DISABLED W_ERROR(0x00000422)
-#define WERR_SERVICE_MARKED_FOR_DELETE W_ERROR(0x00000430)
-#define WERR_SERVICE_EXISTS W_ERROR(0x00000431)
-#define WERR_SERVICE_NEVER_STARTED W_ERROR(0x00000435)
-#define WERR_DUPLICATE_SERVICE_NAME W_ERROR(0x00000436)
-#define WERR_DEVICE_NOT_CONNECTED W_ERROR(0x0000048F)
-#define WERR_NOT_FOUND W_ERROR(0x00000490)
-#define WERR_INVALID_COMPUTERNAME W_ERROR(0x000004BA)
-#define WERR_INVALID_DOMAINNAME W_ERROR(0x000004BC)
-#define WERR_NOT_AUTHENTICATED W_ERROR(0x000004DC)
-#define WERR_MACHINE_LOCKED W_ERROR(0x000004F7)
-#define WERR_UNKNOWN_REVISION W_ERROR(0x00000519)
-#define WERR_REVISION_MISMATCH W_ERROR(0x0000051A)
-#define WERR_INVALID_OWNER W_ERROR(0x0000051B)
-#define WERR_INVALID_PRIMARY_GROUP W_ERROR(0x0000051C)
-#define WERR_NO_LOGON_SERVERS W_ERROR(0x0000051F)
-#define WERR_NO_SUCH_LOGON_SESSION W_ERROR(0x00000520)
-#define WERR_NO_SUCH_PRIVILEGE W_ERROR(0x00000521)
-#define WERR_PRIVILEGE_NOT_HELD W_ERROR(0x00000522)
-#define WERR_NO_SUCH_USER W_ERROR(0x00000525)
-#define WERR_GROUP_EXISTS W_ERROR(0x00000526)
-#define WERR_NO_SUCH_GROUP W_ERROR(0x00000527)
-#define WERR_MEMBER_IN_GROUP W_ERROR(0x00000528)
-#define WERR_WRONG_PASSWORD W_ERROR(0x0000052B)
-#define WERR_PASSWORD_RESTRICTION W_ERROR(0x0000052D)
-#define WERR_LOGON_FAILURE W_ERROR(0x0000052E)
-#define WERR_NONE_MAPPED W_ERROR(0x00000534)
-#define WERR_INVALID_DOMAIN_STATE W_ERROR(0x00000549)
-#define WERR_INVALID_DOMAIN_ROLE W_ERROR(0x0000054A)
-#define WERR_NO_SUCH_DOMAIN W_ERROR(0x0000054B)
-#define WERR_SPECIAL_ACCOUNT W_ERROR(0x0000055B)
-#define WERR_NO_SUCH_ALIAS W_ERROR(0x00000560)
-#define WERR_MEMBER_IN_ALIAS W_ERROR(0x00000562)
-#define WERR_ALIAS_EXISTS W_ERROR(0x00000563)
-#define WERR_TIME_SKEW W_ERROR(0x00000576)
-#define WERR_NO_SYSTEM_RESOURCES W_ERROR(0x000005AA)
-#define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(0x000005DC)
-#define WERR_INVALID_USER_BUFFER W_ERROR(0x000006F8)
-#define WERR_NO_TRUST_SAM_ACCOUNT W_ERROR(0x000006FB)
-#define WERR_INVALID_FORM_NAME W_ERROR(0x0000076E)
-#define WERR_INVALID_FORM_SIZE W_ERROR(0x0000076F)
-#define WERR_PASSWORD_MUST_CHANGE W_ERROR(0x00000773)
-#define WERR_DOMAIN_CONTROLLER_NOT_FOUND W_ERROR(0x00000774)
-#define WERR_ACCOUNT_LOCKED_OUT W_ERROR(0x00000775)
-
-
-#define WERR_DEVICE_NOT_AVAILABLE W_ERROR(0x000010DF)
-
-#define WERR_PRINTER_DRIVER_ALREADY_INSTALLED  W_ERROR(0x00000703)
-#define WERR_UNKNOWN_PORT                      W_ERROR(0x00000704)
-#define WERR_UNKNOWN_PRINTER_DRIVER            W_ERROR(0x00000705)
-#define WERR_UNKNOWN_PRINTPROCESSOR            W_ERROR(0x00000706)
-#define WERR_INVALID_SEPARATOR_FILE            W_ERROR(0x00000707)
-#define WERR_INVALID_PRIORITY                  W_ERROR(0x00000708)
-#define WERR_INVALID_PRINTER_NAME              W_ERROR(0x00000709)
-#define WERR_PRINTER_ALREADY_EXISTS            W_ERROR(0x0000070A)
-#define WERR_INVALID_PRINTER_COMMAND           W_ERROR(0x0000070B)
-#define WERR_INVALID_DATATYPE                  W_ERROR(0x0000070C)
-#define WERR_INVALID_ENVIRONMENT               W_ERROR(0x0000070D)
-
-#define WERR_UNKNOWN_PRINT_MONITOR             W_ERROR(0x00000BB8)
-#define WERR_PRINTER_DRIVER_IN_USE             W_ERROR(0x00000BB9)
-#define WERR_SPOOL_FILE_NOT_FOUND              W_ERROR(0x00000BBA)
-#define WERR_SPL_NO_STARTDOC                   W_ERROR(0x00000BBB)
-#define WERR_SPL_NO_ADDJOB                     W_ERROR(0x00000BBC)
-#define WERR_PRINT_PROCESSOR_ALREADY_INSTALLED W_ERROR(0x00000BBD)
-#define WERR_PRINT_MONITOR_ALREADY_INSTALLED   W_ERROR(0x00000BBE)
-#define WERR_INVALID_PRINT_MONITOR             W_ERROR(0x00000BBF)
-#define WERR_PRINT_MONITOR_IN_USE              W_ERROR(0x00000BC0)
-#define WERR_PRINTER_HAS_JOBS_QUEUED           W_ERROR(0x00000BC1)
-
-#define WERR_NO_SHUTDOWN_IN_PROGRESS W_ERROR(0x0000045c)
 
 /* Configuration Manager Errors */
 /* Basically Win32 errors meanings are specific to the \ntsvcs pipe */
@@ -194,9 +101,6 @@ typedef uint32_t WERROR;
 #define MAX_NERR (NERR_BASE+899)
 #endif
 
-
-/* FRS errors */
-
 /* RPC/COM/OLE HRESULT error codes */
 /* RPC errors */
 #define WERR_RPC_E_INVALID_HEADER      W_ERROR(0x80010111)
@@ -213,8 +117,6 @@ typedef uint32_t WERROR;
 /* Generic error code aliases */
 #define WERR_FOOBAR WERR_GEN_FAILURE
 
-/* TODO: remove WERR_UNKNOWN_LEVEL in all callers */
-
 /*****************************************************************************
  Auto-generated Win32 error from:
  http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx
@@ -225,6 +127,7 @@ typedef uint32_t WERROR;
 #define WERR_FILE_NOT_FOUND    W_ERROR(0x00000002)
 #define WERR_PATH_NOT_FOUND    W_ERROR(0x00000003)
 #define WERR_TOO_MANY_OPEN_FILES       W_ERROR(0x00000004)
+#define WERR_ACCESS_DENIED     W_ERROR(0x00000005)
 #define WERR_INVALID_HANDLE    W_ERROR(0x00000006)
 #define WERR_ARENA_TRASHED     W_ERROR(0x00000007)
 #define WERR_NOT_ENOUGH_MEMORY W_ERROR(0x00000008)
@@ -257,12 +160,19 @@ typedef uint32_t WERROR;
 #define WERR_SHARING_BUFFER_EXCEEDED   W_ERROR(0x00000024)
 #define WERR_HANDLE_EOF        W_ERROR(0x00000026)
 #define WERR_HANDLE_DISK_FULL  W_ERROR(0x00000027)
+#define WERR_NOT_SUPPORTED     W_ERROR(0x00000032)
 #define WERR_REM_NOT_LIST      W_ERROR(0x00000033)
+#define WERR_DUP_NAME  W_ERROR(0x00000034)
+#define WERR_BAD_NETPATH       W_ERROR(0x00000035)
 #define WERR_NETWORK_BUSY      W_ERROR(0x00000036)
 #define WERR_DEV_NOT_EXIST     W_ERROR(0x00000037)
 #define WERR_TOO_MANY_CMDS     W_ERROR(0x00000038)
 #define WERR_ADAP_HDW_ERR      W_ERROR(0x00000039)
+#define WERR_BAD_NET_RESP      W_ERROR(0x0000003A)
+#define WERR_UNEXP_NET_ERR     W_ERROR(0x0000003B)
 #define WERR_BAD_REM_ADAP      W_ERROR(0x0000003C)
+#define WERR_PRINTQ_FULL       W_ERROR(0x0000003D)
+#define WERR_NO_SPOOL_SPACE    W_ERROR(0x0000003E)
 #define WERR_PRINT_CANCELLED   W_ERROR(0x0000003F)
 #define WERR_NETNAME_DELETED   W_ERROR(0x00000040)
 #define WERR_NETWORK_ACCESS_DENIED     W_ERROR(0x00000041)
@@ -273,6 +183,7 @@ typedef uint32_t WERROR;
 #define WERR_SHARING_PAUSED    W_ERROR(0x00000046)
 #define WERR_REQ_NOT_ACCEP     W_ERROR(0x00000047)
 #define WERR_REDIR_PAUSED      W_ERROR(0x00000048)
+#define WERR_FILE_EXISTS       W_ERROR(0x00000050)
 #define WERR_CANNOT_MAKE       W_ERROR(0x00000052)
 #define WERR_FAIL_I24  W_ERROR(0x00000053)
 #define WERR_OUT_OF_STRUCTURES W_ERROR(0x00000054)
@@ -299,6 +210,10 @@ typedef uint32_t WERROR;
 #define WERR_INVALID_CATEGORY  W_ERROR(0x00000075)
 #define WERR_INVALID_VERIFY_SWITCH     W_ERROR(0x00000076)
 #define WERR_BAD_DRIVER_LEVEL  W_ERROR(0x00000077)
+#define WERR_CALL_NOT_IMPLEMENTED      W_ERROR(0x00000078)
+#define WERR_SEM_TIMEOUT       W_ERROR(0x00000079)
+#define WERR_INSUFFICIENT_BUFFER       W_ERROR(0x0000007A)
+#define WERR_INVALID_NAME      W_ERROR(0x0000007B)
 #define WERR_INVALID_LEVEL     W_ERROR(0x0000007C)
 #define WERR_NO_VOLUME_LABEL   W_ERROR(0x0000007D)
 #define WERR_MOD_NOT_FOUND     W_ERROR(0x0000007E)
@@ -339,6 +254,7 @@ typedef uint32_t WERROR;
 #define WERR_ATOMIC_LOCKS_NOT_SUPPORTED        W_ERROR(0x000000AE)
 #define WERR_INVALID_SEGMENT_NUMBER    W_ERROR(0x000000B4)
 #define WERR_INVALID_ORDINAL   W_ERROR(0x000000B6)
+#define WERR_ALREADY_EXISTS    W_ERROR(0x000000B7)
 #define WERR_INVALID_FLAG_NUMBER       W_ERROR(0x000000BA)
 #define WERR_SEM_NOT_FOUND     W_ERROR(0x000000BB)
 #define WERR_INVALID_STARTING_CODESEG  W_ERROR(0x000000BC)
@@ -381,10 +297,12 @@ typedef uint32_t WERROR;
 #define WERR_PIPE_BUSY W_ERROR(0x000000E7)
 #define WERR_NO_DATA   W_ERROR(0x000000E8)
 #define WERR_PIPE_NOT_CONNECTED        W_ERROR(0x000000E9)
+#define WERR_MORE_DATA W_ERROR(0x000000EA)
 #define WERR_VC_DISCONNECTED   W_ERROR(0x000000F0)
 #define WERR_INVALID_EA_NAME   W_ERROR(0x000000FE)
 #define WERR_EA_LIST_INCONSISTENT      W_ERROR(0x000000FF)
 #define WERR_WAIT_TIMEOUT      W_ERROR(0x00000102)
+#define WERR_NO_MORE_ITEMS     W_ERROR(0x00000103)
 #define WERR_CANNOT_COPY       W_ERROR(0x0000010A)
 #define WERR_DIRECTORY W_ERROR(0x0000010B)
 #define WERR_EAS_DIDNT_FIT     W_ERROR(0x00000113)
@@ -659,10 +577,13 @@ typedef uint32_t WERROR;
 #define WERR_EA_ACCESS_DENIED  W_ERROR(0x000003E2)
 #define WERR_OPERATION_ABORTED W_ERROR(0x000003E3)
 #define WERR_IO_INCOMPLETE     W_ERROR(0x000003E4)
+#define WERR_IO_PENDING        W_ERROR(0x000003E5)
 #define WERR_NOACCESS  W_ERROR(0x000003E6)
 #define WERR_SWAPERROR W_ERROR(0x000003E7)
 #define WERR_STACK_OVERFLOW    W_ERROR(0x000003E9)
 #define WERR_INVALID_MESSAGE   W_ERROR(0x000003EA)
+#define WERR_CAN_NOT_COMPLETE  W_ERROR(0x000003EB)
+#define WERR_INVALID_FLAGS     W_ERROR(0x000003EC)
 #define WERR_UNRECOGNIZED_VOLUME       W_ERROR(0x000003ED)
 #define WERR_FILE_INVALID      W_ERROR(0x000003EE)
 #define WERR_FULLSCREEN_MODE   W_ERROR(0x000003EF)
@@ -682,10 +603,13 @@ typedef uint32_t WERROR;
 #define WERR_CHILD_MUST_BE_VOLATILE    W_ERROR(0x000003FD)
 #define WERR_NOTIFY_ENUM_DIR   W_ERROR(0x000003FE)
 #define WERR_DEPENDENT_SERVICES_RUNNING        W_ERROR(0x0000041B)
+#define WERR_INVALID_SERVICE_CONTROL   W_ERROR(0x0000041C)
 #define WERR_SERVICE_REQUEST_TIMEOUT   W_ERROR(0x0000041D)
 #define WERR_SERVICE_NO_THREAD W_ERROR(0x0000041E)
 #define WERR_SERVICE_DATABASE_LOCKED   W_ERROR(0x0000041F)
+#define WERR_SERVICE_ALREADY_RUNNING   W_ERROR(0x00000420)
 #define WERR_INVALID_SERVICE_ACCOUNT   W_ERROR(0x00000421)
+#define WERR_SERVICE_DISABLED  W_ERROR(0x00000422)
 #define WERR_CIRCULAR_DEPENDENCY       W_ERROR(0x00000423)
 #define WERR_SERVICE_DOES_NOT_EXIST    W_ERROR(0x00000424)
 #define WERR_SERVICE_CANNOT_ACCEPT_CTRL        W_ERROR(0x00000425)
@@ -699,9 +623,13 @@ typedef uint32_t WERROR;
 #define WERR_SERVICE_LOGON_FAILED      W_ERROR(0x0000042D)
 #define WERR_SERVICE_START_HANG        W_ERROR(0x0000042E)
 #define WERR_INVALID_SERVICE_LOCK      W_ERROR(0x0000042F)
+#define WERR_SERVICE_MARKED_FOR_DELETE W_ERROR(0x00000430)
+#define WERR_SERVICE_EXISTS    W_ERROR(0x00000431)
 #define WERR_ALREADY_RUNNING_LKG       W_ERROR(0x00000432)
 #define WERR_SERVICE_DEPENDENCY_DELETED        W_ERROR(0x00000433)
 #define WERR_BOOT_ALREADY_ACCEPTED     W_ERROR(0x00000434)
+#define WERR_SERVICE_NEVER_STARTED     W_ERROR(0x00000435)
+#define WERR_DUPLICATE_SERVICE_NAME    W_ERROR(0x00000436)
 #define WERR_DIFFERENT_SERVICE_ACCOUNT W_ERROR(0x00000437)
 #define WERR_CANNOT_DETECT_DRIVER_FAILURE      W_ERROR(0x00000438)
 #define WERR_CANNOT_DETECT_PROCESS_ABORT       W_ERROR(0x00000439)
@@ -724,6 +652,7 @@ typedef uint32_t WERROR;
 #define WERR_NO_UNICODE_TRANSLATION    W_ERROR(0x00000459)
 #define WERR_DLL_INIT_FAILED   W_ERROR(0x0000045A)
 #define WERR_SHUTDOWN_IN_PROGRESS      W_ERROR(0x0000045B)
+#define WERR_NO_SHUTDOWN_IN_PROGRESS   W_ERROR(0x0000045C)
 #define WERR_IO_DEVICE W_ERROR(0x0000045D)
 #define WERR_SERIAL_NO_DEVICE  W_ERROR(0x0000045E)
 #define WERR_IRQ_BUSY  W_ERROR(0x0000045F)
@@ -760,6 +689,8 @@ typedef uint32_t WERROR;
 #define WERR_DEVICE_REINITIALIZATION_NEEDED    W_ERROR(0x0000048C)
 #define WERR_DEVICE_REQUIRES_CLEANING  W_ERROR(0x0000048D)
 #define WERR_DEVICE_DOOR_OPEN  W_ERROR(0x0000048E)
+#define WERR_DEVICE_NOT_CONNECTED      W_ERROR(0x0000048F)
+#define WERR_NOT_FOUND W_ERROR(0x00000490)
 #define WERR_NO_MATCH  W_ERROR(0x00000491)
 #define WERR_SET_NOT_FOUND     W_ERROR(0x00000492)
 #define WERR_POINT_NOT_FOUND   W_ERROR(0x00000493)
@@ -784,7 +715,9 @@ typedef uint32_t WERROR;
 #define WERR_NOT_CONTAINER     W_ERROR(0x000004B7)
 #define WERR_EXTENDED_ERROR    W_ERROR(0x000004B8)
 #define WERR_INVALID_GROUPNAME W_ERROR(0x000004B9)
+#define WERR_INVALID_COMPUTERNAME      W_ERROR(0x000004BA)
 #define WERR_INVALID_EVENTNAME W_ERROR(0x000004BB)
+#define WERR_INVALID_DOMAINNAME        W_ERROR(0x000004BC)
 #define WERR_INVALID_SERVICENAME       W_ERROR(0x000004BD)
 #define WERR_INVALID_NETNAME   W_ERROR(0x000004BE)
 #define WERR_INVALID_SHARENAME W_ERROR(0x000004BF)
@@ -816,6 +749,7 @@ typedef uint32_t WERROR;
 #define WERR_INCORRECT_ADDRESS W_ERROR(0x000004D9)
 #define WERR_ALREADY_REGISTERED        W_ERROR(0x000004DA)
 #define WERR_SERVICE_NOT_FOUND W_ERROR(0x000004DB)
+#define WERR_NOT_AUTHENTICATED W_ERROR(0x000004DC)
 #define WERR_NOT_LOGGED_ON     W_ERROR(0x000004DD)
 #define WERR_CONTINUE  W_ERROR(0x000004DE)
 #define WERR_ALREADY_INITIALIZED       W_ERROR(0x000004DF)
@@ -837,6 +771,7 @@ typedef uint32_t WERROR;
 #define WERR_PKINIT_FAILURE    W_ERROR(0x000004EF)
 #define WERR_SMARTCARD_SUBSYSTEM_FAILURE       W_ERROR(0x000004F0)
 #define WERR_DOWNGRADE_DETECTED        W_ERROR(0x000004F1)
+#define WERR_MACHINE_LOCKED    W_ERROR(0x000004F7)
 #define WERR_CALLBACK_SUPPLIED_INVALID_DATA    W_ERROR(0x000004F9)
 #define WERR_SYNC_FOREGROUND_REFRESH_REQUIRED  W_ERROR(0x000004FA)
 #define WERR_DRIVER_BLOCKED    W_ERROR(0x000004FB)
@@ -867,18 +802,34 @@ typedef uint32_t WERROR;
 #define WERR_NO_QUOTAS_FOR_ACCOUNT     W_ERROR(0x00000516)
 #define WERR_LOCAL_USER_SESSION_KEY    W_ERROR(0x00000517)
 #define WERR_NULL_LM_PASSWORD  W_ERROR(0x00000518)
+#define WERR_UNKNOWN_REVISION  W_ERROR(0x00000519)
+#define WERR_REVISION_MISMATCH W_ERROR(0x0000051A)
+#define WERR_INVALID_OWNER     W_ERROR(0x0000051B)
+#define WERR_INVALID_PRIMARY_GROUP     W_ERROR(0x0000051C)
 #define WERR_NO_IMPERSONATION_TOKEN    W_ERROR(0x0000051D)
 #define WERR_CANT_DISABLE_MANDATORY    W_ERROR(0x0000051E)
+#define WERR_NO_LOGON_SERVERS  W_ERROR(0x0000051F)
+#define WERR_NO_SUCH_LOGON_SESSION     W_ERROR(0x00000520)
+#define WERR_NO_SUCH_PRIVILEGE W_ERROR(0x00000521)
+#define WERR_PRIVILEGE_NOT_HELD        W_ERROR(0x00000522)
 #define WERR_INVALID_ACCOUNT_NAME      W_ERROR(0x00000523)
 #define WERR_USER_EXISTS       W_ERROR(0x00000524)
+#define WERR_NO_SUCH_USER      W_ERROR(0x00000525)
+#define WERR_GROUP_EXISTS      W_ERROR(0x00000526)
+#define WERR_NO_SUCH_GROUP     W_ERROR(0x00000527)
+#define WERR_MEMBER_IN_GROUP   W_ERROR(0x00000528)
 #define WERR_MEMBER_NOT_IN_GROUP       W_ERROR(0x00000529)
 #define WERR_LAST_ADMIN        W_ERROR(0x0000052A)
+#define WERR_WRONG_PASSWORD    W_ERROR(0x0000052B)
 #define WERR_ILL_FORMED_PASSWORD       W_ERROR(0x0000052C)
+#define WERR_PASSWORD_RESTRICTION      W_ERROR(0x0000052D)
+#define WERR_LOGON_FAILURE     W_ERROR(0x0000052E)
 #define WERR_ACCOUNT_RESTRICTION       W_ERROR(0x0000052F)
 #define WERR_INVALID_LOGON_HOURS       W_ERROR(0x00000530)
 #define WERR_INVALID_WORKSTATION       W_ERROR(0x00000531)
 #define WERR_PASSWORD_EXPIRED  W_ERROR(0x00000532)
 #define WERR_ACCOUNT_DISABLED  W_ERROR(0x00000533)
+#define WERR_NONE_MAPPED       W_ERROR(0x00000534)
 #define WERR_TOO_MANY_LUIDS_REQUESTED  W_ERROR(0x00000535)
 #define WERR_LUIDS_EXHAUSTED   W_ERROR(0x00000536)
 #define WERR_INVALID_SUB_AUTHORITY     W_ERROR(0x00000537)
@@ -898,6 +849,9 @@ typedef uint32_t WERROR;
 #define WERR_NO_SECURITY_ON_OBJECT     W_ERROR(0x00000546)
 #define WERR_CANT_ACCESS_DOMAIN_INFO   W_ERROR(0x00000547)
 #define WERR_INVALID_SERVER_STATE      W_ERROR(0x00000548)
+#define WERR_INVALID_DOMAIN_STATE      W_ERROR(0x00000549)
+#define WERR_INVALID_DOMAIN_ROLE       W_ERROR(0x0000054A)
+#define WERR_NO_SUCH_DOMAIN    W_ERROR(0x0000054B)
 #define WERR_DOMAIN_EXISTS     W_ERROR(0x0000054C)
 #define WERR_DOMAIN_LIMIT_EXCEEDED     W_ERROR(0x0000054D)
 #define WERR_INTERNAL_DB_CORRUPTION    W_ERROR(0x0000054E)
@@ -913,11 +867,15 @@ typedef uint32_t WERROR;
 #define WERR_CANNOT_IMPERSONATE        W_ERROR(0x00000558)
 #define WERR_RXACT_INVALID_STATE       W_ERROR(0x00000559)
 #define WERR_RXACT_COMMIT_FAILURE      W_ERROR(0x0000055A)
+#define WERR_SPECIAL_ACCOUNT   W_ERROR(0x0000055B)
 #define WERR_SPECIAL_GROUP     W_ERROR(0x0000055C)
 #define WERR_SPECIAL_USER      W_ERROR(0x0000055D)
 #define WERR_MEMBERS_PRIMARY_GROUP     W_ERROR(0x0000055E)
 #define WERR_TOKEN_ALREADY_IN_USE      W_ERROR(0x0000055F)
+#define WERR_NO_SUCH_ALIAS     W_ERROR(0x00000560)
 #define WERR_MEMBER_NOT_IN_ALIAS       W_ERROR(0x00000561)
+#define WERR_MEMBER_IN_ALIAS   W_ERROR(0x00000562)
+#define WERR_ALIAS_EXISTS      W_ERROR(0x00000563)
 #define WERR_LOGON_NOT_GRANTED W_ERROR(0x00000564)
 #define WERR_TOO_MANY_SECRETS  W_ERROR(0x00000565)
 #define WERR_SECRET_TOO_LONG   W_ERROR(0x00000566)
@@ -936,6 +894,7 @@ typedef uint32_t WERROR;
 #define WERR_LICENSE_QUOTA_EXCEEDED    W_ERROR(0x00000573)
 #define WERR_WRONG_TARGET_NAME W_ERROR(0x00000574)
 #define WERR_MUTUAL_AUTH_FAILED        W_ERROR(0x00000575)
+#define WERR_TIME_SKEW W_ERROR(0x00000576)
 #define WERR_CURRENT_DOMAIN_NOT_ALLOWED        W_ERROR(0x00000577)
 #define WERR_INVALID_WINDOW_HANDLE     W_ERROR(0x00000578)
 #define WERR_INVALID_MENU_HANDLE       W_ERROR(0x00000579)
@@ -987,6 +946,7 @@ typedef uint32_t WERROR;
 #define WERR_NO_SCROLLBARS     W_ERROR(0x000005A7)
 #define WERR_INVALID_SCROLLBAR_RANGE   W_ERROR(0x000005A8)
 #define WERR_INVALID_SHOWWIN_COMMAND   W_ERROR(0x000005A9)
+#define WERR_NO_SYSTEM_RESOURCES       W_ERROR(0x000005AA)
 #define WERR_NONPAGED_SYSTEM_RESOURCES W_ERROR(0x000005AB)
 #define WERR_PAGED_SYSTEM_RESOURCES    W_ERROR(0x000005AC)
 #define WERR_WORKING_SET_QUOTA W_ERROR(0x000005AD)
@@ -1001,6 +961,7 @@ typedef uint32_t WERROR;
 #define WERR_INCORRECT_SIZE    W_ERROR(0x000005B6)
 #define WERR_SYMLINK_CLASS_DISABLED    W_ERROR(0x000005B7)
 #define WERR_SYMLINK_NOT_SUPPORTED     W_ERROR(0x000005B8)
+#define WERR_EVENTLOG_FILE_CORRUPT     W_ERROR(0x000005DC)
 #define WERR_EVENTLOG_CANT_START       W_ERROR(0x000005DD)
 #define WERR_LOG_FILE_FULL     W_ERROR(0x000005DE)
 #define WERR_EVENTLOG_FILE_CHANGED     W_ERROR(0x000005DF)
@@ -1140,8 +1101,10 @@ typedef uint32_t WERROR;
 #define WERR_RPC_X_ENUM_VALUE_OUT_OF_RANGE     W_ERROR(0x000006F5)
 #define WERR_RPC_X_BYTE_COUNT_TOO_SMALL        W_ERROR(0x000006F6)
 #define WERR_RPC_X_BAD_STUB_DATA       W_ERROR(0x000006F7)
+#define WERR_INVALID_USER_BUFFER       W_ERROR(0x000006F8)
 #define WERR_UNRECOGNIZED_MEDIA        W_ERROR(0x000006F9)
 #define WERR_NO_TRUST_LSA_SECRET       W_ERROR(0x000006FA)
+#define WERR_NO_TRUST_SAM_ACCOUNT      W_ERROR(0x000006FB)
 #define WERR_TRUSTED_DOMAIN_FAILURE    W_ERROR(0x000006FC)
 #define WERR_TRUSTED_RELATIONSHIP_FAILURE      W_ERROR(0x000006FD)
 #define WERR_TRUST_FAILURE     W_ERROR(0x000006FE)
@@ -1149,6 +1112,17 @@ typedef uint32_t WERROR;
 #define WERR_NETLOGON_NOT_STARTED      W_ERROR(0x00000700)
 #define WERR_ACCOUNT_EXPIRED   W_ERROR(0x00000701)
 #define WERR_REDIRECTOR_HAS_OPEN_HANDLES       W_ERROR(0x00000702)
+#define WERR_PRINTER_DRIVER_ALREADY_INSTALLED  W_ERROR(0x00000703)
+#define WERR_UNKNOWN_PORT      W_ERROR(0x00000704)
+#define WERR_UNKNOWN_PRINTER_DRIVER    W_ERROR(0x00000705)
+#define WERR_UNKNOWN_PRINTPROCESSOR    W_ERROR(0x00000706)
+#define WERR_INVALID_SEPARATOR_FILE    W_ERROR(0x00000707)
+#define WERR_INVALID_PRIORITY  W_ERROR(0x00000708)
+#define WERR_INVALID_PRINTER_NAME      W_ERROR(0x00000709)
+#define WERR_PRINTER_ALREADY_EXISTS    W_ERROR(0x0000070A)
+#define WERR_INVALID_PRINTER_COMMAND   W_ERROR(0x0000070B)
+#define WERR_INVALID_DATATYPE  W_ERROR(0x0000070C)
+#define WERR_INVALID_ENVIRONMENT       W_ERROR(0x0000070D)
 #define WERR_RPC_S_NO_MORE_BINDINGS    W_ERROR(0x0000070E)
 #define WERR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT W_ERROR(0x0000070F)
 #define WERR_NOLOGON_WORKSTATION_TRUST_ACCOUNT W_ERROR(0x00000710)
@@ -1180,9 +1154,14 @@ typedef uint32_t WERROR;
 #define WERR_EPT_S_CANT_CREATE W_ERROR(0x0000076B)
 #define WERR_RPC_S_INVALID_OBJECT      W_ERROR(0x0000076C)
 #define WERR_INVALID_TIME      W_ERROR(0x0000076D)
+#define WERR_INVALID_FORM_NAME W_ERROR(0x0000076E)
+#define WERR_INVALID_FORM_SIZE W_ERROR(0x0000076F)
 #define WERR_ALREADY_WAITING   W_ERROR(0x00000770)
 #define WERR_PRINTER_DELETED   W_ERROR(0x00000771)
 #define WERR_INVALID_PRINTER_STATE     W_ERROR(0x00000772)
+#define WERR_PASSWORD_MUST_CHANGE      W_ERROR(0x00000773)
+#define WERR_DOMAIN_CONTROLLER_NOT_FOUND       W_ERROR(0x00000774)
+#define WERR_ACCOUNT_LOCKED_OUT        W_ERROR(0x00000775)
 #define WERR_OR_INVALID_OXID   W_ERROR(0x00000776)
 #define WERR_OR_INVALID_OID    W_ERROR(0x00000777)
 #define WERR_OR_INVALID_SET    W_ERROR(0x00000778)
@@ -1541,6 +1520,16 @@ typedef uint32_t WERROR;
 #define WERR_NERR_PASSWORDTOOLONG      W_ERROR(0x00000A8F)
 #define WERR_NERR_PASSWORDNOTCOMPLEXENOUGH     W_ERROR(0x00000A90)
 #define WERR_NERR_PASSWORDFILTERERROR  W_ERROR(0x00000A91)
+#define WERR_UNKNOWN_PRINT_MONITOR     W_ERROR(0x00000BB8)
+#define WERR_PRINTER_DRIVER_IN_USE     W_ERROR(0x00000BB9)
+#define WERR_SPOOL_FILE_NOT_FOUND      W_ERROR(0x00000BBA)
+#define WERR_SPL_NO_STARTDOC   W_ERROR(0x00000BBB)
+#define WERR_SPL_NO_ADDJOB     W_ERROR(0x00000BBC)
+#define WERR_PRINT_PROCESSOR_ALREADY_INSTALLED W_ERROR(0x00000BBD)
+#define WERR_PRINT_MONITOR_ALREADY_INSTALLED   W_ERROR(0x00000BBE)
+#define WERR_INVALID_PRINT_MONITOR     W_ERROR(0x00000BBF)
+#define WERR_PRINT_MONITOR_IN_USE      W_ERROR(0x00000BC0)
+#define WERR_PRINTER_HAS_JOBS_QUEUED   W_ERROR(0x00000BC1)
 #define WERR_SUCCESS_REBOOT_REQUIRED   W_ERROR(0x00000BC2)
 #define WERR_SUCCESS_RESTART_REQUIRED  W_ERROR(0x00000BC3)
 #define WERR_PRINTER_NOT_FOUND W_ERROR(0x00000BC4)
@@ -1593,6 +1582,7 @@ typedef uint32_t WERROR;
 #define WERR_RESOURCE_NOT_PRESENT      W_ERROR(0x000010DC)
 #define WERR_INVALID_OPERATION W_ERROR(0x000010DD)
 #define WERR_MEDIA_NOT_AVAILABLE       W_ERROR(0x000010DE)
+#define WERR_DEVICE_NOT_AVAILABLE      W_ERROR(0x000010DF)
 #define WERR_REQUEST_REFUSED   W_ERROR(0x000010E0)
 #define WERR_INVALID_DRIVE_OBJECT      W_ERROR(0x000010E1)
 #define WERR_LIBRARY_FULL      W_ERROR(0x000010E2)