From 91d3d3c6a23ffba755ac4b72d668fb247340fc24 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Thu, 17 Sep 2009 05:08:34 +0300 Subject: w32err: Sorting error codes in ascending order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- libcli/util/werror.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libcli') diff --git a/libcli/util/werror.h b/libcli/util/werror.h index feda7fb489..f9a9e01911 100644 --- a/libcli/util/werror.h +++ b/libcli/util/werror.h @@ -100,19 +100,19 @@ typedef uint32_t WERROR; #define WERR_UNKNOWN_LEVEL W_ERROR(124) #define WERR_OBJECT_PATH_INVALID W_ERROR(161) #define WERR_ALREADY_EXISTS W_ERROR(183) -#define WERR_NO_MORE_ITEMS W_ERROR(259) #define WERR_MORE_DATA W_ERROR(234) -#define WERR_INVALID_OWNER W_ERROR(1307) +#define WERR_NO_MORE_ITEMS W_ERROR(259) +#define WERR_STATUS_MORE_ENTRIES W_ERROR(0x0105) #define WERR_IO_PENDING W_ERROR(997) #define WERR_CAN_NOT_COMPLETE W_ERROR(1003) #define WERR_INVALID_FLAGS W_ERROR(1004) #define WERR_REG_CORRUPT W_ERROR(1015) #define WERR_REG_IO_FAILURE W_ERROR(1016) #define WERR_REG_FILE_INVALID W_ERROR(1017) -#define WERR_NO_SUCH_SERVICE W_ERROR(1060) #define WERR_INVALID_SERVICE_CONTROL W_ERROR(1052) #define WERR_SERVICE_ALREADY_RUNNING W_ERROR(1056) #define WERR_SERVICE_DISABLED W_ERROR(1058) +#define WERR_NO_SUCH_SERVICE W_ERROR(1060) #define WERR_SERVICE_MARKED_FOR_DELETE W_ERROR(1072) #define WERR_SERVICE_EXISTS W_ERROR(1073) #define WERR_SERVICE_NEVER_STARTED W_ERROR(1077) @@ -122,8 +122,9 @@ typedef uint32_t WERROR; #define WERR_INVALID_COMPUTERNAME W_ERROR(1210) #define WERR_INVALID_DOMAINNAME W_ERROR(1212) #define WERR_NOT_AUTHENTICATED W_ERROR(1244) -#define WERR_UNKNOWN_REVISION W_ERROR(1305) #define WERR_MACHINE_LOCKED W_ERROR(1271) +#define WERR_UNKNOWN_REVISION W_ERROR(1305) +#define WERR_INVALID_OWNER W_ERROR(1307) #define WERR_REVISION_MISMATCH W_ERROR(1306) #define WERR_INVALID_OWNER W_ERROR(1307) #define WERR_INVALID_PRIMARY_GROUP W_ERROR(1308) @@ -140,18 +141,17 @@ typedef uint32_t WERROR; #define WERR_WRONG_PASSWORD W_ERROR(1323) #define WERR_PASSWORD_RESTRICTION W_ERROR(1325) #define WERR_LOGON_FAILURE W_ERROR(1326) -#define WERR_NO_SUCH_DOMAIN W_ERROR(1355) #define WERR_NONE_MAPPED W_ERROR(1332) #define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338) #define WERR_INVALID_DOMAIN_STATE W_ERROR(1353) #define WERR_INVALID_DOMAIN_ROLE W_ERROR(1354) #define WERR_NO_SUCH_DOMAIN W_ERROR(1355) -#define WERR_NO_SYSTEM_RESOURCES W_ERROR(1450) #define WERR_SPECIAL_ACCOUNT W_ERROR(1371) #define WERR_NO_SUCH_ALIAS W_ERROR(1376) #define WERR_MEMBER_IN_ALIAS W_ERROR(1378) #define WERR_ALIAS_EXISTS W_ERROR(1379) #define WERR_TIME_SKEW W_ERROR(1398) +#define WERR_NO_SYSTEM_RESOURCES W_ERROR(1450) #define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(1500) #define WERR_SERVER_UNAVAILABLE W_ERROR(1722) #define WERR_INVALID_USER_BUFFER W_ERROR(1784) @@ -164,7 +164,6 @@ typedef uint32_t WERROR; #define WERR_DOMAIN_CONTROLLER_NOT_FOUND W_ERROR(2453) /* Error code is wrong, should be 0x00000774 (1908)*/ #define WERR_DEVICE_NOT_AVAILABLE W_ERROR(4319) -#define WERR_STATUS_MORE_ENTRIES W_ERROR(0x0105) #define WERR_PRINTER_DRIVER_ALREADY_INSTALLED W_ERROR(ERRdriveralreadyinstalled) #define WERR_UNKNOWN_PORT W_ERROR(ERRunknownprinterport) @@ -191,9 +190,9 @@ typedef uint32_t WERROR; #define WERR_NO_SHUTDOWN_IN_PROGRESS W_ERROR(0x45c) #define WERR_SHUTDOWN_ALREADY_IN_PROGRESS W_ERROR(0x45b) + /* Configuration Manager Errors */ /* Basically Win32 errors meanings are specific to the \ntsvcs pipe */ - #define WERR_CM_INVALID_POINTER W_ERROR(3) #define WERR_CM_BUFFER_SMALL W_ERROR(26) #define WERR_CM_NO_MORE_HW_PROFILES W_ERROR(35) @@ -292,13 +291,12 @@ typedef uint32_t WERROR; #define WERR_DS_NO_MSDS_INTID W_ERROR(0x00002194) #define WERR_DS_DUP_MSDS_INTID W_ERROR(0x00002195) - -/* RPC/COM/OLE HRESULT error codes */ /* FRS errors */ #define WERR_FRS_INSUFFICIENT_PRIV W_ERROR(FRS_ERR_BASE+7) #define WERR_FRS_SYSVOL_IS_BUSY W_ERROR(FRS_ERR_BASE+15) #define WERR_FRS_INVALID_SERVICE_PARAMETER W_ERROR(FRS_ERR_BASE+17) +/* RPC/COM/OLE HRESULT error codes */ /* RPC errors */ #define WERR_RPC_E_INVALID_HEADER W_ERROR(0x80010111) #define WERR_RPC_E_REMOTE_DISABLED W_ERROR(0x8001011c) -- cgit