diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-09-17 05:53:40 +0300 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-17 07:18:41 +0200 |
commit | 3f835eb9478b30bb91593c2a0073b72e696076f2 (patch) | |
tree | dbb6212b8892480d25bc115586ede8144a203490 | |
parent | 91d3d3c6a23ffba755ac4b72d668fb247340fc24 (diff) | |
download | samba-3f835eb9478b30bb91593c2a0073b72e696076f2.tar.gz samba-3f835eb9478b30bb91593c2a0073b72e696076f2.tar.bz2 samba-3f835eb9478b30bb91593c2a0073b72e696076f2.zip |
w32err: Re-define errors with numeric values
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | libcli/util/werror.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/libcli/util/werror.h b/libcli/util/werror.h index f9a9e01911..0ff51eb978 100644 --- a/libcli/util/werror.h +++ b/libcli/util/werror.h @@ -165,28 +165,28 @@ typedef uint32_t WERROR; #define WERR_DEVICE_NOT_AVAILABLE W_ERROR(4319) -#define WERR_PRINTER_DRIVER_ALREADY_INSTALLED W_ERROR(ERRdriveralreadyinstalled) -#define WERR_UNKNOWN_PORT W_ERROR(ERRunknownprinterport) -#define WERR_UNKNOWN_PRINTER_DRIVER W_ERROR(ERRunknownprinterdriver) -#define WERR_UNKNOWN_PRINTPROCESSOR W_ERROR(ERRunknownprintprocessor) -#define WERR_INVALID_SEPARATOR_FILE W_ERROR(ERRinvalidseparatorfile) -#define WERR_INVALID_PRIORITY W_ERROR(ERRinvalidjobpriority) -#define WERR_INVALID_PRINTER_NAME W_ERROR(ERRinvalidprintername) -#define WERR_PRINTER_ALREADY_EXISTS W_ERROR(ERRprinteralreadyexists) -#define WERR_INVALID_PRINTER_COMMAND W_ERROR(ERRinvalidprintercommand) -#define WERR_INVALID_DATATYPE W_ERROR(ERRinvaliddatatype) -#define WERR_INVALID_ENVIRONMENT W_ERROR(ERRinvalidenvironment) +#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(ERRunknownprintmonitor) -#define WERR_PRINTER_DRIVER_IN_USE W_ERROR(ERRprinterdriverinuse) -#define WERR_SPOOL_FILE_NOT_FOUND W_ERROR(ERRspoolfilenotfound) -#define WERR_SPL_NO_STARTDOC W_ERROR(ERRnostartdoc) -#define WERR_SPL_NO_ADDJOB W_ERROR(ERRnoaddjob) -#define WERR_PRINT_PROCESSOR_ALREADY_INSTALLED W_ERROR(ERRprintprocessoralreadyinstalled) -#define WERR_PRINT_MONITOR_ALREADY_INSTALLED W_ERROR(ERRprintmonitoralreadyinstalled) -#define WERR_INVALID_PRINT_MONITOR W_ERROR(ERRinvalidprintmonitor) -#define WERR_PRINT_MONITOR_IN_USE W_ERROR(ERRprintmonitorinuse) -#define WERR_PRINTER_HAS_JOBS_QUEUED W_ERROR(ERRprinterhasjobsqueued) +#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(0x45c) #define WERR_SHUTDOWN_ALREADY_IN_PROGRESS W_ERROR(0x45b) @@ -208,31 +208,31 @@ typedef uint32_t WERROR; #define MAX_NERR (NERR_BASE+899) #endif -#define WERR_BUF_TOO_SMALL W_ERROR(NERR_BASE+23) -#define WERR_ALREADY_SHARED W_ERROR(2118) -#define WERR_JOB_NOT_FOUND W_ERROR(NERR_BASE+51) -#define WERR_DEST_NOT_FOUND W_ERROR(NERR_BASE+52) -#define WERR_GROUP_NOT_FOUND W_ERROR(NERR_BASE+120) -#define WERR_USER_NOT_FOUND W_ERROR(NERR_BASE+121) -#define WERR_USER_EXISTS W_ERROR(NERR_BASE+124) -#define WERR_NOT_CONNECTED W_ERROR(2250) -#define WERR_NAME_NOT_FOUND W_ERROR(2273) -#define WERR_NET_NAME_NOT_FOUND W_ERROR(NERR_BASE+210) -#define WERR_SESSION_NOT_FOUND W_ERROR(2312) -#define WERR_DEVICE_NOT_SHARED W_ERROR(NERR_BASE+211) -#define WERR_FID_NOT_FOUND W_ERROR(2314) -#define WERR_NOT_LOCAL_DOMAIN W_ERROR(NERR_BASE+220) -#define WERR_DC_NOT_FOUND W_ERROR(NERR_BASE+353) -#define WERR_TIME_DIFF_AT_DC W_ERROR(2457) -#define WERR_DFS_NO_SUCH_VOL W_ERROR(NERR_BASE+562) -#define WERR_DFS_NO_SUCH_SHARE W_ERROR(NERR_BASE+565) -#define WERR_DFS_NO_SUCH_SERVER W_ERROR(NERR_BASE+573) -#define WERR_DFS_INTERNAL_ERROR W_ERROR(NERR_BASE+590) -#define WERR_DFS_CANT_CREATE_JUNCT W_ERROR(NERR_BASE+569) -#define WERR_SETUP_ALREADY_JOINED W_ERROR(NERR_BASE+591) -#define WERR_SETUP_NOT_JOINED W_ERROR(NERR_BASE+592) -#define WERR_SETUP_DOMAIN_CONTROLLER W_ERROR(NERR_BASE+593) -#define WERR_DEFAULT_JOIN_REQUIRED W_ERROR(NERR_BASE+594) +#define WERR_BUF_TOO_SMALL W_ERROR(0x0000084B) +#define WERR_ALREADY_SHARED W_ERROR(0x00000846) +#define WERR_JOB_NOT_FOUND W_ERROR(0x00000867) +#define WERR_DEST_NOT_FOUND W_ERROR(0x00000868) +#define WERR_GROUP_NOT_FOUND W_ERROR(0x000008AC) +#define WERR_USER_NOT_FOUND W_ERROR(0x000008AD) +#define WERR_USER_EXISTS W_ERROR(0x000008B0) +#define WERR_NOT_CONNECTED W_ERROR(0x000008CA) +#define WERR_NAME_NOT_FOUND W_ERROR(0x000008E1) +#define WERR_NET_NAME_NOT_FOUND W_ERROR(0x00000906) +#define WERR_SESSION_NOT_FOUND W_ERROR(0x00000908) +#define WERR_DEVICE_NOT_SHARED W_ERROR(0x00000907) +#define WERR_FID_NOT_FOUND W_ERROR(0x0000090A) +#define WERR_NOT_LOCAL_DOMAIN W_ERROR(0x00000910) +#define WERR_DC_NOT_FOUND W_ERROR(0x00000995) +#define WERR_TIME_DIFF_AT_DC W_ERROR(0x00000999) +#define WERR_DFS_NO_SUCH_VOL W_ERROR(0x00000A66) +#define WERR_DFS_NO_SUCH_SHARE W_ERROR(0x00000A69) +#define WERR_DFS_NO_SUCH_SERVER W_ERROR(0x00000A71) +#define WERR_DFS_INTERNAL_ERROR W_ERROR(0x00000A82) +#define WERR_DFS_CANT_CREATE_JUNCT W_ERROR(0x00000A6D) +#define WERR_SETUP_ALREADY_JOINED W_ERROR(0x00000A83) +#define WERR_SETUP_NOT_JOINED W_ERROR(0x00000A84) +#define WERR_SETUP_DOMAIN_CONTROLLER W_ERROR(0x00000A85) +#define WERR_DEFAULT_JOIN_REQUIRED W_ERROR(0x00000A86) /* DS errors */ #define WERR_DS_NO_ATTRIBUTE_OR_VALUE W_ERROR(0x0000200A) |