2 Unix SMB/CIFS implementation.
5 Copyright (C) Günther Deschner 2007
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "rpcclient.h"
24 static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
32 union wkssvc_NetWkstaInfo info;
33 const char *server_name;
35 server_name = cli->cli->desthost;
37 status = rpccli_wkssvc_NetWkstaGetInfo(cli, mem_ctx,
42 if (!NT_STATUS_IS_OK(status)) {
43 return ntstatus_to_werror(status);
49 struct cmd_set wkssvc_commands[] = {
52 { "wkstagetinfo", RPC_RTYPE_WERROR, NULL, cmd_wkssvc_wkstagetinfo, PI_WKSSVC, NULL, "Query WKSSVC Workstation Information", "" },