diff options
author | Günther Deschner <gd@samba.org> | 2008-02-18 01:29:55 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-18 01:38:21 +0100 |
commit | 4149868f8567a6735fde4b4fae807845e72473eb (patch) | |
tree | 6fc81bd9a4d76c7f11f7dc53b598ed9dcf9dec50 /source3/rpcclient | |
parent | 2a84f31e286299f93b5561d5b0b9f81e0733e13e (diff) | |
download | samba-4149868f8567a6735fde4b4fae807845e72473eb.tar.gz samba-4149868f8567a6735fde4b4fae807845e72473eb.tar.bz2 samba-4149868f8567a6735fde4b4fae807845e72473eb.zip |
Add ntsvcs_hwprofinfo command to rpcclient.
Guenther
(This used to be commit 8d8cf915f793980bdd0d89fc8d53ea1c1e759065)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_ntsvcs.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_ntsvcs.c b/source3/rpcclient/cmd_ntsvcs.c index 922d03df54..b7b37e2fa6 100644 --- a/source3/rpcclient/cmd_ntsvcs.c +++ b/source3/rpcclient/cmd_ntsvcs.c @@ -151,6 +151,32 @@ static WERROR cmd_ntsvcs_hw_prof_flags(struct rpc_pipe_client *cli, return werr; } +static WERROR cmd_ntsvcs_get_hw_prof_info(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + int argc, + const char **argv) +{ + NTSTATUS status; + WERROR werr; + uint32_t idx = 0; + struct PNP_HwProfInfo info; + uint32_t unknown1 = 0, unknown2 = 0; + + ZERO_STRUCT(info); + + status = rpccli_PNP_GetHwProfInfo(cli, mem_ctx, + idx, + &info, + unknown1, + unknown2, + &werr); + if (!NT_STATUS_IS_OK(status)) { + return ntstatus_to_werror(status); + } + + return werr; +} + struct cmd_set ntsvcs_commands[] = { { "NTSVCS" }, @@ -158,5 +184,6 @@ struct cmd_set ntsvcs_commands[] = { { "ntsvcs_validatedevinst", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_validate_dev_inst, PI_NTSVCS, NULL, "Query NTSVCS device instance", "" }, { "ntsvcs_getdevlistsize", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_device_list_size, PI_NTSVCS, NULL, "Query NTSVCS get device list", "" }, { "ntsvcs_hwprofflags", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_hw_prof_flags, PI_NTSVCS, NULL, "Query NTSVCS HW prof flags", "" }, + { "ntsvcs_hwprofinfo", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_hw_prof_info, PI_NTSVCS, NULL, "Query NTSVCS HW prof info", "" }, { NULL } }; |