diff options
author | Günther Deschner <gd@samba.org> | 2009-07-03 11:05:38 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-07-03 22:05:21 +0200 |
commit | bee0421f4c8017a86d00392c0efe45d2009a71f9 (patch) | |
tree | 3b3709b6be61bf2012c556d0be6e7aaf5e7dd15b /source3 | |
parent | 80b62f579fdf9975c718a75c6d8e623e30578139 (diff) | |
download | samba-bee0421f4c8017a86d00392c0efe45d2009a71f9.tar.gz samba-bee0421f4c8017a86d00392c0efe45d2009a71f9.tar.bz2 samba-bee0421f4c8017a86d00392c0efe45d2009a71f9.zip |
s3-spoolss: implement _spoolss_AddPrinter.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 1ea92b4d28..5c9f60f100 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -7671,6 +7671,30 @@ WERROR _spoolss_AddPrinterEx(pipes_struct *p, } /**************************************************************** + _spoolss_AddPrinter +****************************************************************/ + +WERROR _spoolss_AddPrinter(pipes_struct *p, + struct spoolss_AddPrinter *r) +{ + struct _spoolss_AddPrinterEx a; + struct spoolss_UserLevelCtr userlevel_ctr; + + ZERO_STRUCT(userlevel_ctr); + + user_level_ctr.level = 1; + + a.in.server = r->in.server; + a.in.info_ctr = r->in.info_ctr; + a.in.devmode_ctr = r->in.devmode_ctr; + a.in.secdesc_ctr = r->in.secdesc_ctr; + a.in.userlevel_ctr = &userlevel_ctr; + a.out.handle = r->out.handle; + + return _spoolss_AddPrinterEx(p, &a); +} + +/**************************************************************** _spoolss_AddPrinterDriver ****************************************************************/ @@ -10016,17 +10040,6 @@ WERROR _spoolss_AddPort(pipes_struct *p, } /**************************************************************** - _spoolss_AddPrinter -****************************************************************/ - -WERROR _spoolss_AddPrinter(pipes_struct *p, - struct spoolss_AddPrinter *r) -{ - p->rng_fault_state = true; - return WERR_NOT_SUPPORTED; -} - -/**************************************************************** _spoolss_GetPrinterDriver ****************************************************************/ |