summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-11-09 20:59:18 +0000
committerGerald Carter <jerry@samba.org>2001-11-09 20:59:18 +0000
commite3abad17417bb9f5f1309039aae8e364871c22d8 (patch)
treec17a0ec314fdccda2686f0f0dfdca4a7311202b7
parent67f5bea4849dd51df0b9467d033fd000a129ce3f (diff)
downloadsamba-e3abad17417bb9f5f1309039aae8e364871c22d8.tar.gz
samba-e3abad17417bb9f5f1309039aae8e364871c22d8.tar.bz2
samba-e3abad17417bb9f5f1309039aae8e364871c22d8.zip
Fixed a few typos and added the opnum for ADDPRINTERDRIVEREX to the
rpc_spoolss.h header file. (This used to be commit d4cafc076be99a66d0660f695995801b4f1d7bfd)
-rwxr-xr-xsource3/include/rpc_spoolss.h9
-rwxr-xr-xsource3/rpc_server/srv_spoolss.c4
2 files changed, 10 insertions, 3 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 2962546122..dcb4bc04f2 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -59,6 +59,13 @@
#define SPOOLSS_ROUTERREFRESHPRINTERCHANGENOTIFICATION 0x42
*/
+/*
+ * Unimplement Win2k specific RPC's
+
+#define SPOOLSS_ADDPRINTERDRIVEREX 0x59
+
+*/
+
/* those are implemented */
#define SPOOLSS_ENUMPRINTERS 0x00
#define SPOOLSS_SETJOB 0x02
@@ -109,7 +116,7 @@
#define SPOOLSS_ENUMPRINTERDATA 0x48
#define SPOOLSS_DELETEPRINTERDATA 0x49
#define SPOOLSS_GETPRINTERDATAEX 0x4e
-#define SPOOLSS_SETPRINTERDATAEX 0xff /* unknown */
+#define SPOOLSS_SETPRINTERDATAEX 0x50
#define PRINTER_CONTROL_UNPAUSE 0x00000000
#define PRINTER_CONTROL_PAUSE 0x00000001
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c
index 27331e448b..654e3875ce 100755
--- a/source3/rpc_server/srv_spoolss.c
+++ b/source3/rpc_server/srv_spoolss.c
@@ -1305,8 +1305,8 @@ struct api_struct api_spoolss_cmds[] =
{"SPOOLSS_ENUMMONITORS", SPOOLSS_ENUMMONITORS, api_spoolss_enumprintmonitors },
{"SPOOLSS_GETJOB", SPOOLSS_GETJOB, api_spoolss_getjob },
{"SPOOLSS_ENUMPRINTPROCDATATYPES", SPOOLSS_ENUMPRINTPROCDATATYPES, api_spoolss_enumprintprocdatatypes },
- {"SPOOLSS_GETPRINTERDATAEX", SPOOLSS_GETPRINTERDATAEX, api_spoolss_getprinterdataex },
- {"SPOOLSS_sETPRINTERDATAEX", SPOOLSS_SETPRINTERDATAEX, api_spoolss_setprinterdataex },
+ {"SPOOLSS_GETPRINTERDATAEX", SPOOLSS_GETPRINTERDATAEX, api_spoolss_getprinterdataex },
+ {"SPOOLSS_SETPRINTERDATAEX", SPOOLSS_SETPRINTERDATAEX, api_spoolss_setprinterdataex },
{ NULL, 0, NULL }
};