Changeset 745 for trunk/server/source3/rpcclient/cmd_ntsvcs.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/rpcclient/cmd_ntsvcs.c
r414 r745 21 21 #include "includes.h" 22 22 #include "rpcclient.h" 23 #include "../librpc/gen_ndr/ cli_ntsvcs.h"23 #include "../librpc/gen_ndr/ndr_ntsvcs_c.h" 24 24 25 25 static WERROR cmd_ntsvcs_get_version(struct rpc_pipe_client *cli, … … 28 28 const char **argv) 29 29 { 30 struct dcerpc_binding_handle *b = cli->binding_handle; 30 31 NTSTATUS status; 31 32 WERROR werr; 32 33 uint16_t version; 33 34 34 status = rpccli_PNP_GetVersion(cli, mem_ctx,35 status = dcerpc_PNP_GetVersion(b, mem_ctx, 35 36 &version, &werr); 36 37 if (!NT_STATUS_IS_OK(status)) { … … 50 51 const char **argv) 51 52 { 53 struct dcerpc_binding_handle *b = cli->binding_handle; 52 54 NTSTATUS status; 53 55 WERROR werr; … … 66 68 } 67 69 68 status = rpccli_PNP_ValidateDeviceInstance(cli, mem_ctx,70 status = dcerpc_PNP_ValidateDeviceInstance(b, mem_ctx, 69 71 devicepath, 70 72 flags, … … 82 84 const char **argv) 83 85 { 86 struct dcerpc_binding_handle *b = cli->binding_handle; 84 87 NTSTATUS status; 85 88 WERROR werr; … … 97 100 devicepath = argv[1]; 98 101 99 status = rpccli_PNP_HwProfFlags(cli, mem_ctx,102 status = dcerpc_PNP_HwProfFlags(b, mem_ctx, 100 103 0, 101 104 devicepath, … … 120 123 const char **argv) 121 124 { 125 struct dcerpc_binding_handle *b = cli->binding_handle; 122 126 NTSTATUS status; 123 127 WERROR werr; … … 128 132 ZERO_STRUCT(info); 129 133 130 status = rpccli_PNP_GetHwProfInfo(cli, mem_ctx,134 status = dcerpc_PNP_GetHwProfInfo(b, mem_ctx, 131 135 idx, 132 136 &info, … … 146 150 const char **argv) 147 151 { 152 struct dcerpc_binding_handle *b = cli->binding_handle; 148 153 NTSTATUS status; 149 154 WERROR werr; … … 171 176 W_ERROR_HAVE_NO_MEMORY(buffer); 172 177 173 status = rpccli_PNP_GetDeviceRegProp(cli, mem_ctx,178 status = dcerpc_PNP_GetDeviceRegProp(b, mem_ctx, 174 179 devicepath, 175 180 property, … … 192 197 const char **argv) 193 198 { 199 struct dcerpc_binding_handle *b = cli->binding_handle; 194 200 NTSTATUS status; 195 201 WERROR werr; … … 211 217 } 212 218 213 status = rpccli_PNP_GetDeviceListSize(cli, mem_ctx,219 status = dcerpc_PNP_GetDeviceListSize(b, mem_ctx, 214 220 filter, 215 221 &size, … … 230 236 const char **argv) 231 237 { 238 struct dcerpc_binding_handle *b = cli->binding_handle; 232 239 NTSTATUS status; 233 240 WERROR werr; … … 259 266 } 260 267 261 status = rpccli_PNP_GetDeviceList(cli, mem_ctx,268 status = dcerpc_PNP_GetDeviceList(b, mem_ctx, 262 269 filter, 263 270 buffer,
Note:
See TracChangeset
for help on using the changeset viewer.