summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-17 00:34:59 +0100
committerGünther Deschner <gd@samba.org>2009-03-17 12:10:43 +0100
commitacf523ad7edcde788ee79144928d74d91f0e0754 (patch)
tree15adad4d0f49a317d577d637d2c6705dd11287eb /source3
parent2a8c078357dd7bd191d0f2c55d94834c4774ecfc (diff)
downloadsamba-acf523ad7edcde788ee79144928d74d91f0e0754.tar.gz
samba-acf523ad7edcde788ee79144928d74d91f0e0754.tar.bz2
samba-acf523ad7edcde788ee79144928d74d91f0e0754.zip
s3-net: fix net_spoolss_setprinterdata.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_printer.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 695b16c3dc..a30b3a1d0e 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -815,17 +815,23 @@ static bool net_spoolss_setprinter(struct rpc_pipe_client *pipe_hnd,
static bool net_spoolss_setprinterdata(struct rpc_pipe_client *pipe_hnd,
- TALLOC_CTX *mem_ctx,
- POLICY_HND *hnd,
- REGISTRY_VALUE *value)
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *hnd,
+ const char *value_name,
+ enum winreg_Type type,
+ union spoolss_PrinterData data)
{
WERROR result;
-
- /* FIXME - GD */
- return true;
+ NTSTATUS status;
/* setprinterdata call */
- /* result = rpccli_spoolss_setprinterdata(pipe_hnd, mem_ctx, hnd, value); */
+ status = rpccli_spoolss_SetPrinterData(pipe_hnd, mem_ctx,
+ hnd,
+ value_name,
+ type,
+ data,
+ 0, /* autocalculated */
+ &result);
if (!W_ERROR_IS_OK(result)) {
printf ("unable to set printerdata: %s\n", win_errstr(result));