summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-03 10:38:13 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-03 10:38:13 +0000
commitfbc1f326f445a2826a10155fe0122c779bb1f80e (patch)
treefe1f9bae2b3f275071654f4e789991df073d9f0d /source3/include
parent2771d77c6025dd7a1b5fbf2c0f863e334655b323 (diff)
downloadsamba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.gz
samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.bz2
samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.zip
more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/doserr.h4
-rwxr-xr-xsource3/include/rpc_spoolss.h10
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;