summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-03-13 19:34:04 +0000
committerJean-François Micouleau <jfm@samba.org>2000-03-13 19:34:04 +0000
commitc5fbb293a8fe2cc2251ffa0d46c79a2d247f7d9a (patch)
tree49f3aa751f9f7b3177f75e5e5c585a35b8381247 /source3/include
parent7d2a8cd4c621e6a13476b994f872661390cb6787 (diff)
downloadsamba-c5fbb293a8fe2cc2251ffa0d46c79a2d247f7d9a.tar.gz
samba-c5fbb293a8fe2cc2251ffa0d46c79a2d247f7d9a.tar.bz2
samba-c5fbb293a8fe2cc2251ffa0d46c79a2d247f7d9a.zip
oops ! forgot smb.h in last commit
added info level 1 parsing code for addprinter(ex) J.F. (This used to be commit 4847f7b17b2d23e4efd4e7cae6bfcfc2319b9409)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
-rwxr-xr-xsource3/include/rpc_spoolss.h12
-rw-r--r--source3/include/smb.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 1d8bf77020..d96d2f77c0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2429,6 +2429,7 @@ BOOL spoolss_io_q_enumforms(char *desc, SPOOL_Q_ENUMFORMS *q_u, prs_struct *ps,
BOOL new_spoolss_io_r_enumforms(char *desc, SPOOL_R_ENUMFORMS *r_u, prs_struct *ps, int depth);
BOOL new_spoolss_io_r_enumports(char *desc, SPOOL_R_ENUMPORTS *r_u, prs_struct *ps, int depth);
BOOL spoolss_io_q_enumports(char *desc, SPOOL_Q_ENUMPORTS *q_u, prs_struct *ps, int depth);
+BOOL spool_io_printer_info_level_1(char *desc, SPOOL_PRINTER_INFO_LEVEL_1 *il, prs_struct *ps, int depth);
BOOL spool_io_printer_info_level_2(char *desc, SPOOL_PRINTER_INFO_LEVEL_2 *il, prs_struct *ps, int depth);
BOOL spool_io_printer_info_level(char *desc, SPOOL_PRINTER_INFO_LEVEL *il, prs_struct *ps, int depth);
BOOL spoolss_io_q_addprinterex(char *desc, SPOOL_Q_ADDPRINTEREX *q_u, prs_struct *ps, int depth);
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index aef9afd590..0777a602b1 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -1192,6 +1192,17 @@ typedef struct spool_r_enumforms
SPOOL_R_ENUMFORMS;
+typedef struct spool_printer_info_level_1
+{
+ uint32 flags;
+ uint32 description_ptr;
+ uint32 name_ptr;
+ uint32 comment_ptr;
+ UNISTR2 description;
+ UNISTR2 name;
+ UNISTR2 comment;
+} SPOOL_PRINTER_INFO_LEVEL_1;
+
typedef struct spool_printer_info_level_2
{
uint32 servername_ptr;
@@ -1234,6 +1245,7 @@ typedef struct spool_printer_info_level
{
uint32 level;
uint32 info_ptr;
+ SPOOL_PRINTER_INFO_LEVEL_1 *info_1;
SPOOL_PRINTER_INFO_LEVEL_2 *info_2;
}
SPOOL_PRINTER_INFO_LEVEL;
diff --git a/source3/include/smb.h b/source3/include/smb.h
index a179a7808e..6da6fc67e8 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -171,6 +171,7 @@ implemented */
#define ERRbaddirectory 267 /* Invalid directory name in a path. */
#define ERRunknownipc 2142
+#define ERROR_ACCESS_DENIED (5)
#define ERROR_INVALID_PARAMETER (87)
#define ERROR_INSUFFICIENT_BUFFER (122)
#define ERROR_INVALID_NAME (123)