diff options
author | Günther Deschner <gd@samba.org> | 2009-03-17 00:34:59 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-17 12:10:43 +0100 |
commit | acf523ad7edcde788ee79144928d74d91f0e0754 (patch) | |
tree | 15adad4d0f49a317d577d637d2c6705dd11287eb /source3/utils | |
parent | 2a8c078357dd7bd191d0f2c55d94834c4774ecfc (diff) | |
download | samba-acf523ad7edcde788ee79144928d74d91f0e0754.tar.gz samba-acf523ad7edcde788ee79144928d74d91f0e0754.tar.bz2 samba-acf523ad7edcde788ee79144928d74d91f0e0754.zip |
s3-net: fix net_spoolss_setprinterdata.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 20 |
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)); |