diff options
-rw-r--r-- | libcli/util/doserr.c | 292 | ||||
-rw-r--r-- | libcli/util/werror.h | 186 |
2 files changed, 228 insertions, 250 deletions
diff --git a/libcli/util/doserr.c b/libcli/util/doserr.c index 6efe43d88c6..ca0d3ce2f0b 100644 --- a/libcli/util/doserr.c +++ b/libcli/util/doserr.c @@ -29,110 +29,10 @@ struct werror_code_struct { static const struct werror_code_struct dos_errs[] = { { "WERR_OK", WERR_OK }, - { "WERR_ACCESS_DENIED", WERR_ACCESS_DENIED }, - { "WERR_BAD_NETPATH", WERR_BAD_NETPATH }, - { "WERR_BAD_NET_RESP", WERR_BAD_NET_RESP }, - { "WERR_UNEXP_NET_ERR", WERR_UNEXP_NET_ERR }, - { "WERR_INSUFFICIENT_BUFFER", WERR_INSUFFICIENT_BUFFER }, - { "WERR_SEM_TIMEOUT", WERR_SEM_TIMEOUT }, - { "WERR_FILE_EXISTS", WERR_FILE_EXISTS }, - { "WERR_NOT_SUPPORTED", WERR_NOT_SUPPORTED }, - { "WERR_DUP_NAME", WERR_DUP_NAME }, - { "WERR_INVALID_NAME", WERR_INVALID_NAME }, - { "WERR_ALREADY_EXISTS", WERR_ALREADY_EXISTS }, - { "WERR_NO_MORE_ITEMS", WERR_NO_MORE_ITEMS }, - { "WERR_MORE_DATA", WERR_MORE_DATA }, - { "WERR_UNKNOWN_PRINTER_DRIVER", WERR_UNKNOWN_PRINTER_DRIVER }, - { "WERR_UNKNOWN_PRINTPROCESSOR", WERR_UNKNOWN_PRINTPROCESSOR }, - { "WERR_INVALID_SEPARATOR_FILE", WERR_INVALID_SEPARATOR_FILE }, - { "WERR_INVALID_PRIORITY", WERR_INVALID_PRIORITY }, - { "WERR_UNKNOWN_PORT", WERR_UNKNOWN_PORT }, - { "WERR_INVALID_PRINTER_NAME", WERR_INVALID_PRINTER_NAME }, - { "WERR_PRINTER_ALREADY_EXISTS", WERR_PRINTER_ALREADY_EXISTS }, - { "WERR_INVALID_DATATYPE", WERR_INVALID_DATATYPE }, - { "WERR_INVALID_ENVIRONMENT", WERR_INVALID_ENVIRONMENT }, - { "WERR_INVALID_FORM_NAME", WERR_INVALID_FORM_NAME }, - { "WERR_INVALID_FORM_SIZE", WERR_INVALID_FORM_SIZE }, - { "WERR_DOMAIN_CONTROLLER_NOT_FOUND", WERR_DOMAIN_CONTROLLER_NOT_FOUND }, - { "WERR_DEVICE_NOT_AVAILABLE", WERR_DEVICE_NOT_AVAILABLE }, - { "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH }, - { "WERR_NO_LOGON_SERVERS", WERR_NO_LOGON_SERVERS }, - { "WERR_NO_SUCH_LOGON_SESSION", WERR_NO_SUCH_LOGON_SESSION }, - { "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER }, - { "WERR_GROUP_EXISTS", WERR_GROUP_EXISTS }, - { "WERR_NO_SUCH_GROUP", WERR_NO_SUCH_GROUP }, - { "WERR_MEMBER_IN_GROUP", WERR_MEMBER_IN_GROUP }, - { "WERR_PRINTER_DRIVER_IN_USE", WERR_PRINTER_DRIVER_IN_USE }, { "WERR_STATUS_MORE_ENTRIES", WERR_STATUS_MORE_ENTRIES }, - { "WERR_LOGON_FAILURE", WERR_LOGON_FAILURE }, - { "WERR_INVALID_DOMAIN_ROLE", WERR_INVALID_DOMAIN_ROLE }, - { "WERR_UNKNOWN_REVISION", WERR_UNKNOWN_REVISION }, - { "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH }, - { "WERR_INVALID_OWNER", WERR_INVALID_OWNER }, - { "WERR_INVALID_PRIMARY_GROUP", WERR_INVALID_PRIMARY_GROUP }, - { "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME }, - { "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME }, - { "WERR_MACHINE_LOCKED", WERR_MACHINE_LOCKED }, - { "WERR_NO_LOGON_SERVERS", WERR_NO_LOGON_SERVERS }, - { "WERR_NO_SUCH_LOGON_SESSION", WERR_NO_SUCH_LOGON_SESSION }, - { "WERR_NO_SUCH_PRIVILEGE", WERR_NO_SUCH_PRIVILEGE }, - { "WERR_PRIVILEGE_NOT_HELD", WERR_PRIVILEGE_NOT_HELD }, - { "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER }, - { "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN }, - { "WERR_NO_SYSTEM_RESOURCES", WERR_NO_SYSTEM_RESOURCES }, - { "WERR_DS_NO_ATTRIBUTE_OR_VALUE", WERR_DS_NO_ATTRIBUTE_OR_VALUE }, { "WERR_DS_INVALID_ATTRIBUTE_SYNTAX", WERR_DS_INVALID_ATTRIBUTE_SYNTAX }, - { "WERR_DS_ATTRIBUTE_TYPE_UNDEFINED", WERR_DS_ATTRIBUTE_TYPE_UNDEFINED }, - { "WERR_DS_ATTRIBUTE_OR_VALUE_EXISTS", WERR_DS_ATTRIBUTE_OR_VALUE_EXISTS }, - { "WERR_DS_BUSY", WERR_DS_BUSY }, - { "WERR_DS_UNAVAILABLE", WERR_DS_UNAVAILABLE }, - { "WERR_DS_OBJ_CLASS_VIOLATION", WERR_DS_OBJ_CLASS_VIOLATION }, - { "WERR_DS_CANT_ON_NON_LEAF", WERR_DS_CANT_ON_NON_LEAF }, - { "WERR_DS_CANT_ON_RDN", WERR_DS_CANT_ON_RDN }, - { "WERR_DS_CANT_MOD_OBJ_CLASS", WERR_DS_CANT_MOD_OBJ_CLASS }, - { "WERR_DS_OPERATIONS_ERROR", WERR_DS_OPERATIONS_ERROR }, - { "WERR_DS_PROTOCOL_ERROR", WERR_DS_PROTOCOL_ERROR }, { "WERR_DS_TIMELIMIT_EXCEEEDED", WERR_DS_TIMELIMIT_EXCEEDED }, { "WERR_DS_ADMIN_LIMIT_EXCEEEDED", WERR_DS_ADMIN_LIMIT_EXCEEDED }, - { "WERR_DS_COMPARE_FALSE", WERR_DS_COMPARE_FALSE }, - { "WERR_DS_COMPARE_TRUE", WERR_DS_COMPARE_TRUE }, - { "WERR_DS_AUTH_METHOD_NOT_SUPPORTED", WERR_DS_AUTH_METHOD_NOT_SUPPORTED }, - { "WERR_DS_STRONG_AUTH_REQUIRED", WERR_DS_STRONG_AUTH_REQUIRED }, - { "WERR_DS_INAPPROPRIATE_AUTH", WERR_DS_INAPPROPRIATE_AUTH }, - { "WERR_DS_REFERRAL", WERR_DS_REFERRAL }, - { "WERR_DS_UNAVAILABLE_CRIT_EXTENSION", WERR_DS_UNAVAILABLE_CRIT_EXTENSION }, - { "WERR_DS_CONFIDENTIALITY_REQUIRED", WERR_DS_CONFIDENTIALITY_REQUIRED }, - { "WERR_DS_INAPPROPRIATE_MATCHING", WERR_DS_INAPPROPRIATE_MATCHING }, - { "WERR_DS_CONSTRAINT_VIOLATION", WERR_DS_CONSTRAINT_VIOLATION }, - { "WERR_DS_NO_SUCH_OBJECT", WERR_DS_NO_SUCH_OBJECT }, - { "WERR_DS_ALIAS_PROBLEM", WERR_DS_ALIAS_PROBLEM }, - { "WERR_DS_INVALID_DN_SYNTAX", WERR_DS_INVALID_DN_SYNTAX }, - { "WERR_DS_ALIAS_DEREF_PROBLEM", WERR_DS_ALIAS_DEREF_PROBLEM }, - { "WERR_DS_UNWILLING_TO_PERFORM", WERR_DS_UNWILLING_TO_PERFORM }, - { "WERR_DS_LOOP_DETECT", WERR_DS_LOOP_DETECT }, - { "WERR_DS_NAMING_VIOLATION", WERR_DS_NAMING_VIOLATION }, - { "WERR_DS_AFFECTS_MULTIPLE_DSAS", WERR_DS_AFFECTS_MULTIPLE_DSAS }, - { "WERR_DS_OBJ_STRING_NAME_EXISTS", WERR_DS_OBJ_STRING_NAME_EXISTS }, - { "WERR_DS_OBJ_NOT_FOUND", WERR_DS_OBJ_NOT_FOUND }, - { "WERR_DS_GENERIC_ERROR", WERR_DS_GENERIC_ERROR }, - { "WERR_DS_INSUFF_ACCESS_RIGHTS", WERR_DS_INSUFF_ACCESS_RIGHTS }, - { "WERR_DS_SCHEMA_NOT_LOADED", WERR_DS_SCHEMA_NOT_LOADED }, - { "WERR_DS_SCHEMA_ALLOC_FAILED", WERR_DS_SCHEMA_ALLOC_FAILED }, - { "WERR_DS_ATT_SCHEMA_REQ_SYNTAX", WERR_DS_ATT_SCHEMA_REQ_SYNTAX }, - { "WERR_DS_DRA_SCHEMA_MISMATCH", WERR_DS_DRA_SCHEMA_MISMATCH }, - { "WERR_DS_DRA_INVALID_PARAMETER", WERR_DS_DRA_INVALID_PARAMETER }, - { "WERR_DS_DRA_BAD_DN", WERR_DS_DRA_BAD_DN }, - { "WERR_DS_DRA_BAD_NC", WERR_DS_DRA_BAD_NC }, - { "WERR_DS_DRA_INTERNAL_ERROR", WERR_DS_DRA_INTERNAL_ERROR }, - { "WERR_DS_DRA_OUT_OF_MEM", WERR_DS_DRA_OUT_OF_MEM }, - { "WERR_DS_SINGLE_VALUE_CONSTRAINT", WERR_DS_SINGLE_VALUE_CONSTRAINT }, - { "WERR_DS_DRA_DB_ERROR", WERR_DS_DRA_DB_ERROR }, - { "WERR_DS_DRA_NO_REPLICA", WERR_DS_DRA_NO_REPLICA }, - { "WERR_DS_DRA_ACCESS_DENIED", WERR_DS_DRA_ACCESS_DENIED }, - { "WERR_DS_DRA_SOURCE_DISABLED", WERR_DS_DRA_SOURCE_DISABLED }, - { "WERR_DS_DNS_LOOKUP_FAILURE", WERR_DS_DNS_LOOKUP_FAILURE }, - { "WERR_DS_NO_MSDS_INTID", WERR_DS_NO_MSDS_INTID }, - { "WERR_DS_DUP_MSDS_INTID", WERR_DS_DUP_MSDS_INTID }, { "WERR_DNS_ERROR_RCODE_FORMAT_ERROR", WERR_DNS_ERROR_RCODE_FORMAT_ERROR }, { "WERR_DNS_ERROR_RCODE_SERVER_FAILURE", WERR_DNS_ERROR_RCODE_SERVER_FAILURE }, { "WERR_DNS_ERROR_RCODE_NAME_ERROR", WERR_DNS_ERROR_RCODE_NAME_ERROR }, @@ -227,44 +127,11 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DNS_ERROR_DP_ALREADY_ENLISTED", WERR_DNS_ERROR_DP_ALREADY_ENLISTED }, { "WERR_DNS_ERROR_DP_NOT_AVAILABLE", WERR_DNS_ERROR_DP_NOT_AVAILABLE }, { "WERR_DNS_ERROR_DP_FSMO_ERROR", WERR_DNS_ERROR_DP_FSMO_ERROR }, - { "WERR_PRINTQ_FULL", WERR_PRINTQ_FULL }, - { "WERR_NO_SPOOL_SPACE", WERR_NO_SPOOL_SPACE }, - { "WERR_CAN_NOT_COMPLETE", WERR_CAN_NOT_COMPLETE }, - { "WERR_INVALID_FLAGS", WERR_INVALID_FLAGS }, - { "WERR_DEVICE_NOT_CONNECTED", WERR_DEVICE_NOT_CONNECTED }, - { "WERR_NOT_FOUND", WERR_NOT_FOUND }, - { "WERR_INVALID_USER_BUFFER", WERR_INVALID_USER_BUFFER }, - { "WERR_NO_TRUST_SAM_ACCOUNT", WERR_NO_TRUST_SAM_ACCOUNT }, - { "WERR_INVALID_PRINTER_COMMAND", WERR_INVALID_PRINTER_COMMAND }, - { "WERR_NO_SHUTDOWN_IN_PROGRESS", WERR_NO_SHUTDOWN_IN_PROGRESS }, { "WERR_SEC_E_ENCRYPT_FAILURE", WERR_SEC_E_ENCRYPT_FAILURE }, { "WERR_SEC_E_DECRYPT_FAILURE", WERR_SEC_E_DECRYPT_FAILURE }, { "WERR_SEC_E_ALGORITHM_MISMATCH", WERR_SEC_E_ALGORITHM_MISMATCH }, - { "WERR_NOT_AUTHENTICATED", WERR_NOT_AUTHENTICATED }, - { "WERR_CALL_NOT_IMPLEMENTED", WERR_CALL_NOT_IMPLEMENTED }, { "WERR_RPC_E_REMOTE_DISABLED", WERR_RPC_E_REMOTE_DISABLED }, - { "WERR_NONE_MAPPED", WERR_NONE_MAPPED }, - { "WERR_INVALID_DOMAIN_STATE", WERR_INVALID_DOMAIN_STATE }, - { "WERR_SPECIAL_ACCOUNT", WERR_SPECIAL_ACCOUNT }, - { "WERR_ALIAS_EXISTS", WERR_ALIAS_EXISTS }, - { "WERR_NO_SUCH_ALIAS", WERR_NO_SUCH_ALIAS }, - { "WERR_MEMBER_IN_ALIAS", WERR_MEMBER_IN_ALIAS }, - { "WERR_TIME_SKEW", WERR_TIME_SKEW }, - { "WERR_IO_PENDING", WERR_IO_PENDING }, - { "WERR_INVALID_SERVICE_CONTROL", WERR_INVALID_SERVICE_CONTROL }, - { "WERR_SERVICE_ALREADY_RUNNING", WERR_SERVICE_ALREADY_RUNNING }, - { "WERR_SERVICE_DISABLED", WERR_SERVICE_DISABLED }, - { "WERR_SERVICE_MARKED_FOR_DELETE", WERR_SERVICE_MARKED_FOR_DELETE }, - { "WERR_SERVICE_EXISTS", WERR_SERVICE_EXISTS }, - { "WERR_SERVICE_NEVER_STARTED", WERR_SERVICE_NEVER_STARTED }, - { "WERR_DUPLICATE_SERVICE_NAME", WERR_DUPLICATE_SERVICE_NAME }, - { "WERR_PASSWORD_MUST_CHANGE", WERR_PASSWORD_MUST_CHANGE }, - { "WERR_ACCOUNT_LOCKED_OUT", WERR_ACCOUNT_LOCKED_OUT }, - { "WERR_UNKNOWN_PRINT_MONITOR", WERR_UNKNOWN_PRINT_MONITOR }, - { "WERR_PASSWORD_RESTRICTION", WERR_PASSWORD_RESTRICTION }, - { "WERR_WRONG_PASSWORD", WERR_WRONG_PASSWORD }, { "WERR_CLASS_NOT_REGISTERED", WERR_CLASS_NOT_REGISTERED }, - { "WERR_PRINT_PROCESSOR_ALREADY_INSTALLED", WERR_PRINT_PROCESSOR_ALREADY_INSTALLED }, /***************************************************************************** Auto-generated Win32 error from: http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx @@ -275,6 +142,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_FILE_NOT_FOUND", WERR_FILE_NOT_FOUND }, { "WERR_PATH_NOT_FOUND", WERR_PATH_NOT_FOUND }, { "WERR_TOO_MANY_OPEN_FILES", WERR_TOO_MANY_OPEN_FILES }, + { "WERR_ACCESS_DENIED", WERR_ACCESS_DENIED }, { "WERR_INVALID_HANDLE", WERR_INVALID_HANDLE }, { "WERR_ARENA_TRASHED", WERR_ARENA_TRASHED }, { "WERR_NOT_ENOUGH_MEMORY", WERR_NOT_ENOUGH_MEMORY }, @@ -307,12 +175,19 @@ static const struct werror_code_struct dos_errs[] = { "WERR_SHARING_BUFFER_EXCEEDED", WERR_SHARING_BUFFER_EXCEEDED }, { "WERR_HANDLE_EOF", WERR_HANDLE_EOF }, { "WERR_HANDLE_DISK_FULL", WERR_HANDLE_DISK_FULL }, + { "WERR_NOT_SUPPORTED", WERR_NOT_SUPPORTED }, { "WERR_REM_NOT_LIST", WERR_REM_NOT_LIST }, + { "WERR_DUP_NAME", WERR_DUP_NAME }, + { "WERR_BAD_NETPATH", WERR_BAD_NETPATH }, { "WERR_NETWORK_BUSY", WERR_NETWORK_BUSY }, { "WERR_DEV_NOT_EXIST", WERR_DEV_NOT_EXIST }, { "WERR_TOO_MANY_CMDS", WERR_TOO_MANY_CMDS }, { "WERR_ADAP_HDW_ERR", WERR_ADAP_HDW_ERR }, + { "WERR_BAD_NET_RESP", WERR_BAD_NET_RESP }, + { "WERR_UNEXP_NET_ERR", WERR_UNEXP_NET_ERR }, { "WERR_BAD_REM_ADAP", WERR_BAD_REM_ADAP }, + { "WERR_PRINTQ_FULL", WERR_PRINTQ_FULL }, + { "WERR_NO_SPOOL_SPACE", WERR_NO_SPOOL_SPACE }, { "WERR_PRINT_CANCELLED", WERR_PRINT_CANCELLED }, { "WERR_NETNAME_DELETED", WERR_NETNAME_DELETED }, { "WERR_NETWORK_ACCESS_DENIED", WERR_NETWORK_ACCESS_DENIED }, @@ -323,6 +198,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_SHARING_PAUSED", WERR_SHARING_PAUSED }, { "WERR_REQ_NOT_ACCEP", WERR_REQ_NOT_ACCEP }, { "WERR_REDIR_PAUSED", WERR_REDIR_PAUSED }, + { "WERR_FILE_EXISTS", WERR_FILE_EXISTS }, { "WERR_CANNOT_MAKE", WERR_CANNOT_MAKE }, { "WERR_FAIL_I24", WERR_FAIL_I24 }, { "WERR_OUT_OF_STRUCTURES", WERR_OUT_OF_STRUCTURES }, @@ -349,6 +225,10 @@ static const struct werror_code_struct dos_errs[] = { "WERR_INVALID_CATEGORY", WERR_INVALID_CATEGORY }, { "WERR_INVALID_VERIFY_SWITCH", WERR_INVALID_VERIFY_SWITCH }, { "WERR_BAD_DRIVER_LEVEL", WERR_BAD_DRIVER_LEVEL }, + { "WERR_CALL_NOT_IMPLEMENTED", WERR_CALL_NOT_IMPLEMENTED }, + { "WERR_SEM_TIMEOUT", WERR_SEM_TIMEOUT }, + { "WERR_INSUFFICIENT_BUFFER", WERR_INSUFFICIENT_BUFFER }, + { "WERR_INVALID_NAME", WERR_INVALID_NAME }, { "WERR_INVALID_LEVEL", WERR_INVALID_LEVEL }, { "WERR_NO_VOLUME_LABEL", WERR_NO_VOLUME_LABEL }, { "WERR_MOD_NOT_FOUND", WERR_MOD_NOT_FOUND }, @@ -389,6 +269,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_ATOMIC_LOCKS_NOT_SUPPORTED", WERR_ATOMIC_LOCKS_NOT_SUPPORTED }, { "WERR_INVALID_SEGMENT_NUMBER", WERR_INVALID_SEGMENT_NUMBER }, { "WERR_INVALID_ORDINAL", WERR_INVALID_ORDINAL }, + { "WERR_ALREADY_EXISTS", WERR_ALREADY_EXISTS }, { "WERR_INVALID_FLAG_NUMBER", WERR_INVALID_FLAG_NUMBER }, { "WERR_SEM_NOT_FOUND", WERR_SEM_NOT_FOUND }, { "WERR_INVALID_STARTING_CODESEG", WERR_INVALID_STARTING_CODESEG }, @@ -431,10 +312,12 @@ static const struct werror_code_struct dos_errs[] = { "WERR_PIPE_BUSY", WERR_PIPE_BUSY }, { "WERR_NO_DATA", WERR_NO_DATA }, { "WERR_PIPE_NOT_CONNECTED", WERR_PIPE_NOT_CONNECTED }, + { "WERR_MORE_DATA", WERR_MORE_DATA }, { "WERR_VC_DISCONNECTED", WERR_VC_DISCONNECTED }, { "WERR_INVALID_EA_NAME", WERR_INVALID_EA_NAME }, { "WERR_EA_LIST_INCONSISTENT", WERR_EA_LIST_INCONSISTENT }, { "WERR_WAIT_TIMEOUT", WERR_WAIT_TIMEOUT }, + { "WERR_NO_MORE_ITEMS", WERR_NO_MORE_ITEMS }, { "WERR_CANNOT_COPY", WERR_CANNOT_COPY }, { "WERR_DIRECTORY", WERR_DIRECTORY }, { "WERR_EAS_DIDNT_FIT", WERR_EAS_DIDNT_FIT }, @@ -709,10 +592,13 @@ static const struct werror_code_struct dos_errs[] = { "WERR_EA_ACCESS_DENIED", WERR_EA_ACCESS_DENIED }, { "WERR_OPERATION_ABORTED", WERR_OPERATION_ABORTED }, { "WERR_IO_INCOMPLETE", WERR_IO_INCOMPLETE }, + { "WERR_IO_PENDING", WERR_IO_PENDING }, { "WERR_NOACCESS", WERR_NOACCESS }, { "WERR_SWAPERROR", WERR_SWAPERROR }, { "WERR_STACK_OVERFLOW", WERR_STACK_OVERFLOW }, { "WERR_INVALID_MESSAGE", WERR_INVALID_MESSAGE }, + { "WERR_CAN_NOT_COMPLETE", WERR_CAN_NOT_COMPLETE }, + { "WERR_INVALID_FLAGS", WERR_INVALID_FLAGS }, { "WERR_UNRECOGNIZED_VOLUME", WERR_UNRECOGNIZED_VOLUME }, { "WERR_FILE_INVALID", WERR_FILE_INVALID }, { "WERR_FULLSCREEN_MODE", WERR_FULLSCREEN_MODE }, @@ -732,10 +618,13 @@ static const struct werror_code_struct dos_errs[] = { "WERR_CHILD_MUST_BE_VOLATILE", WERR_CHILD_MUST_BE_VOLATILE }, { "WERR_NOTIFY_ENUM_DIR", WERR_NOTIFY_ENUM_DIR }, { "WERR_DEPENDENT_SERVICES_RUNNING", WERR_DEPENDENT_SERVICES_RUNNING }, + { "WERR_INVALID_SERVICE_CONTROL", WERR_INVALID_SERVICE_CONTROL }, { "WERR_SERVICE_REQUEST_TIMEOUT", WERR_SERVICE_REQUEST_TIMEOUT }, { "WERR_SERVICE_NO_THREAD", WERR_SERVICE_NO_THREAD }, { "WERR_SERVICE_DATABASE_LOCKED", WERR_SERVICE_DATABASE_LOCKED }, + { "WERR_SERVICE_ALREADY_RUNNING", WERR_SERVICE_ALREADY_RUNNING }, { "WERR_INVALID_SERVICE_ACCOUNT", WERR_INVALID_SERVICE_ACCOUNT }, + { "WERR_SERVICE_DISABLED", WERR_SERVICE_DISABLED }, { "WERR_CIRCULAR_DEPENDENCY", WERR_CIRCULAR_DEPENDENCY }, { "WERR_SERVICE_DOES_NOT_EXIST", WERR_SERVICE_DOES_NOT_EXIST }, { "WERR_SERVICE_CANNOT_ACCEPT_CTRL", WERR_SERVICE_CANNOT_ACCEPT_CTRL }, @@ -749,9 +638,13 @@ static const struct werror_code_struct dos_errs[] = { "WERR_SERVICE_LOGON_FAILED", WERR_SERVICE_LOGON_FAILED }, { "WERR_SERVICE_START_HANG", WERR_SERVICE_START_HANG }, { "WERR_INVALID_SERVICE_LOCK", WERR_INVALID_SERVICE_LOCK }, + { "WERR_SERVICE_MARKED_FOR_DELETE", WERR_SERVICE_MARKED_FOR_DELETE }, + { "WERR_SERVICE_EXISTS", WERR_SERVICE_EXISTS }, { "WERR_ALREADY_RUNNING_LKG", WERR_ALREADY_RUNNING_LKG }, { "WERR_SERVICE_DEPENDENCY_DELETED", WERR_SERVICE_DEPENDENCY_DELETED }, { "WERR_BOOT_ALREADY_ACCEPTED", WERR_BOOT_ALREADY_ACCEPTED }, + { "WERR_SERVICE_NEVER_STARTED", WERR_SERVICE_NEVER_STARTED }, + { "WERR_DUPLICATE_SERVICE_NAME", WERR_DUPLICATE_SERVICE_NAME }, { "WERR_DIFFERENT_SERVICE_ACCOUNT", WERR_DIFFERENT_SERVICE_ACCOUNT }, { "WERR_CANNOT_DETECT_DRIVER_FAILURE", WERR_CANNOT_DETECT_DRIVER_FAILURE }, { "WERR_CANNOT_DETECT_PROCESS_ABORT", WERR_CANNOT_DETECT_PROCESS_ABORT }, @@ -774,6 +667,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NO_UNICODE_TRANSLATION", WERR_NO_UNICODE_TRANSLATION }, { "WERR_DLL_INIT_FAILED", WERR_DLL_INIT_FAILED }, { "WERR_SHUTDOWN_IN_PROGRESS", WERR_SHUTDOWN_IN_PROGRESS }, + { "WERR_NO_SHUTDOWN_IN_PROGRESS", WERR_NO_SHUTDOWN_IN_PROGRESS }, { "WERR_IO_DEVICE", WERR_IO_DEVICE }, { "WERR_SERIAL_NO_DEVICE", WERR_SERIAL_NO_DEVICE }, { "WERR_IRQ_BUSY", WERR_IRQ_BUSY }, @@ -810,6 +704,8 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DEVICE_REINITIALIZATION_NEEDED", WERR_DEVICE_REINITIALIZATION_NEEDED }, { "WERR_DEVICE_REQUIRES_CLEANING", WERR_DEVICE_REQUIRES_CLEANING }, { "WERR_DEVICE_DOOR_OPEN", WERR_DEVICE_DOOR_OPEN }, + { "WERR_DEVICE_NOT_CONNECTED", WERR_DEVICE_NOT_CONNECTED }, + { "WERR_NOT_FOUND", WERR_NOT_FOUND }, { "WERR_NO_MATCH", WERR_NO_MATCH }, { "WERR_SET_NOT_FOUND", WERR_SET_NOT_FOUND }, { "WERR_POINT_NOT_FOUND", WERR_POINT_NOT_FOUND }, @@ -834,7 +730,9 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NOT_CONTAINER", WERR_NOT_CONTAINER }, { "WERR_EXTENDED_ERROR", WERR_EXTENDED_ERROR }, { "WERR_INVALID_GROUPNAME", WERR_INVALID_GROUPNAME }, + { "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME }, { "WERR_INVALID_EVENTNAME", WERR_INVALID_EVENTNAME }, + { "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME }, { "WERR_INVALID_SERVICENAME", WERR_INVALID_SERVICENAME }, { "WERR_INVALID_NETNAME", WERR_INVALID_NETNAME }, { "WERR_INVALID_SHARENAME", WERR_INVALID_SHARENAME }, @@ -866,6 +764,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_INCORRECT_ADDRESS", WERR_INCORRECT_ADDRESS }, { "WERR_ALREADY_REGISTERED", WERR_ALREADY_REGISTERED }, { "WERR_SERVICE_NOT_FOUND", WERR_SERVICE_NOT_FOUND }, + { "WERR_NOT_AUTHENTICATED", WERR_NOT_AUTHENTICATED }, { "WERR_NOT_LOGGED_ON", WERR_NOT_LOGGED_ON }, { "WERR_CONTINUE", WERR_CONTINUE }, { "WERR_ALREADY_INITIALIZED", WERR_ALREADY_INITIALIZED }, @@ -887,6 +786,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_PKINIT_FAILURE", WERR_PKINIT_FAILURE }, { "WERR_SMARTCARD_SUBSYSTEM_FAILURE", WERR_SMARTCARD_SUBSYSTEM_FAILURE }, { "WERR_DOWNGRADE_DETECTED", WERR_DOWNGRADE_DETECTED }, + { "WERR_MACHINE_LOCKED", WERR_MACHINE_LOCKED }, { "WERR_CALLBACK_SUPPLIED_INVALID_DATA", WERR_CALLBACK_SUPPLIED_INVALID_DATA }, { "WERR_SYNC_FOREGROUND_REFRESH_REQUIRED", WERR_SYNC_FOREGROUND_REFRESH_REQUIRED }, { "WERR_DRIVER_BLOCKED", WERR_DRIVER_BLOCKED }, @@ -917,18 +817,34 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NO_QUOTAS_FOR_ACCOUNT", WERR_NO_QUOTAS_FOR_ACCOUNT }, { "WERR_LOCAL_USER_SESSION_KEY", WERR_LOCAL_USER_SESSION_KEY }, { "WERR_NULL_LM_PASSWORD", WERR_NULL_LM_PASSWORD }, + { "WERR_UNKNOWN_REVISION", WERR_UNKNOWN_REVISION }, + { "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH }, + { "WERR_INVALID_OWNER", WERR_INVALID_OWNER }, + { "WERR_INVALID_PRIMARY_GROUP", WERR_INVALID_PRIMARY_GROUP }, { "WERR_NO_IMPERSONATION_TOKEN", WERR_NO_IMPERSONATION_TOKEN }, { "WERR_CANT_DISABLE_MANDATORY", WERR_CANT_DISABLE_MANDATORY }, + { "WERR_NO_LOGON_SERVERS", WERR_NO_LOGON_SERVERS }, + { "WERR_NO_SUCH_LOGON_SESSION", WERR_NO_SUCH_LOGON_SESSION }, + { "WERR_NO_SUCH_PRIVILEGE", WERR_NO_SUCH_PRIVILEGE }, + { "WERR_PRIVILEGE_NOT_HELD", WERR_PRIVILEGE_NOT_HELD }, { "WERR_INVALID_ACCOUNT_NAME", WERR_INVALID_ACCOUNT_NAME }, { "WERR_USER_EXISTS", WERR_USER_EXISTS }, + { "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER }, + { "WERR_GROUP_EXISTS", WERR_GROUP_EXISTS }, + { "WERR_NO_SUCH_GROUP", WERR_NO_SUCH_GROUP }, + { "WERR_MEMBER_IN_GROUP", WERR_MEMBER_IN_GROUP }, { "WERR_MEMBER_NOT_IN_GROUP", WERR_MEMBER_NOT_IN_GROUP }, { "WERR_LAST_ADMIN", WERR_LAST_ADMIN }, + { "WERR_WRONG_PASSWORD", WERR_WRONG_PASSWORD }, { "WERR_ILL_FORMED_PASSWORD", WERR_ILL_FORMED_PASSWORD }, + { "WERR_PASSWORD_RESTRICTION", WERR_PASSWORD_RESTRICTION }, + { "WERR_LOGON_FAILURE", WERR_LOGON_FAILURE }, { "WERR_ACCOUNT_RESTRICTION", WERR_ACCOUNT_RESTRICTION }, { "WERR_INVALID_LOGON_HOURS", WERR_INVALID_LOGON_HOURS }, { "WERR_INVALID_WORKSTATION", WERR_INVALID_WORKSTATION }, { "WERR_PASSWORD_EXPIRED", WERR_PASSWORD_EXPIRED }, { "WERR_ACCOUNT_DISABLED", WERR_ACCOUNT_DISABLED }, + { "WERR_NONE_MAPPED", WERR_NONE_MAPPED }, { "WERR_TOO_MANY_LUIDS_REQUESTED", WERR_TOO_MANY_LUIDS_REQUESTED }, { "WERR_LUIDS_EXHAUSTED", WERR_LUIDS_EXHAUSTED }, { "WERR_INVALID_SUB_AUTHORITY", WERR_INVALID_SUB_AUTHORITY }, @@ -948,6 +864,9 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NO_SECURITY_ON_OBJECT", WERR_NO_SECURITY_ON_OBJECT }, { "WERR_CANT_ACCESS_DOMAIN_INFO", WERR_CANT_ACCESS_DOMAIN_INFO }, { "WERR_INVALID_SERVER_STATE", WERR_INVALID_SERVER_STATE }, + { "WERR_INVALID_DOMAIN_STATE", WERR_INVALID_DOMAIN_STATE }, + { "WERR_INVALID_DOMAIN_ROLE", WERR_INVALID_DOMAIN_ROLE }, + { "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN }, { "WERR_DOMAIN_EXISTS", WERR_DOMAIN_EXISTS }, { "WERR_DOMAIN_LIMIT_EXCEEDED", WERR_DOMAIN_LIMIT_EXCEEDED }, { "WERR_INTERNAL_DB_CORRUPTION", WERR_INTERNAL_DB_CORRUPTION }, @@ -963,11 +882,15 @@ static const struct werror_code_struct dos_errs[] = { "WERR_CANNOT_IMPERSONATE", WERR_CANNOT_IMPERSONATE }, { "WERR_RXACT_INVALID_STATE", WERR_RXACT_INVALID_STATE }, { "WERR_RXACT_COMMIT_FAILURE", WERR_RXACT_COMMIT_FAILURE }, + { "WERR_SPECIAL_ACCOUNT", WERR_SPECIAL_ACCOUNT }, { "WERR_SPECIAL_GROUP", WERR_SPECIAL_GROUP }, { "WERR_SPECIAL_USER", WERR_SPECIAL_USER }, { "WERR_MEMBERS_PRIMARY_GROUP", WERR_MEMBERS_PRIMARY_GROUP }, { "WERR_TOKEN_ALREADY_IN_USE", WERR_TOKEN_ALREADY_IN_USE }, + { "WERR_NO_SUCH_ALIAS", WERR_NO_SUCH_ALIAS }, { "WERR_MEMBER_NOT_IN_ALIAS", WERR_MEMBER_NOT_IN_ALIAS }, + { "WERR_MEMBER_IN_ALIAS", WERR_MEMBER_IN_ALIAS }, + { "WERR_ALIAS_EXISTS", WERR_ALIAS_EXISTS }, { "WERR_LOGON_NOT_GRANTED", WERR_LOGON_NOT_GRANTED }, { "WERR_TOO_MANY_SECRETS", WERR_TOO_MANY_SECRETS }, { "WERR_SECRET_TOO_LONG", WERR_SECRET_TOO_LONG }, @@ -986,6 +909,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_LICENSE_QUOTA_EXCEEDED", WERR_LICENSE_QUOTA_EXCEEDED }, { "WERR_WRONG_TARGET_NAME", WERR_WRONG_TARGET_NAME }, { "WERR_MUTUAL_AUTH_FAILED", WERR_MUTUAL_AUTH_FAILED }, + { "WERR_TIME_SKEW", WERR_TIME_SKEW }, { "WERR_CURRENT_DOMAIN_NOT_ALLOWED", WERR_CURRENT_DOMAIN_NOT_ALLOWED }, { "WERR_INVALID_WINDOW_HANDLE", WERR_INVALID_WINDOW_HANDLE }, { "WERR_INVALID_MENU_HANDLE", WERR_INVALID_MENU_HANDLE }, @@ -1037,6 +961,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NO_SCROLLBARS", WERR_NO_SCROLLBARS }, { "WERR_INVALID_SCROLLBAR_RANGE", WERR_INVALID_SCROLLBAR_RANGE }, { "WERR_INVALID_SHOWWIN_COMMAND", WERR_INVALID_SHOWWIN_COMMAND }, + { "WERR_NO_SYSTEM_RESOURCES", WERR_NO_SYSTEM_RESOURCES }, { "WERR_NONPAGED_SYSTEM_RESOURCES", WERR_NONPAGED_SYSTEM_RESOURCES }, { "WERR_PAGED_SYSTEM_RESOURCES", WERR_PAGED_SYSTEM_RESOURCES }, { "WERR_WORKING_SET_QUOTA", WERR_WORKING_SET_QUOTA }, @@ -1051,6 +976,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_INCORRECT_SIZE", WERR_INCORRECT_SIZE }, { "WERR_SYMLINK_CLASS_DISABLED", WERR_SYMLINK_CLASS_DISABLED }, { "WERR_SYMLINK_NOT_SUPPORTED", WERR_SYMLINK_NOT_SUPPORTED }, + { "WERR_EVENTLOG_FILE_CORRUPT", WERR_EVENTLOG_FILE_CORRUPT }, { "WERR_EVENTLOG_CANT_START", WERR_EVENTLOG_CANT_START }, { "WERR_LOG_FILE_FULL", WERR_LOG_FILE_FULL }, { "WERR_EVENTLOG_FILE_CHANGED", WERR_EVENTLOG_FILE_CHANGED }, @@ -1190,8 +1116,10 @@ static const struct werror_code_struct dos_errs[] = { "WERR_RPC_X_ENUM_VALUE_OUT_OF_RANGE", WERR_RPC_X_ENUM_VALUE_OUT_OF_RANGE }, { "WERR_RPC_X_BYTE_COUNT_TOO_SMALL", WERR_RPC_X_BYTE_COUNT_TOO_SMALL }, { "WERR_RPC_X_BAD_STUB_DATA", WERR_RPC_X_BAD_STUB_DATA }, + { "WERR_INVALID_USER_BUFFER", WERR_INVALID_USER_BUFFER }, { "WERR_UNRECOGNIZED_MEDIA", WERR_UNRECOGNIZED_MEDIA }, { "WERR_NO_TRUST_LSA_SECRET", WERR_NO_TRUST_LSA_SECRET }, + { "WERR_NO_TRUST_SAM_ACCOUNT", WERR_NO_TRUST_SAM_ACCOUNT }, { "WERR_TRUSTED_DOMAIN_FAILURE", WERR_TRUSTED_DOMAIN_FAILURE }, { "WERR_TRUSTED_RELATIONSHIP_FAILURE", WERR_TRUSTED_RELATIONSHIP_FAILURE }, { "WERR_TRUST_FAILURE", WERR_TRUST_FAILURE }, @@ -1199,6 +1127,17 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NETLOGON_NOT_STARTED", WERR_NETLOGON_NOT_STARTED }, { "WERR_ACCOUNT_EXPIRED", WERR_ACCOUNT_EXPIRED }, { "WERR_REDIRECTOR_HAS_OPEN_HANDLES", WERR_REDIRECTOR_HAS_OPEN_HANDLES }, + { "WERR_PRINTER_DRIVER_ALREADY_INSTALLED", WERR_PRINTER_DRIVER_ALREADY_INSTALLED }, + { "WERR_UNKNOWN_PORT", WERR_UNKNOWN_PORT }, + { "WERR_UNKNOWN_PRINTER_DRIVER", WERR_UNKNOWN_PRINTER_DRIVER }, + { "WERR_UNKNOWN_PRINTPROCESSOR", WERR_UNKNOWN_PRINTPROCESSOR }, + { "WERR_INVALID_SEPARATOR_FILE", WERR_INVALID_SEPARATOR_FILE }, + { "WERR_INVALID_PRIORITY", WERR_INVALID_PRIORITY }, + { "WERR_INVALID_PRINTER_NAME", WERR_INVALID_PRINTER_NAME }, + { "WERR_PRINTER_ALREADY_EXISTS", WERR_PRINTER_ALREADY_EXISTS }, + { "WERR_INVALID_PRINTER_COMMAND", WERR_INVALID_PRINTER_COMMAND }, + { "WERR_INVALID_DATATYPE", WERR_INVALID_DATATYPE }, + { "WERR_INVALID_ENVIRONMENT", WERR_INVALID_ENVIRONMENT }, { "WERR_RPC_S_NO_MORE_BINDINGS", WERR_RPC_S_NO_MORE_BINDINGS }, { "WERR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT", WERR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT }, { "WERR_NOLOGON_WORKSTATION_TRUST_ACCOUNT", WERR_NOLOGON_WORKSTATION_TRUST_ACCOUNT }, @@ -1230,9 +1169,14 @@ static const struct werror_code_struct dos_errs[] = { "WERR_EPT_S_CANT_CREATE", WERR_EPT_S_CANT_CREATE }, { "WERR_RPC_S_INVALID_OBJECT", WERR_RPC_S_INVALID_OBJECT }, { "WERR_INVALID_TIME", WERR_INVALID_TIME }, + { "WERR_INVALID_FORM_NAME", WERR_INVALID_FORM_NAME }, + { "WERR_INVALID_FORM_SIZE", WERR_INVALID_FORM_SIZE }, { "WERR_ALREADY_WAITING", WERR_ALREADY_WAITING }, { "WERR_PRINTER_DELETED", WERR_PRINTER_DELETED }, { "WERR_INVALID_PRINTER_STATE", WERR_INVALID_PRINTER_STATE }, + { "WERR_PASSWORD_MUST_CHANGE", WERR_PASSWORD_MUST_CHANGE }, + { "WERR_DOMAIN_CONTROLLER_NOT_FOUND", WERR_DOMAIN_CONTROLLER_NOT_FOUND }, + { "WERR_ACCOUNT_LOCKED_OUT", WERR_ACCOUNT_LOCKED_OUT }, { "WERR_OR_INVALID_OXID", WERR_OR_INVALID_OXID }, { "WERR_OR_INVALID_OID", WERR_OR_INVALID_OID }, { "WERR_OR_INVALID_SET", WERR_OR_INVALID_SET }, @@ -1591,6 +1535,16 @@ static const struct werror_code_struct dos_errs[] = { "WERR_NERR_PASSWORDTOOLONG", WERR_NERR_PASSWORDTOOLONG }, { "WERR_NERR_PASSWORDNOTCOMPLEXENOUGH", WERR_NERR_PASSWORDNOTCOMPLEXENOUGH }, { "WERR_NERR_PASSWORDFILTERERROR", WERR_NERR_PASSWORDFILTERERROR }, + { "WERR_UNKNOWN_PRINT_MONITOR", WERR_UNKNOWN_PRINT_MONITOR }, + { "WERR_PRINTER_DRIVER_IN_USE", WERR_PRINTER_DRIVER_IN_USE }, + { "WERR_SPOOL_FILE_NOT_FOUND", WERR_SPOOL_FILE_NOT_FOUND }, + { "WERR_SPL_NO_STARTDOC", WERR_SPL_NO_STARTDOC }, + { "WERR_SPL_NO_ADDJOB", WERR_SPL_NO_ADDJOB }, + { "WERR_PRINT_PROCESSOR_ALREADY_INSTALLED", WERR_PRINT_PROCESSOR_ALREADY_INSTALLED }, + { "WERR_PRINT_MONITOR_ALREADY_INSTALLED", WERR_PRINT_MONITOR_ALREADY_INSTALLED }, + { "WERR_INVALID_PRINT_MONITOR", WERR_INVALID_PRINT_MONITOR }, + { "WERR_PRINT_MONITOR_IN_USE", WERR_PRINT_MONITOR_IN_USE }, + { "WERR_PRINTER_HAS_JOBS_QUEUED", WERR_PRINTER_HAS_JOBS_QUEUED }, { "WERR_SUCCESS_REBOOT_REQUIRED", WERR_SUCCESS_REBOOT_REQUIRED }, { "WERR_SUCCESS_RESTART_REQUIRED", WERR_SUCCESS_RESTART_REQUIRED }, { "WERR_PRINTER_NOT_FOUND", WERR_PRINTER_NOT_FOUND }, @@ -1643,6 +1597,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_RESOURCE_NOT_PRESENT", WERR_RESOURCE_NOT_PRESENT }, { "WERR_INVALID_OPERATION", WERR_INVALID_OPERATION }, { "WERR_MEDIA_NOT_AVAILABLE", WERR_MEDIA_NOT_AVAILABLE }, + { "WERR_DEVICE_NOT_AVAILABLE", WERR_DEVICE_NOT_AVAILABLE }, { "WERR_REQUEST_REFUSED", WERR_REQUEST_REFUSED }, { "WERR_INVALID_DRIVE_OBJECT", WERR_INVALID_DRIVE_OBJECT }, { "WERR_LIBRARY_FULL", WERR_LIBRARY_FULL }, @@ -2010,10 +1965,19 @@ static const struct werror_code_struct dos_errs[] = { "WERR_FRS_ERR_INVALID_SERVICE_PARAMETER", WERR_FRS_ERR_INVALID_SERVICE_PARAMETER }, { "WERR_DS_NOT_INSTALLED", WERR_DS_NOT_INSTALLED }, { "WERR_DS_MEMBERSHIP_EVALUATED_LOCALLY", WERR_DS_MEMBERSHIP_EVALUATED_LOCALLY }, + { "WERR_DS_NO_ATTRIBUTE_OR_VALUE", WERR_DS_NO_ATTRIBUTE_OR_VALUE }, + { "WERR_DS_ATTRIBUTE_TYPE_UNDEFINED", WERR_DS_ATTRIBUTE_TYPE_UNDEFINED }, + { "WERR_DS_ATTRIBUTE_OR_VALUE_EXISTS", WERR_DS_ATTRIBUTE_OR_VALUE_EXISTS }, + { "WERR_DS_BUSY", WERR_DS_BUSY }, + { "WERR_DS_UNAVAILABLE", WERR_DS_UNAVAILABLE }, { "WERR_DS_NO_RIDS_ALLOCATED", WERR_DS_NO_RIDS_ALLOCATED }, { "WERR_DS_NO_MORE_RIDS", WERR_DS_NO_MORE_RIDS }, { "WERR_DS_INCORRECT_ROLE_OWNER", WERR_DS_INCORRECT_ROLE_OWNER }, { "WERR_DS_RIDMGR_INIT_ERROR", WERR_DS_RIDMGR_INIT_ERROR }, + { "WERR_DS_OBJ_CLASS_VIOLATION", WERR_DS_OBJ_CLASS_VIOLATION }, + { "WERR_DS_CANT_ON_NON_LEAF", WERR_DS_CANT_ON_NON_LEAF }, + { "WERR_DS_CANT_ON_RDN", WERR_DS_CANT_ON_RDN }, + { "WERR_DS_CANT_MOD_OBJ_CLASS", WERR_DS_CANT_MOD_OBJ_CLASS }, { "WERR_DS_CROSS_DOM_MOVE_ERROR", WERR_DS_CROSS_DOM_MOVE_ERROR }, { "WERR_DS_GC_NOT_AVAILABLE", WERR_DS_GC_NOT_AVAILABLE }, { "WERR_SHARED_POLICY", WERR_SHARED_POLICY }, @@ -2021,10 +1985,32 @@ static const struct werror_code_struct dos_errs[] = { "WERR_POLICY_ONLY_IN_DS", WERR_POLICY_ONLY_IN_DS }, { "WERR_PROMOTION_ACTIVE", WERR_PROMOTION_ACTIVE }, { "WERR_NO_PROMOTION_ACTIVE", WERR_NO_PROMOTION_ACTIVE }, + { "WERR_DS_OPERATIONS_ERROR", WERR_DS_OPERATIONS_ERROR }, + { "WERR_DS_PROTOCOL_ERROR", WERR_DS_PROTOCOL_ERROR }, + { "WERR_DS_TIMELIMIT_EXCEEDED", WERR_DS_TIMELIMIT_EXCEEDED }, { "WERR_DS_SIZELIMIT_EXCEEDED", WERR_DS_SIZELIMIT_EXCEEDED }, + { "WERR_DS_ADMIN_LIMIT_EXCEEDED", WERR_DS_ADMIN_LIMIT_EXCEEDED }, + { "WERR_DS_COMPARE_FALSE", WERR_DS_COMPARE_FALSE }, + { "WERR_DS_COMPARE_TRUE", WERR_DS_COMPARE_TRUE }, + { "WERR_DS_AUTH_METHOD_NOT_SUPPORTED", WERR_DS_AUTH_METHOD_NOT_SUPPORTED }, + { "WERR_DS_STRONG_AUTH_REQUIRED", WERR_DS_STRONG_AUTH_REQUIRED }, + { "WERR_DS_INAPPROPRIATE_AUTH", WERR_DS_INAPPROPRIATE_AUTH }, { "WERR_DS_AUTH_UNKNOWN", WERR_DS_AUTH_UNKNOWN }, + { "WERR_DS_REFERRAL", WERR_DS_REFERRAL }, + { "WERR_DS_UNAVAILABLE_CRIT_EXTENSION", WERR_DS_UNAVAILABLE_CRIT_EXTENSION }, + { "WERR_DS_CONFIDENTIALITY_REQUIRED", WERR_DS_CONFIDENTIALITY_REQUIRED }, + { "WERR_DS_INAPPROPRIATE_MATCHING", WERR_DS_INAPPROPRIATE_MATCHING }, + { "WERR_DS_CONSTRAINT_VIOLATION", WERR_DS_CONSTRAINT_VIOLATION }, + { "WERR_DS_NO_SUCH_OBJECT", WERR_DS_NO_SUCH_OBJECT }, + { "WERR_DS_ALIAS_PROBLEM", WERR_DS_ALIAS_PROBLEM }, + { "WERR_DS_INVALID_DN_SYNTAX", WERR_DS_INVALID_DN_SYNTAX }, { "WERR_DS_IS_LEAF", WERR_DS_IS_LEAF }, + { "WERR_DS_ALIAS_DEREF_PROBLEM", WERR_DS_ALIAS_DEREF_PROBLEM }, + { "WERR_DS_UNWILLING_TO_PERFORM", WERR_DS_UNWILLING_TO_PERFORM }, + { "WERR_DS_LOOP_DETECT", WERR_DS_LOOP_DETECT }, + { "WERR_DS_NAMING_VIOLATION", WERR_DS_NAMING_VIOLATION }, { "WERR_DS_OBJECT_RESULTS_TOO_LARGE", WERR_DS_OBJECT_RESULTS_TOO_LARGE }, + { "WERR_DS_AFFECTS_MULTIPLE_DSAS", WERR_DS_AFFECTS_MULTIPLE_DSAS }, { "WERR_DS_SERVER_DOWN", WERR_DS_SERVER_DOWN }, { "WERR_DS_LOCAL_ERROR", WERR_DS_LOCAL_ERROR }, { "WERR_DS_ENCODING_ERROR", WERR_DS_ENCODING_ERROR }, @@ -2042,6 +2028,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_ADD_REPLICA_INHIBITED", WERR_DS_ADD_REPLICA_INHIBITED }, { "WERR_DS_ATT_NOT_DEF_IN_SCHEMA", WERR_DS_ATT_NOT_DEF_IN_SCHEMA }, { "WERR_DS_MAX_OBJ_SIZE_EXCEEDED", WERR_DS_MAX_OBJ_SIZE_EXCEEDED }, + { "WERR_DS_OBJ_STRING_NAME_EXISTS", WERR_DS_OBJ_STRING_NAME_EXISTS }, { "WERR_DS_NO_RDN_DEFINED_IN_SCHEMA", WERR_DS_NO_RDN_DEFINED_IN_SCHEMA }, { "WERR_DS_RDN_DOESNT_MATCH_SCHEMA", WERR_DS_RDN_DOESNT_MATCH_SCHEMA }, { "WERR_DS_NO_REQUESTED_ATTS_FOUND", WERR_DS_NO_REQUESTED_ATTS_FOUND }, @@ -2056,6 +2043,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_ATT_NOT_DEF_FOR_CLASS", WERR_DS_ATT_NOT_DEF_FOR_CLASS }, { "WERR_DS_ATT_ALREADY_EXISTS", WERR_DS_ATT_ALREADY_EXISTS }, { "WERR_DS_CANT_ADD_ATT_VALUES", WERR_DS_CANT_ADD_ATT_VALUES }, + { "WERR_DS_SINGLE_VALUE_CONSTRAINT", WERR_DS_SINGLE_VALUE_CONSTRAINT }, { "WERR_DS_RANGE_CONSTRAINT", WERR_DS_RANGE_CONSTRAINT }, { "WERR_DS_ATT_VAL_ALREADY_EXISTS", WERR_DS_ATT_VAL_ALREADY_EXISTS }, { "WERR_DS_CANT_REM_MISSING_ATT", WERR_DS_CANT_REM_MISSING_ATT }, @@ -2067,6 +2055,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_PARENT_IS_AN_ALIAS", WERR_DS_PARENT_IS_AN_ALIAS }, { "WERR_DS_CANT_MIX_MASTER_AND_REPS", WERR_DS_CANT_MIX_MASTER_AND_REPS }, { "WERR_DS_CHILDREN_EXIST", WERR_DS_CHILDREN_EXIST }, + { "WERR_DS_OBJ_NOT_FOUND", WERR_DS_OBJ_NOT_FOUND }, { "WERR_DS_ALIASED_OBJ_MISSING", WERR_DS_ALIASED_OBJ_MISSING }, { "WERR_DS_BAD_NAME_SYNTAX", WERR_DS_BAD_NAME_SYNTAX }, { "WERR_DS_ALIAS_POINTS_TO_ALIAS", WERR_DS_ALIAS_POINTS_TO_ALIAS }, @@ -2074,8 +2063,10 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_OUT_OF_SCOPE", WERR_DS_OUT_OF_SCOPE }, { "WERR_DS_OBJECT_BEING_REMOVED", WERR_DS_OBJECT_BEING_REMOVED }, { "WERR_DS_CANT_DELETE_DSA_OBJ", WERR_DS_CANT_DELETE_DSA_OBJ }, + { "WERR_DS_GENERIC_ERROR", WERR_DS_GENERIC_ERROR }, { "WERR_DS_DSA_MUST_BE_INT_MASTER", WERR_DS_DSA_MUST_BE_INT_MASTER }, { "WERR_DS_CLASS_NOT_DSA", WERR_DS_CLASS_NOT_DSA }, + { "WERR_DS_INSUFF_ACCESS_RIGHTS", WERR_DS_INSUFF_ACCESS_RIGHTS }, { "WERR_DS_ILLEGAL_SUPERIOR", WERR_DS_ILLEGAL_SUPERIOR }, { "WERR_DS_ATTRIBUTE_OWNED_BY_SAM", WERR_DS_ATTRIBUTE_OWNED_BY_SAM }, { "WERR_DS_NAME_TOO_MANY_PARTS", WERR_DS_NAME_TOO_MANY_PARTS }, @@ -2144,7 +2135,11 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_MISSING_EXPECTED_ATT", WERR_DS_MISSING_EXPECTED_ATT }, { "WERR_DS_NCNAME_MISSING_CR_REF", WERR_DS_NCNAME_MISSING_CR_REF }, { "WERR_DS_SECURITY_CHECKING_ERROR", WERR_DS_SECURITY_CHECKING_ERROR }, + { "WERR_DS_SCHEMA_NOT_LOADED", WERR_DS_SCHEMA_NOT_LOADED }, + { "WERR_DS_SCHEMA_ALLOC_FAILED", WERR_DS_SCHEMA_ALLOC_FAILED }, + { "WERR_DS_ATT_SCHEMA_REQ_SYNTAX", WERR_DS_ATT_SCHEMA_REQ_SYNTAX }, { "WERR_DS_GCVERIFY_ERROR", WERR_DS_GCVERIFY_ERROR }, + { "WERR_DS_DRA_SCHEMA_MISMATCH", WERR_DS_DRA_SCHEMA_MISMATCH }, { "WERR_DS_CANT_FIND_DSA_OBJ", WERR_DS_CANT_FIND_DSA_OBJ }, { "WERR_DS_CANT_FIND_EXPECTED_NC", WERR_DS_CANT_FIND_EXPECTED_NC }, { "WERR_DS_CANT_FIND_NC_IN_CACHE", WERR_DS_CANT_FIND_NC_IN_CACHE }, @@ -2163,17 +2158,26 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_MISSING_FSMO_SETTINGS", WERR_DS_MISSING_FSMO_SETTINGS }, { "WERR_DS_UNABLE_TO_SURRENDER_ROLES", WERR_DS_UNABLE_TO_SURRENDER_ROLES }, { "WERR_DS_DRA_GENERIC", WERR_DS_DRA_GENERIC }, + { "WERR_DS_DRA_INVALID_PARAMETER", WERR_DS_DRA_INVALID_PARAMETER }, { "WERR_DS_DRA_BUSY", WERR_DS_DRA_BUSY }, + { "WERR_DS_DRA_BAD_DN", WERR_DS_DRA_BAD_DN }, + { "WERR_DS_DRA_BAD_NC", WERR_DS_DRA_BAD_NC }, { "WERR_DS_DRA_DN_EXISTS", WERR_DS_DRA_DN_EXISTS }, + { "WERR_DS_DRA_INTERNAL_ERROR", WERR_DS_DRA_INTERNAL_ERROR }, { "WERR_DS_DRA_INCONSISTENT_DIT", WERR_DS_DRA_INCONSISTENT_DIT }, { "WERR_DS_DRA_CONNECTION_FAILED", WERR_DS_DRA_CONNECTION_FAILED }, { "WERR_DS_DRA_BAD_INSTANCE_TYPE", WERR_DS_DRA_BAD_INSTANCE_TYPE }, + { "WERR_DS_DRA_OUT_OF_MEM", WERR_DS_DRA_OUT_OF_MEM }, { "WERR_DS_DRA_MAIL_PROBLEM", WERR_DS_DRA_MAIL_PROBLEM }, { "WERR_DS_DRA_REF_ALREADY_EXISTS", WERR_DS_DRA_REF_ALREADY_EXISTS }, { "WERR_DS_DRA_REF_NOT_FOUND", WERR_DS_DRA_REF_NOT_FOUND }, { "WERR_DS_DRA_OBJ_IS_REP_SOURCE", WERR_DS_DRA_OBJ_IS_REP_SOURCE }, + { "WERR_DS_DRA_DB_ERROR", WERR_DS_DRA_DB_ERROR }, + { "WERR_DS_DRA_NO_REPLICA", WERR_DS_DRA_NO_REPLICA }, + { "WERR_DS_DRA_ACCESS_DENIED", WERR_DS_DRA_ACCESS_DENIED }, { "WERR_DS_DRA_NOT_SUPPORTED", WERR_DS_DRA_NOT_SUPPORTED }, { "WERR_DS_DRA_RPC_CANCELLED", WERR_DS_DRA_RPC_CANCELLED }, + { "WERR_DS_DRA_SOURCE_DISABLED", WERR_DS_DRA_SOURCE_DISABLED }, { "WERR_DS_DRA_SINK_DISABLED", WERR_DS_DRA_SINK_DISABLED }, { "WERR_DS_DRA_NAME_COLLISION", WERR_DS_DRA_NAME_COLLISION }, { "WERR_DS_DRA_SOURCE_REINSTALLED", WERR_DS_DRA_SOURCE_REINSTALLED }, @@ -2239,6 +2243,7 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_HAVE_PRIMARY_MEMBERS", WERR_DS_HAVE_PRIMARY_MEMBERS }, { "WERR_DS_STRING_SD_CONVERSION_FAILED", WERR_DS_STRING_SD_CONVERSION_FAILED }, { "WERR_DS_NAMING_MASTER_GC", WERR_DS_NAMING_MASTER_GC }, + { "WERR_DS_DNS_LOOKUP_FAILURE", WERR_DS_DNS_LOOKUP_FAILURE }, { "WERR_DS_COULDNT_UPDATE_SPNS", WERR_DS_COULDNT_UPDATE_SPNS }, { "WERR_DS_CANT_RETRIEVE_SD", WERR_DS_CANT_RETRIEVE_SD }, { "WERR_DS_KEY_NOT_UNIQUE", WERR_DS_KEY_NOT_UNIQUE }, @@ -2308,6 +2313,8 @@ static const struct werror_code_struct dos_errs[] = { "WERR_DS_DIFFERENT_REPL_EPOCHS", WERR_DS_DIFFERENT_REPL_EPOCHS }, { "WERR_DS_DRS_EXTENSIONS_CHANGED", WERR_DS_DRS_EXTENSIONS_CHANGED }, { "WERR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR", WERR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR }, + { "WERR_DS_NO_MSDS_INTID", WERR_DS_NO_MSDS_INTID }, + { "WERR_DS_DUP_MSDS_INTID", WERR_DS_DUP_MSDS_INTID }, { "WERR_DS_EXISTS_IN_RDNATTID", WERR_DS_EXISTS_IN_RDNATTID }, { "WERR_DS_AUTHORIZATION_FAILED", WERR_DS_AUTHORIZATION_FAILED }, { "WERR_DS_INVALID_SCRIPT", WERR_DS_INVALID_SCRIPT }, @@ -2661,25 +2668,6 @@ struct werror_str_struct { }; const struct werror_str_struct dos_err_strs[] = { - { WERR_OK, "Success" }, - { WERR_ACCESS_DENIED, "Access is denied" }, - { WERR_NOT_SUPPORTED, "Not supported" }, - { WERR_NO_LOGON_SERVERS, "No logon servers found" }, - { WERR_NO_SUCH_LOGON_SESSION, "No such logon session" }, - { WERR_DOMAIN_CONTROLLER_NOT_FOUND, "A domain controller could not be found" }, - { WERR_LOGON_FAILURE, "Invalid logon credentials" }, - { WERR_PASSWORD_MUST_CHANGE, "The password must be changed" }, - { WERR_ACCOUNT_LOCKED_OUT, "Account locked out" }, - { WERR_TIME_SKEW, "Time difference between client and server" }, - { WERR_PASSWORD_RESTRICTION, "Password does not meet restrictions" }, - { WERR_NONE_MAPPED, "Could not map names to SIDs" }, - { WERR_NO_SUCH_USER, "No such User" }, - { WERR_GROUP_EXISTS, "Group already exists" }, - { WERR_NO_SUCH_GROUP, "No such Group" }, - { WERR_INVALID_PRIMARY_GROUP, "The account's primary group is invalid" }, - { WERR_DS_DRA_BAD_DN, "An invalid distinguished name was specified for this replication" }, - { WERR_DS_DRA_BAD_NC, "An invalid naming context was specified for this replication operation" }, - { WERR_WRONG_PASSWORD, "The current password is incorrect" }, /***************************************************************************** Auto-generated Win32 error from: http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx diff --git a/libcli/util/werror.h b/libcli/util/werror.h index d4c6805160f..1fc2afbd15f 100644 --- a/libcli/util/werror.h +++ b/libcli/util/werror.h @@ -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) |