diff options
author | Günther Deschner <gd@samba.org> | 2009-02-08 19:19:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-09 10:42:26 +0100 |
commit | c7d572a76f6269b9f6edea553bcb17d270a69500 (patch) | |
tree | 8b0831d55f637eb3e1d5e1f95ded169ae7d62af4 /source3 | |
parent | fac7ed3df1b1fde5ca16e742bd856e4ddbf7e01f (diff) | |
download | samba-c7d572a76f6269b9f6edea553bcb17d270a69500.tar.gz samba-c7d572a76f6269b9f6edea553bcb17d270a69500.tar.bz2 samba-c7d572a76f6269b9f6edea553bcb17d270a69500.zip |
s3-rpcclient: use rpccli_spoolss_SetForm.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 623c0388e1..38acfa35a7 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -1716,10 +1716,12 @@ static WERROR cmd_spoolss_setform(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { POLICY_HND handle; WERROR werror; + NTSTATUS status; char *servername = NULL, *printername = NULL; - FORM form; bool got_handle = False; - + union spoolss_AddFormInfo info; + struct spoolss_AddFormInfo1 info1; + /* Parse the command arguments */ if (argc != 3) { @@ -1749,18 +1751,25 @@ static WERROR cmd_spoolss_setform(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* Dummy up some values for the form data */ - form.flags = FORM_PRINTER; - form.size_x = form.size_y = 100; - form.left = 0; - form.top = 1000; - form.right = 2000; - form.bottom = 3000; + info1.flags = FORM_PRINTER; + info1.size.width = 100; + info1.size.height = 100; + info1.area.left = 0; + info1.area.top = 1000; + info1.area.right = 2000; + info1.area.bottom = 3000; + info1.form_name = argv[2]; - init_unistr2(&form.name, argv[2], UNI_STR_TERMINATE); + info.info1 = &info1; /* Set the form */ - werror = rpccli_spoolss_setform(cli, mem_ctx, &handle, 1, argv[2], &form); + status = rpccli_spoolss_SetForm(cli, mem_ctx, + &handle, + argv[2], + 1, + info, + &werror); done: if (got_handle) |