summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-05 06:15:02 +0000
committerTim Potter <tpot@samba.org>2001-11-05 06:15:02 +0000
commit7623cec4ad5f8eecae1a3c780a7ca89a6a14b93a (patch)
tree55424f90cedd78aae331b2221539e06a7daee97a /source3/rpc_server/srv_spoolss_nt.c
parentb09c745991e133d455fd8db586729b7e82d92935 (diff)
downloadsamba-7623cec4ad5f8eecae1a3c780a7ca89a6a14b93a.tar.gz
samba-7623cec4ad5f8eecae1a3c780a7ca89a6a14b93a.tar.bz2
samba-7623cec4ad5f8eecae1a3c780a7ca89a6a14b93a.zip
Wrote some stubs for new win2k only spoolss rpc commands:
GetPrinterDataEx() and SetPrinterDataEx(). Not sure what the command number is for the latter is - I haven't seen it on the wire yet. (This used to be commit 87614c74b3d66cf2ca706b33e6cf0a32b4166e7a)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 0be836c944..e5ca373479 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6755,3 +6755,41 @@ WERROR _spoolss_getjob( pipes_struct *p, SPOOL_Q_GETJOB *q_u, SPOOL_R_GETJOB *r_
return WERR_UNKNOWN_LEVEL;
}
}
+
+/********************************************************************
+ * spoolss_getprinterdataex
+ ********************************************************************/
+
+WERROR _spoolss_getprinterdataex(pipes_struct *p, SPOOL_Q_GETPRINTERDATAEX *q_u, SPOOL_R_GETPRINTERDATAEX *r_u)
+{
+ fstring key;
+
+ /* From MSDN documentation of GetPrinterDataEx: pass request to
+ GetPrinterData if key is "PrinterDriverData" */
+
+ unistr2_to_ascii(key, &q_u->keyname, sizeof(key) - 1);
+
+ if (strcmp(key, "PrinterDriverData") == 0)
+ DEBUG(10, ("pass me to getprinterdata\n"));
+
+ return WERR_INVALID_PARAM;
+}
+
+/********************************************************************
+ * spoolss_setprinterdata
+ ********************************************************************/
+
+WERROR _spoolss_setprinterdataex(pipes_struct *p, SPOOL_Q_SETPRINTERDATAEX *q_u, SPOOL_R_SETPRINTERDATAEX *r_u)
+{
+ fstring key;
+
+ /* From MSDN documentation of SetPrinterDataEx: pass request to
+ SetPrinterData if key is "PrinterDriverData" */
+
+ unistr2_to_ascii(key, &q_u->key, sizeof(key) - 1);
+
+ if (strcmp(key, "PrinterDriverData") == 0)
+ DEBUG(10, ("pass me to setprinterdata\n"));
+
+ return WERR_INVALID_PARAM;
+}