1 | /*
|
---|
2 | * Unix SMB/CIFS implementation.
|
---|
3 | * client auto-generated by pidl. DO NOT MODIFY!
|
---|
4 | */
|
---|
5 |
|
---|
6 | #include "includes.h"
|
---|
7 |
|
---|
8 | NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32 *exist_flag)
|
---|
9 | {
|
---|
10 | prs_struct qbuf, rbuf;
|
---|
11 | NETDFS_Q_DFS_GETMANAGERVERSION q;
|
---|
12 | NETDFS_R_DFS_GETMANAGERVERSION r;
|
---|
13 |
|
---|
14 | ZERO_STRUCT(q);
|
---|
15 | ZERO_STRUCT(r);
|
---|
16 |
|
---|
17 | /* Marshall data and send request */
|
---|
18 |
|
---|
19 | if (!init_netdfs_q_dfs_GetManagerVersion(&q))
|
---|
20 | return NT_STATUS_INVALID_PARAMETER;
|
---|
21 |
|
---|
22 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_GETMANAGERVERSION,
|
---|
23 | q, r,
|
---|
24 | qbuf, rbuf,
|
---|
25 | netdfs_io_q_dfs_GetManagerVersion,
|
---|
26 | netdfs_io_r_dfs_GetManagerVersion,
|
---|
27 | NT_STATUS_UNSUCCESSFUL);
|
---|
28 |
|
---|
29 | /* Return variables */
|
---|
30 | *exist_flag = r.exist_flag;
|
---|
31 |
|
---|
32 | /* Return result */
|
---|
33 | return NT_STATUS_OK;
|
---|
34 | }
|
---|
35 |
|
---|
36 | NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32 flags)
|
---|
37 | {
|
---|
38 | prs_struct qbuf, rbuf;
|
---|
39 | NETDFS_Q_DFS_ADD q;
|
---|
40 | NETDFS_R_DFS_ADD r;
|
---|
41 |
|
---|
42 | ZERO_STRUCT(q);
|
---|
43 | ZERO_STRUCT(r);
|
---|
44 |
|
---|
45 | /* Marshall data and send request */
|
---|
46 |
|
---|
47 | if (!init_netdfs_q_dfs_Add(&q, path, server, share, comment, flags))
|
---|
48 | return NT_STATUS_INVALID_PARAMETER;
|
---|
49 |
|
---|
50 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ADD,
|
---|
51 | q, r,
|
---|
52 | qbuf, rbuf,
|
---|
53 | netdfs_io_q_dfs_Add,
|
---|
54 | netdfs_io_r_dfs_Add,
|
---|
55 | NT_STATUS_UNSUCCESSFUL);
|
---|
56 |
|
---|
57 | /* Return variables */
|
---|
58 |
|
---|
59 | /* Return result */
|
---|
60 | return werror_to_ntstatus(r.status);
|
---|
61 | }
|
---|
62 |
|
---|
63 | NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share)
|
---|
64 | {
|
---|
65 | prs_struct qbuf, rbuf;
|
---|
66 | NETDFS_Q_DFS_REMOVE q;
|
---|
67 | NETDFS_R_DFS_REMOVE r;
|
---|
68 |
|
---|
69 | ZERO_STRUCT(q);
|
---|
70 | ZERO_STRUCT(r);
|
---|
71 |
|
---|
72 | /* Marshall data and send request */
|
---|
73 |
|
---|
74 | if (!init_netdfs_q_dfs_Remove(&q, path, server, share))
|
---|
75 | return NT_STATUS_INVALID_PARAMETER;
|
---|
76 |
|
---|
77 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_REMOVE,
|
---|
78 | q, r,
|
---|
79 | qbuf, rbuf,
|
---|
80 | netdfs_io_q_dfs_Remove,
|
---|
81 | netdfs_io_r_dfs_Remove,
|
---|
82 | NT_STATUS_UNSUCCESSFUL);
|
---|
83 |
|
---|
84 | /* Return variables */
|
---|
85 |
|
---|
86 | /* Return result */
|
---|
87 | return werror_to_ntstatus(r.status);
|
---|
88 | }
|
---|
89 |
|
---|
90 | NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
91 | {
|
---|
92 | prs_struct qbuf, rbuf;
|
---|
93 | NETDFS_Q_DFS_SETINFO q;
|
---|
94 | NETDFS_R_DFS_SETINFO r;
|
---|
95 |
|
---|
96 | ZERO_STRUCT(q);
|
---|
97 | ZERO_STRUCT(r);
|
---|
98 |
|
---|
99 | /* Marshall data and send request */
|
---|
100 |
|
---|
101 | if (!init_netdfs_q_dfs_SetInfo(&q))
|
---|
102 | return NT_STATUS_INVALID_PARAMETER;
|
---|
103 |
|
---|
104 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_SETINFO,
|
---|
105 | q, r,
|
---|
106 | qbuf, rbuf,
|
---|
107 | netdfs_io_q_dfs_SetInfo,
|
---|
108 | netdfs_io_r_dfs_SetInfo,
|
---|
109 | NT_STATUS_UNSUCCESSFUL);
|
---|
110 |
|
---|
111 | /* Return variables */
|
---|
112 |
|
---|
113 | /* Return result */
|
---|
114 | return werror_to_ntstatus(r.status);
|
---|
115 | }
|
---|
116 |
|
---|
117 | NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, uint32 level, NETDFS_DFS_INFO_CTR *info)
|
---|
118 | {
|
---|
119 | prs_struct qbuf, rbuf;
|
---|
120 | NETDFS_Q_DFS_GETINFO q;
|
---|
121 | NETDFS_R_DFS_GETINFO r;
|
---|
122 |
|
---|
123 | ZERO_STRUCT(q);
|
---|
124 | ZERO_STRUCT(r);
|
---|
125 |
|
---|
126 | /* Marshall data and send request */
|
---|
127 |
|
---|
128 | if (!init_netdfs_q_dfs_GetInfo(&q, path, server, share, level))
|
---|
129 | return NT_STATUS_INVALID_PARAMETER;
|
---|
130 |
|
---|
131 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_GETINFO,
|
---|
132 | q, r,
|
---|
133 | qbuf, rbuf,
|
---|
134 | netdfs_io_q_dfs_GetInfo,
|
---|
135 | netdfs_io_r_dfs_GetInfo,
|
---|
136 | NT_STATUS_UNSUCCESSFUL);
|
---|
137 |
|
---|
138 | /* Return variables */
|
---|
139 | *info = r.info;
|
---|
140 |
|
---|
141 | /* Return result */
|
---|
142 | return werror_to_ntstatus(r.status);
|
---|
143 | }
|
---|
144 |
|
---|
145 | NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32 level, uint32 bufsize, NETDFS_DFS_ENUMSTRUCT *info, uint32 *total)
|
---|
146 | {
|
---|
147 | prs_struct qbuf, rbuf;
|
---|
148 | NETDFS_Q_DFS_ENUM q;
|
---|
149 | NETDFS_R_DFS_ENUM r;
|
---|
150 |
|
---|
151 | ZERO_STRUCT(q);
|
---|
152 | ZERO_STRUCT(r);
|
---|
153 |
|
---|
154 | /* Marshall data and send request */
|
---|
155 |
|
---|
156 | if (!init_netdfs_q_dfs_Enum(&q, level, bufsize, info, total))
|
---|
157 | return NT_STATUS_INVALID_PARAMETER;
|
---|
158 |
|
---|
159 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ENUM,
|
---|
160 | q, r,
|
---|
161 | qbuf, rbuf,
|
---|
162 | netdfs_io_q_dfs_Enum,
|
---|
163 | netdfs_io_r_dfs_Enum,
|
---|
164 | NT_STATUS_UNSUCCESSFUL);
|
---|
165 |
|
---|
166 | /* Return variables */
|
---|
167 | *info = r.info;
|
---|
168 | *total = r.total;
|
---|
169 |
|
---|
170 | /* Return result */
|
---|
171 | return werror_to_ntstatus(r.status);
|
---|
172 | }
|
---|
173 |
|
---|
174 | NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
175 | {
|
---|
176 | prs_struct qbuf, rbuf;
|
---|
177 | NETDFS_Q_DFS_RENAME q;
|
---|
178 | NETDFS_R_DFS_RENAME r;
|
---|
179 |
|
---|
180 | ZERO_STRUCT(q);
|
---|
181 | ZERO_STRUCT(r);
|
---|
182 |
|
---|
183 | /* Marshall data and send request */
|
---|
184 |
|
---|
185 | if (!init_netdfs_q_dfs_Rename(&q))
|
---|
186 | return NT_STATUS_INVALID_PARAMETER;
|
---|
187 |
|
---|
188 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_RENAME,
|
---|
189 | q, r,
|
---|
190 | qbuf, rbuf,
|
---|
191 | netdfs_io_q_dfs_Rename,
|
---|
192 | netdfs_io_r_dfs_Rename,
|
---|
193 | NT_STATUS_UNSUCCESSFUL);
|
---|
194 |
|
---|
195 | /* Return variables */
|
---|
196 |
|
---|
197 | /* Return result */
|
---|
198 | return werror_to_ntstatus(r.status);
|
---|
199 | }
|
---|
200 |
|
---|
201 | NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
202 | {
|
---|
203 | prs_struct qbuf, rbuf;
|
---|
204 | NETDFS_Q_DFS_MOVE q;
|
---|
205 | NETDFS_R_DFS_MOVE r;
|
---|
206 |
|
---|
207 | ZERO_STRUCT(q);
|
---|
208 | ZERO_STRUCT(r);
|
---|
209 |
|
---|
210 | /* Marshall data and send request */
|
---|
211 |
|
---|
212 | if (!init_netdfs_q_dfs_Move(&q))
|
---|
213 | return NT_STATUS_INVALID_PARAMETER;
|
---|
214 |
|
---|
215 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_MOVE,
|
---|
216 | q, r,
|
---|
217 | qbuf, rbuf,
|
---|
218 | netdfs_io_q_dfs_Move,
|
---|
219 | netdfs_io_r_dfs_Move,
|
---|
220 | NT_STATUS_UNSUCCESSFUL);
|
---|
221 |
|
---|
222 | /* Return variables */
|
---|
223 |
|
---|
224 | /* Return result */
|
---|
225 | return werror_to_ntstatus(r.status);
|
---|
226 | }
|
---|
227 |
|
---|
228 | NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
229 | {
|
---|
230 | prs_struct qbuf, rbuf;
|
---|
231 | NETDFS_Q_DFS_MANAGERGETCONFIGINFO q;
|
---|
232 | NETDFS_R_DFS_MANAGERGETCONFIGINFO r;
|
---|
233 |
|
---|
234 | ZERO_STRUCT(q);
|
---|
235 | ZERO_STRUCT(r);
|
---|
236 |
|
---|
237 | /* Marshall data and send request */
|
---|
238 |
|
---|
239 | if (!init_netdfs_q_dfs_ManagerGetConfigInfo(&q))
|
---|
240 | return NT_STATUS_INVALID_PARAMETER;
|
---|
241 |
|
---|
242 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_MANAGERGETCONFIGINFO,
|
---|
243 | q, r,
|
---|
244 | qbuf, rbuf,
|
---|
245 | netdfs_io_q_dfs_ManagerGetConfigInfo,
|
---|
246 | netdfs_io_r_dfs_ManagerGetConfigInfo,
|
---|
247 | NT_STATUS_UNSUCCESSFUL);
|
---|
248 |
|
---|
249 | /* Return variables */
|
---|
250 |
|
---|
251 | /* Return result */
|
---|
252 | return werror_to_ntstatus(r.status);
|
---|
253 | }
|
---|
254 |
|
---|
255 | NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
256 | {
|
---|
257 | prs_struct qbuf, rbuf;
|
---|
258 | NETDFS_Q_DFS_MANAGERSENDSITEINFO q;
|
---|
259 | NETDFS_R_DFS_MANAGERSENDSITEINFO r;
|
---|
260 |
|
---|
261 | ZERO_STRUCT(q);
|
---|
262 | ZERO_STRUCT(r);
|
---|
263 |
|
---|
264 | /* Marshall data and send request */
|
---|
265 |
|
---|
266 | if (!init_netdfs_q_dfs_ManagerSendSiteInfo(&q))
|
---|
267 | return NT_STATUS_INVALID_PARAMETER;
|
---|
268 |
|
---|
269 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_MANAGERSENDSITEINFO,
|
---|
270 | q, r,
|
---|
271 | qbuf, rbuf,
|
---|
272 | netdfs_io_q_dfs_ManagerSendSiteInfo,
|
---|
273 | netdfs_io_r_dfs_ManagerSendSiteInfo,
|
---|
274 | NT_STATUS_UNSUCCESSFUL);
|
---|
275 |
|
---|
276 | /* Return variables */
|
---|
277 |
|
---|
278 | /* Return result */
|
---|
279 | return werror_to_ntstatus(r.status);
|
---|
280 | }
|
---|
281 |
|
---|
282 | NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
283 | {
|
---|
284 | prs_struct qbuf, rbuf;
|
---|
285 | NETDFS_Q_DFS_ADDFTROOT q;
|
---|
286 | NETDFS_R_DFS_ADDFTROOT r;
|
---|
287 |
|
---|
288 | ZERO_STRUCT(q);
|
---|
289 | ZERO_STRUCT(r);
|
---|
290 |
|
---|
291 | /* Marshall data and send request */
|
---|
292 |
|
---|
293 | if (!init_netdfs_q_dfs_AddFtRoot(&q))
|
---|
294 | return NT_STATUS_INVALID_PARAMETER;
|
---|
295 |
|
---|
296 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ADDFTROOT,
|
---|
297 | q, r,
|
---|
298 | qbuf, rbuf,
|
---|
299 | netdfs_io_q_dfs_AddFtRoot,
|
---|
300 | netdfs_io_r_dfs_AddFtRoot,
|
---|
301 | NT_STATUS_UNSUCCESSFUL);
|
---|
302 |
|
---|
303 | /* Return variables */
|
---|
304 |
|
---|
305 | /* Return result */
|
---|
306 | return werror_to_ntstatus(r.status);
|
---|
307 | }
|
---|
308 |
|
---|
309 | NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
310 | {
|
---|
311 | prs_struct qbuf, rbuf;
|
---|
312 | NETDFS_Q_DFS_REMOVEFTROOT q;
|
---|
313 | NETDFS_R_DFS_REMOVEFTROOT r;
|
---|
314 |
|
---|
315 | ZERO_STRUCT(q);
|
---|
316 | ZERO_STRUCT(r);
|
---|
317 |
|
---|
318 | /* Marshall data and send request */
|
---|
319 |
|
---|
320 | if (!init_netdfs_q_dfs_RemoveFtRoot(&q))
|
---|
321 | return NT_STATUS_INVALID_PARAMETER;
|
---|
322 |
|
---|
323 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_REMOVEFTROOT,
|
---|
324 | q, r,
|
---|
325 | qbuf, rbuf,
|
---|
326 | netdfs_io_q_dfs_RemoveFtRoot,
|
---|
327 | netdfs_io_r_dfs_RemoveFtRoot,
|
---|
328 | NT_STATUS_UNSUCCESSFUL);
|
---|
329 |
|
---|
330 | /* Return variables */
|
---|
331 |
|
---|
332 | /* Return result */
|
---|
333 | return werror_to_ntstatus(r.status);
|
---|
334 | }
|
---|
335 |
|
---|
336 | NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
337 | {
|
---|
338 | prs_struct qbuf, rbuf;
|
---|
339 | NETDFS_Q_DFS_ADDSTDROOT q;
|
---|
340 | NETDFS_R_DFS_ADDSTDROOT r;
|
---|
341 |
|
---|
342 | ZERO_STRUCT(q);
|
---|
343 | ZERO_STRUCT(r);
|
---|
344 |
|
---|
345 | /* Marshall data and send request */
|
---|
346 |
|
---|
347 | if (!init_netdfs_q_dfs_AddStdRoot(&q))
|
---|
348 | return NT_STATUS_INVALID_PARAMETER;
|
---|
349 |
|
---|
350 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ADDSTDROOT,
|
---|
351 | q, r,
|
---|
352 | qbuf, rbuf,
|
---|
353 | netdfs_io_q_dfs_AddStdRoot,
|
---|
354 | netdfs_io_r_dfs_AddStdRoot,
|
---|
355 | NT_STATUS_UNSUCCESSFUL);
|
---|
356 |
|
---|
357 | /* Return variables */
|
---|
358 |
|
---|
359 | /* Return result */
|
---|
360 | return werror_to_ntstatus(r.status);
|
---|
361 | }
|
---|
362 |
|
---|
363 | NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
364 | {
|
---|
365 | prs_struct qbuf, rbuf;
|
---|
366 | NETDFS_Q_DFS_REMOVESTDROOT q;
|
---|
367 | NETDFS_R_DFS_REMOVESTDROOT r;
|
---|
368 |
|
---|
369 | ZERO_STRUCT(q);
|
---|
370 | ZERO_STRUCT(r);
|
---|
371 |
|
---|
372 | /* Marshall data and send request */
|
---|
373 |
|
---|
374 | if (!init_netdfs_q_dfs_RemoveStdRoot(&q))
|
---|
375 | return NT_STATUS_INVALID_PARAMETER;
|
---|
376 |
|
---|
377 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_REMOVESTDROOT,
|
---|
378 | q, r,
|
---|
379 | qbuf, rbuf,
|
---|
380 | netdfs_io_q_dfs_RemoveStdRoot,
|
---|
381 | netdfs_io_r_dfs_RemoveStdRoot,
|
---|
382 | NT_STATUS_UNSUCCESSFUL);
|
---|
383 |
|
---|
384 | /* Return variables */
|
---|
385 |
|
---|
386 | /* Return result */
|
---|
387 | return werror_to_ntstatus(r.status);
|
---|
388 | }
|
---|
389 |
|
---|
390 | NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
391 | {
|
---|
392 | prs_struct qbuf, rbuf;
|
---|
393 | NETDFS_Q_DFS_MANAGERINITIALIZE q;
|
---|
394 | NETDFS_R_DFS_MANAGERINITIALIZE r;
|
---|
395 |
|
---|
396 | ZERO_STRUCT(q);
|
---|
397 | ZERO_STRUCT(r);
|
---|
398 |
|
---|
399 | /* Marshall data and send request */
|
---|
400 |
|
---|
401 | if (!init_netdfs_q_dfs_ManagerInitialize(&q))
|
---|
402 | return NT_STATUS_INVALID_PARAMETER;
|
---|
403 |
|
---|
404 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_MANAGERINITIALIZE,
|
---|
405 | q, r,
|
---|
406 | qbuf, rbuf,
|
---|
407 | netdfs_io_q_dfs_ManagerInitialize,
|
---|
408 | netdfs_io_r_dfs_ManagerInitialize,
|
---|
409 | NT_STATUS_UNSUCCESSFUL);
|
---|
410 |
|
---|
411 | /* Return variables */
|
---|
412 |
|
---|
413 | /* Return result */
|
---|
414 | return werror_to_ntstatus(r.status);
|
---|
415 | }
|
---|
416 |
|
---|
417 | NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
418 | {
|
---|
419 | prs_struct qbuf, rbuf;
|
---|
420 | NETDFS_Q_DFS_ADDSTDROOTFORCED q;
|
---|
421 | NETDFS_R_DFS_ADDSTDROOTFORCED r;
|
---|
422 |
|
---|
423 | ZERO_STRUCT(q);
|
---|
424 | ZERO_STRUCT(r);
|
---|
425 |
|
---|
426 | /* Marshall data and send request */
|
---|
427 |
|
---|
428 | if (!init_netdfs_q_dfs_AddStdRootForced(&q))
|
---|
429 | return NT_STATUS_INVALID_PARAMETER;
|
---|
430 |
|
---|
431 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ADDSTDROOTFORCED,
|
---|
432 | q, r,
|
---|
433 | qbuf, rbuf,
|
---|
434 | netdfs_io_q_dfs_AddStdRootForced,
|
---|
435 | netdfs_io_r_dfs_AddStdRootForced,
|
---|
436 | NT_STATUS_UNSUCCESSFUL);
|
---|
437 |
|
---|
438 | /* Return variables */
|
---|
439 |
|
---|
440 | /* Return result */
|
---|
441 | return werror_to_ntstatus(r.status);
|
---|
442 | }
|
---|
443 |
|
---|
444 | NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
445 | {
|
---|
446 | prs_struct qbuf, rbuf;
|
---|
447 | NETDFS_Q_DFS_GETDCADDRESS q;
|
---|
448 | NETDFS_R_DFS_GETDCADDRESS r;
|
---|
449 |
|
---|
450 | ZERO_STRUCT(q);
|
---|
451 | ZERO_STRUCT(r);
|
---|
452 |
|
---|
453 | /* Marshall data and send request */
|
---|
454 |
|
---|
455 | if (!init_netdfs_q_dfs_GetDcAddress(&q))
|
---|
456 | return NT_STATUS_INVALID_PARAMETER;
|
---|
457 |
|
---|
458 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_GETDCADDRESS,
|
---|
459 | q, r,
|
---|
460 | qbuf, rbuf,
|
---|
461 | netdfs_io_q_dfs_GetDcAddress,
|
---|
462 | netdfs_io_r_dfs_GetDcAddress,
|
---|
463 | NT_STATUS_UNSUCCESSFUL);
|
---|
464 |
|
---|
465 | /* Return variables */
|
---|
466 |
|
---|
467 | /* Return result */
|
---|
468 | return werror_to_ntstatus(r.status);
|
---|
469 | }
|
---|
470 |
|
---|
471 | NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
472 | {
|
---|
473 | prs_struct qbuf, rbuf;
|
---|
474 | NETDFS_Q_DFS_SETDCADDRESS q;
|
---|
475 | NETDFS_R_DFS_SETDCADDRESS r;
|
---|
476 |
|
---|
477 | ZERO_STRUCT(q);
|
---|
478 | ZERO_STRUCT(r);
|
---|
479 |
|
---|
480 | /* Marshall data and send request */
|
---|
481 |
|
---|
482 | if (!init_netdfs_q_dfs_SetDcAddress(&q))
|
---|
483 | return NT_STATUS_INVALID_PARAMETER;
|
---|
484 |
|
---|
485 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_SETDCADDRESS,
|
---|
486 | q, r,
|
---|
487 | qbuf, rbuf,
|
---|
488 | netdfs_io_q_dfs_SetDcAddress,
|
---|
489 | netdfs_io_r_dfs_SetDcAddress,
|
---|
490 | NT_STATUS_UNSUCCESSFUL);
|
---|
491 |
|
---|
492 | /* Return variables */
|
---|
493 |
|
---|
494 | /* Return result */
|
---|
495 | return werror_to_ntstatus(r.status);
|
---|
496 | }
|
---|
497 |
|
---|
498 | NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
499 | {
|
---|
500 | prs_struct qbuf, rbuf;
|
---|
501 | NETDFS_Q_DFS_FLUSHFTTABLE q;
|
---|
502 | NETDFS_R_DFS_FLUSHFTTABLE r;
|
---|
503 |
|
---|
504 | ZERO_STRUCT(q);
|
---|
505 | ZERO_STRUCT(r);
|
---|
506 |
|
---|
507 | /* Marshall data and send request */
|
---|
508 |
|
---|
509 | if (!init_netdfs_q_dfs_FlushFtTable(&q))
|
---|
510 | return NT_STATUS_INVALID_PARAMETER;
|
---|
511 |
|
---|
512 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_FLUSHFTTABLE,
|
---|
513 | q, r,
|
---|
514 | qbuf, rbuf,
|
---|
515 | netdfs_io_q_dfs_FlushFtTable,
|
---|
516 | netdfs_io_r_dfs_FlushFtTable,
|
---|
517 | NT_STATUS_UNSUCCESSFUL);
|
---|
518 |
|
---|
519 | /* Return variables */
|
---|
520 |
|
---|
521 | /* Return result */
|
---|
522 | return werror_to_ntstatus(r.status);
|
---|
523 | }
|
---|
524 |
|
---|
525 | NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
526 | {
|
---|
527 | prs_struct qbuf, rbuf;
|
---|
528 | NETDFS_Q_DFS_ADD2 q;
|
---|
529 | NETDFS_R_DFS_ADD2 r;
|
---|
530 |
|
---|
531 | ZERO_STRUCT(q);
|
---|
532 | ZERO_STRUCT(r);
|
---|
533 |
|
---|
534 | /* Marshall data and send request */
|
---|
535 |
|
---|
536 | if (!init_netdfs_q_dfs_Add2(&q))
|
---|
537 | return NT_STATUS_INVALID_PARAMETER;
|
---|
538 |
|
---|
539 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ADD2,
|
---|
540 | q, r,
|
---|
541 | qbuf, rbuf,
|
---|
542 | netdfs_io_q_dfs_Add2,
|
---|
543 | netdfs_io_r_dfs_Add2,
|
---|
544 | NT_STATUS_UNSUCCESSFUL);
|
---|
545 |
|
---|
546 | /* Return variables */
|
---|
547 |
|
---|
548 | /* Return result */
|
---|
549 | return werror_to_ntstatus(r.status);
|
---|
550 | }
|
---|
551 |
|
---|
552 | NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
553 | {
|
---|
554 | prs_struct qbuf, rbuf;
|
---|
555 | NETDFS_Q_DFS_REMOVE2 q;
|
---|
556 | NETDFS_R_DFS_REMOVE2 r;
|
---|
557 |
|
---|
558 | ZERO_STRUCT(q);
|
---|
559 | ZERO_STRUCT(r);
|
---|
560 |
|
---|
561 | /* Marshall data and send request */
|
---|
562 |
|
---|
563 | if (!init_netdfs_q_dfs_Remove2(&q))
|
---|
564 | return NT_STATUS_INVALID_PARAMETER;
|
---|
565 |
|
---|
566 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_REMOVE2,
|
---|
567 | q, r,
|
---|
568 | qbuf, rbuf,
|
---|
569 | netdfs_io_q_dfs_Remove2,
|
---|
570 | netdfs_io_r_dfs_Remove2,
|
---|
571 | NT_STATUS_UNSUCCESSFUL);
|
---|
572 |
|
---|
573 | /* Return variables */
|
---|
574 |
|
---|
575 | /* Return result */
|
---|
576 | return werror_to_ntstatus(r.status);
|
---|
577 | }
|
---|
578 |
|
---|
579 | NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
580 | {
|
---|
581 | prs_struct qbuf, rbuf;
|
---|
582 | NETDFS_Q_DFS_ENUMEX q;
|
---|
583 | NETDFS_R_DFS_ENUMEX r;
|
---|
584 |
|
---|
585 | ZERO_STRUCT(q);
|
---|
586 | ZERO_STRUCT(r);
|
---|
587 |
|
---|
588 | /* Marshall data and send request */
|
---|
589 |
|
---|
590 | if (!init_netdfs_q_dfs_EnumEx(&q))
|
---|
591 | return NT_STATUS_INVALID_PARAMETER;
|
---|
592 |
|
---|
593 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_ENUMEX,
|
---|
594 | q, r,
|
---|
595 | qbuf, rbuf,
|
---|
596 | netdfs_io_q_dfs_EnumEx,
|
---|
597 | netdfs_io_r_dfs_EnumEx,
|
---|
598 | NT_STATUS_UNSUCCESSFUL);
|
---|
599 |
|
---|
600 | /* Return variables */
|
---|
601 |
|
---|
602 | /* Return result */
|
---|
603 | return werror_to_ntstatus(r.status);
|
---|
604 | }
|
---|
605 |
|
---|
606 | NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
|
---|
607 | {
|
---|
608 | prs_struct qbuf, rbuf;
|
---|
609 | NETDFS_Q_DFS_SETINFO2 q;
|
---|
610 | NETDFS_R_DFS_SETINFO2 r;
|
---|
611 |
|
---|
612 | ZERO_STRUCT(q);
|
---|
613 | ZERO_STRUCT(r);
|
---|
614 |
|
---|
615 | /* Marshall data and send request */
|
---|
616 |
|
---|
617 | if (!init_netdfs_q_dfs_SetInfo2(&q))
|
---|
618 | return NT_STATUS_INVALID_PARAMETER;
|
---|
619 |
|
---|
620 | CLI_DO_RPC(cli, mem_ctx, PI_NETDFS, DFS_SETINFO2,
|
---|
621 | q, r,
|
---|
622 | qbuf, rbuf,
|
---|
623 | netdfs_io_q_dfs_SetInfo2,
|
---|
624 | netdfs_io_r_dfs_SetInfo2,
|
---|
625 | NT_STATUS_UNSUCCESSFUL);
|
---|
626 |
|
---|
627 | /* Return variables */
|
---|
628 |
|
---|
629 | /* Return result */
|
---|
630 | return werror_to_ntstatus(r.status);
|
---|
631 | }
|
---|
632 |
|
---|