diff options
author | Günther Deschner <gd@samba.org> | 2004-08-25 21:26:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:30 -0500 |
commit | bf645415f6a611d71eb07e9ebd9f005a02720a6d (patch) | |
tree | be5bd11cbd4dd1ca51096f804e263a260bb4e108 /source3/rpcclient | |
parent | 804cfb20a067b4b687089dc72a8271b3abf20f31 (diff) | |
download | samba-bf645415f6a611d71eb07e9ebd9f005a02720a6d.tar.gz samba-bf645415f6a611d71eb07e9ebd9f005a02720a6d.tar.bz2 samba-bf645415f6a611d71eb07e9ebd9f005a02720a6d.zip |
r2073: Adding getprinter level 7 to rpcclient.
Is there any other rpc-call to get the guid of a published printer?
Guenther
(This used to be commit 944ad569c7a88e1d2f14311eed10f80ea9861963)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 66ad96a9d3..0e2dd22240 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -297,6 +297,18 @@ static void display_print_info_3(PRINTER_INFO_3 *i3) printf("\n"); } +/**************************************************************************** +printer info level 7 display function +****************************************************************************/ +static void display_print_info_7(PRINTER_INFO_7 *i7) +{ + fstring guid = ""; + rpcstr_pull(guid, i7->guid.buffer,sizeof(guid), -1, STR_TERMINATE); + printf("\tguid:[%s]\n", guid); + printf("\taction:[0x%x]\n", i7->action); +} + + /* Enumerate printers */ static WERROR cmd_spoolss_enum_printers(struct cli_state *cli, @@ -687,6 +699,9 @@ static WERROR cmd_spoolss_getprinter(struct cli_state *cli, case 3: display_print_info_3(ctr.printers_3); break; + case 7: + display_print_info_7(ctr.printers_7); + break; default: printf("unknown info level %d\n", info_level); break; |