diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/doserr.h | 4 | ||||
-rwxr-xr-x | source3/include/rpc_spoolss.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h index ee6a27ee32..cfc94a359a 100644 --- a/source3/include/doserr.h +++ b/source3/include/doserr.h @@ -136,11 +136,15 @@ /* 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(0) +#define WERR_ACCESS_DENIED W_ERROR(5) #define WERR_BADFID W_ERROR(6) +#define WERR_BADFUNC W_ERROR(1) #define WERR_INSUFFICIENT_BUFFER W_ERROR(122) +#define WERR_INVALID_PARAM W_ERROR(87) #define WERR_NOMEM W_ERROR(8) #define WERR_INVALID_NAME W_ERROR(123) #define WERR_UNKNOWN_LEVEL W_ERROR(124) +#define WERR_NO_MORE_ITEMS W_ERROR(259) #define WERR_UNKNOWN_PRINTER_DRIVER W_ERROR(1797) #define WERR_INVALID_PRINTER_NAME W_ERROR(1801) #define WERR_INVALID_DATATYPE W_ERROR(1804) diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index 4dba97b8ce..bf58e1cce7 100755 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -629,7 +629,7 @@ SPOOL_Q_STARTDOCPRINTER; typedef struct spool_r_startdocprinter { uint32 jobid; - NTSTATUS status; + WERROR status; } SPOOL_R_STARTDOCPRINTER; @@ -736,7 +736,7 @@ typedef struct spool_r_rfnpcnex { uint32 info_ptr; SPOOL_NOTIFY_INFO info; - NTSTATUS status; + WERROR status; } SPOOL_R_RFNPCNEX; @@ -870,7 +870,7 @@ typedef struct spool_r_enumprinters NEW_BUFFER *buffer; uint32 needed; /* bytes needed */ uint32 returned; /* number of printers */ - NTSTATUS status; + WERROR status; } SPOOL_R_ENUMPRINTERS; @@ -899,7 +899,7 @@ typedef struct spool_r_getprinter { NEW_BUFFER *buffer; uint32 needed; - NTSTATUS status; + WERROR status; } SPOOL_R_GETPRINTER; typedef struct driver_info_1 @@ -984,7 +984,7 @@ typedef struct spool_r_getprinterdriver2 uint32 needed; uint32 servermajorversion; uint32 serverminorversion; - NTSTATUS status; + WERROR status; } SPOOL_R_GETPRINTERDRIVER2; |