Make idl: cli_do_rpc_ndr does not use pipe_idx anymore
[Samba/wip.git] / source3 / librpc / gen_ndr / cli_srvsvc.c
blobfbf981365c778a6af71094c4feb1cac92712218e
1 /*
2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
4 */
6 #include "includes.h"
7 #include "librpc/gen_ndr/cli_srvsvc.h"
9 NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
10 TALLOC_CTX *mem_ctx,
11 const char *server_unc /* [in] [unique,charset(UTF16)] */,
12 uint32_t *level /* [in,out] [ref] */,
13 union srvsvc_NetCharDevCtr *ctr /* [in,out] [ref,switch_is(*level)] */,
14 uint32_t max_buffer /* [in] */,
15 uint32_t *totalentries /* [out] [ref] */,
16 uint32_t *resume_handle /* [in,out] [unique] */,
17 WERROR *werror)
19 struct srvsvc_NetCharDevEnum r;
20 NTSTATUS status;
22 /* In parameters */
23 r.in.server_unc = server_unc;
24 r.in.level = level;
25 r.in.ctr = ctr;
26 r.in.max_buffer = max_buffer;
27 r.in.resume_handle = resume_handle;
29 if (DEBUGLEVEL >= 10) {
30 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, &r);
33 status = cli_do_rpc_ndr(cli,
34 mem_ctx,
35 &ndr_table_srvsvc,
36 NDR_SRVSVC_NETCHARDEVENUM,
37 &r);
39 if (!NT_STATUS_IS_OK(status)) {
40 return status;
43 if (DEBUGLEVEL >= 10) {
44 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, &r);
47 if (NT_STATUS_IS_ERR(status)) {
48 return status;
51 /* Return variables */
52 *level = *r.out.level;
53 *ctr = *r.out.ctr;
54 *totalentries = *r.out.totalentries;
55 if (resume_handle && r.out.resume_handle) {
56 *resume_handle = *r.out.resume_handle;
59 /* Return result */
60 if (werror) {
61 *werror = r.out.result;
64 return werror_to_ntstatus(r.out.result);
67 NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
68 TALLOC_CTX *mem_ctx,
69 const char *server_unc /* [in] [unique,charset(UTF16)] */,
70 const char *device_name /* [in] [charset(UTF16)] */,
71 uint32_t level /* [in] */,
72 union srvsvc_NetCharDevInfo *info /* [out] [ref,switch_is(level)] */,
73 WERROR *werror)
75 struct srvsvc_NetCharDevGetInfo r;
76 NTSTATUS status;
78 /* In parameters */
79 r.in.server_unc = server_unc;
80 r.in.device_name = device_name;
81 r.in.level = level;
83 if (DEBUGLEVEL >= 10) {
84 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, &r);
87 status = cli_do_rpc_ndr(cli,
88 mem_ctx,
89 &ndr_table_srvsvc,
90 NDR_SRVSVC_NETCHARDEVGETINFO,
91 &r);
93 if (!NT_STATUS_IS_OK(status)) {
94 return status;
97 if (DEBUGLEVEL >= 10) {
98 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, &r);
101 if (NT_STATUS_IS_ERR(status)) {
102 return status;
105 /* Return variables */
106 *info = *r.out.info;
108 /* Return result */
109 if (werror) {
110 *werror = r.out.result;
113 return werror_to_ntstatus(r.out.result);
116 NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
117 TALLOC_CTX *mem_ctx,
118 const char *server_unc /* [in] [unique,charset(UTF16)] */,
119 const char *device_name /* [in] [charset(UTF16)] */,
120 uint32_t opcode /* [in] */,
121 WERROR *werror)
123 struct srvsvc_NetCharDevControl r;
124 NTSTATUS status;
126 /* In parameters */
127 r.in.server_unc = server_unc;
128 r.in.device_name = device_name;
129 r.in.opcode = opcode;
131 if (DEBUGLEVEL >= 10) {
132 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, &r);
135 status = cli_do_rpc_ndr(cli,
136 mem_ctx,
137 &ndr_table_srvsvc,
138 NDR_SRVSVC_NETCHARDEVCONTROL,
139 &r);
141 if (!NT_STATUS_IS_OK(status)) {
142 return status;
145 if (DEBUGLEVEL >= 10) {
146 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, &r);
149 if (NT_STATUS_IS_ERR(status)) {
150 return status;
153 /* Return variables */
155 /* Return result */
156 if (werror) {
157 *werror = r.out.result;
160 return werror_to_ntstatus(r.out.result);
163 NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
164 TALLOC_CTX *mem_ctx,
165 const char *server_unc /* [in] [unique,charset(UTF16)] */,
166 const char *user /* [in] [unique,charset(UTF16)] */,
167 uint32_t *level /* [in,out] [ref] */,
168 union srvsvc_NetCharDevQCtr *ctr /* [in,out] [ref,switch_is(*level)] */,
169 uint32_t max_buffer /* [in] */,
170 uint32_t *totalentries /* [out] [ref] */,
171 uint32_t *resume_handle /* [in,out] [unique] */,
172 WERROR *werror)
174 struct srvsvc_NetCharDevQEnum r;
175 NTSTATUS status;
177 /* In parameters */
178 r.in.server_unc = server_unc;
179 r.in.user = user;
180 r.in.level = level;
181 r.in.ctr = ctr;
182 r.in.max_buffer = max_buffer;
183 r.in.resume_handle = resume_handle;
185 if (DEBUGLEVEL >= 10) {
186 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, &r);
189 status = cli_do_rpc_ndr(cli,
190 mem_ctx,
191 &ndr_table_srvsvc,
192 NDR_SRVSVC_NETCHARDEVQENUM,
193 &r);
195 if (!NT_STATUS_IS_OK(status)) {
196 return status;
199 if (DEBUGLEVEL >= 10) {
200 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, &r);
203 if (NT_STATUS_IS_ERR(status)) {
204 return status;
207 /* Return variables */
208 *level = *r.out.level;
209 *ctr = *r.out.ctr;
210 *totalentries = *r.out.totalentries;
211 if (resume_handle && r.out.resume_handle) {
212 *resume_handle = *r.out.resume_handle;
215 /* Return result */
216 if (werror) {
217 *werror = r.out.result;
220 return werror_to_ntstatus(r.out.result);
223 NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
224 TALLOC_CTX *mem_ctx,
225 const char *server_unc /* [in] [unique,charset(UTF16)] */,
226 const char *queue_name /* [in] [charset(UTF16)] */,
227 const char *user /* [in] [charset(UTF16)] */,
228 uint32_t level /* [in] */,
229 union srvsvc_NetCharDevQInfo *info /* [out] [ref,switch_is(level)] */,
230 WERROR *werror)
232 struct srvsvc_NetCharDevQGetInfo r;
233 NTSTATUS status;
235 /* In parameters */
236 r.in.server_unc = server_unc;
237 r.in.queue_name = queue_name;
238 r.in.user = user;
239 r.in.level = level;
241 if (DEBUGLEVEL >= 10) {
242 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
245 status = cli_do_rpc_ndr(cli,
246 mem_ctx,
247 &ndr_table_srvsvc,
248 NDR_SRVSVC_NETCHARDEVQGETINFO,
249 &r);
251 if (!NT_STATUS_IS_OK(status)) {
252 return status;
255 if (DEBUGLEVEL >= 10) {
256 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
259 if (NT_STATUS_IS_ERR(status)) {
260 return status;
263 /* Return variables */
264 *info = *r.out.info;
266 /* Return result */
267 if (werror) {
268 *werror = r.out.result;
271 return werror_to_ntstatus(r.out.result);
274 NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
275 TALLOC_CTX *mem_ctx,
276 const char *server_unc /* [in] [unique,charset(UTF16)] */,
277 const char *queue_name /* [in] [charset(UTF16)] */,
278 uint32_t level /* [in] */,
279 union srvsvc_NetCharDevQInfo info /* [in] [switch_is(level)] */,
280 uint32_t *parm_error /* [in,out] [unique] */,
281 WERROR *werror)
283 struct srvsvc_NetCharDevQSetInfo r;
284 NTSTATUS status;
286 /* In parameters */
287 r.in.server_unc = server_unc;
288 r.in.queue_name = queue_name;
289 r.in.level = level;
290 r.in.info = info;
291 r.in.parm_error = parm_error;
293 if (DEBUGLEVEL >= 10) {
294 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
297 status = cli_do_rpc_ndr(cli,
298 mem_ctx,
299 &ndr_table_srvsvc,
300 NDR_SRVSVC_NETCHARDEVQSETINFO,
301 &r);
303 if (!NT_STATUS_IS_OK(status)) {
304 return status;
307 if (DEBUGLEVEL >= 10) {
308 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
311 if (NT_STATUS_IS_ERR(status)) {
312 return status;
315 /* Return variables */
316 if (parm_error && r.out.parm_error) {
317 *parm_error = *r.out.parm_error;
320 /* Return result */
321 if (werror) {
322 *werror = r.out.result;
325 return werror_to_ntstatus(r.out.result);
328 NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
329 TALLOC_CTX *mem_ctx,
330 const char *server_unc /* [in] [unique,charset(UTF16)] */,
331 const char *queue_name /* [in] [charset(UTF16)] */,
332 WERROR *werror)
334 struct srvsvc_NetCharDevQPurge r;
335 NTSTATUS status;
337 /* In parameters */
338 r.in.server_unc = server_unc;
339 r.in.queue_name = queue_name;
341 if (DEBUGLEVEL >= 10) {
342 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, &r);
345 status = cli_do_rpc_ndr(cli,
346 mem_ctx,
347 &ndr_table_srvsvc,
348 NDR_SRVSVC_NETCHARDEVQPURGE,
349 &r);
351 if (!NT_STATUS_IS_OK(status)) {
352 return status;
355 if (DEBUGLEVEL >= 10) {
356 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, &r);
359 if (NT_STATUS_IS_ERR(status)) {
360 return status;
363 /* Return variables */
365 /* Return result */
366 if (werror) {
367 *werror = r.out.result;
370 return werror_to_ntstatus(r.out.result);
373 NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
374 TALLOC_CTX *mem_ctx,
375 const char *server_unc /* [in] [unique,charset(UTF16)] */,
376 const char *queue_name /* [in] [charset(UTF16)] */,
377 const char *computer_name /* [in] [charset(UTF16)] */,
378 WERROR *werror)
380 struct srvsvc_NetCharDevQPurgeSelf r;
381 NTSTATUS status;
383 /* In parameters */
384 r.in.server_unc = server_unc;
385 r.in.queue_name = queue_name;
386 r.in.computer_name = computer_name;
388 if (DEBUGLEVEL >= 10) {
389 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
392 status = cli_do_rpc_ndr(cli,
393 mem_ctx,
394 &ndr_table_srvsvc,
395 NDR_SRVSVC_NETCHARDEVQPURGESELF,
396 &r);
398 if (!NT_STATUS_IS_OK(status)) {
399 return status;
402 if (DEBUGLEVEL >= 10) {
403 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
406 if (NT_STATUS_IS_ERR(status)) {
407 return status;
410 /* Return variables */
412 /* Return result */
413 if (werror) {
414 *werror = r.out.result;
417 return werror_to_ntstatus(r.out.result);
420 NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
421 TALLOC_CTX *mem_ctx,
422 const char *server_unc /* [in] [unique,charset(UTF16)] */,
423 const char *path /* [in] [unique,charset(UTF16)] */,
424 struct srvsvc_NetConnInfoCtr *info_ctr /* [in,out] [ref] */,
425 uint32_t max_buffer /* [in] */,
426 uint32_t *totalentries /* [out] [ref] */,
427 uint32_t *resume_handle /* [in,out] [unique] */,
428 WERROR *werror)
430 struct srvsvc_NetConnEnum r;
431 NTSTATUS status;
433 /* In parameters */
434 r.in.server_unc = server_unc;
435 r.in.path = path;
436 r.in.info_ctr = info_ctr;
437 r.in.max_buffer = max_buffer;
438 r.in.resume_handle = resume_handle;
440 if (DEBUGLEVEL >= 10) {
441 NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, &r);
444 status = cli_do_rpc_ndr(cli,
445 mem_ctx,
446 &ndr_table_srvsvc,
447 NDR_SRVSVC_NETCONNENUM,
448 &r);
450 if (!NT_STATUS_IS_OK(status)) {
451 return status;
454 if (DEBUGLEVEL >= 10) {
455 NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, &r);
458 if (NT_STATUS_IS_ERR(status)) {
459 return status;
462 /* Return variables */
463 *info_ctr = *r.out.info_ctr;
464 *totalentries = *r.out.totalentries;
465 if (resume_handle && r.out.resume_handle) {
466 *resume_handle = *r.out.resume_handle;
469 /* Return result */
470 if (werror) {
471 *werror = r.out.result;
474 return werror_to_ntstatus(r.out.result);
477 NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
478 TALLOC_CTX *mem_ctx,
479 const char *server_unc /* [in] [unique,charset(UTF16)] */,
480 const char *path /* [in] [unique,charset(UTF16)] */,
481 const char *user /* [in] [unique,charset(UTF16)] */,
482 struct srvsvc_NetFileInfoCtr *info_ctr /* [in,out] [ref] */,
483 uint32_t max_buffer /* [in] */,
484 uint32_t *totalentries /* [out] [ref] */,
485 uint32_t *resume_handle /* [in,out] [unique] */,
486 WERROR *werror)
488 struct srvsvc_NetFileEnum r;
489 NTSTATUS status;
491 /* In parameters */
492 r.in.server_unc = server_unc;
493 r.in.path = path;
494 r.in.user = user;
495 r.in.info_ctr = info_ctr;
496 r.in.max_buffer = max_buffer;
497 r.in.resume_handle = resume_handle;
499 if (DEBUGLEVEL >= 10) {
500 NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, &r);
503 status = cli_do_rpc_ndr(cli,
504 mem_ctx,
505 &ndr_table_srvsvc,
506 NDR_SRVSVC_NETFILEENUM,
507 &r);
509 if (!NT_STATUS_IS_OK(status)) {
510 return status;
513 if (DEBUGLEVEL >= 10) {
514 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, &r);
517 if (NT_STATUS_IS_ERR(status)) {
518 return status;
521 /* Return variables */
522 *info_ctr = *r.out.info_ctr;
523 *totalentries = *r.out.totalentries;
524 if (resume_handle && r.out.resume_handle) {
525 *resume_handle = *r.out.resume_handle;
528 /* Return result */
529 if (werror) {
530 *werror = r.out.result;
533 return werror_to_ntstatus(r.out.result);
536 NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
537 TALLOC_CTX *mem_ctx,
538 const char *server_unc /* [in] [unique,charset(UTF16)] */,
539 uint32_t fid /* [in] */,
540 uint32_t level /* [in] */,
541 union srvsvc_NetFileInfo *info /* [out] [ref,switch_is(level)] */,
542 WERROR *werror)
544 struct srvsvc_NetFileGetInfo r;
545 NTSTATUS status;
547 /* In parameters */
548 r.in.server_unc = server_unc;
549 r.in.fid = fid;
550 r.in.level = level;
552 if (DEBUGLEVEL >= 10) {
553 NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, &r);
556 status = cli_do_rpc_ndr(cli,
557 mem_ctx,
558 &ndr_table_srvsvc,
559 NDR_SRVSVC_NETFILEGETINFO,
560 &r);
562 if (!NT_STATUS_IS_OK(status)) {
563 return status;
566 if (DEBUGLEVEL >= 10) {
567 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, &r);
570 if (NT_STATUS_IS_ERR(status)) {
571 return status;
574 /* Return variables */
575 *info = *r.out.info;
577 /* Return result */
578 if (werror) {
579 *werror = r.out.result;
582 return werror_to_ntstatus(r.out.result);
585 NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
586 TALLOC_CTX *mem_ctx,
587 const char *server_unc /* [in] [unique,charset(UTF16)] */,
588 uint32_t fid /* [in] */,
589 WERROR *werror)
591 struct srvsvc_NetFileClose r;
592 NTSTATUS status;
594 /* In parameters */
595 r.in.server_unc = server_unc;
596 r.in.fid = fid;
598 if (DEBUGLEVEL >= 10) {
599 NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, &r);
602 status = cli_do_rpc_ndr(cli,
603 mem_ctx,
604 &ndr_table_srvsvc,
605 NDR_SRVSVC_NETFILECLOSE,
606 &r);
608 if (!NT_STATUS_IS_OK(status)) {
609 return status;
612 if (DEBUGLEVEL >= 10) {
613 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, &r);
616 if (NT_STATUS_IS_ERR(status)) {
617 return status;
620 /* Return variables */
622 /* Return result */
623 if (werror) {
624 *werror = r.out.result;
627 return werror_to_ntstatus(r.out.result);
630 NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
631 TALLOC_CTX *mem_ctx,
632 const char *server_unc /* [in] [unique,charset(UTF16)] */,
633 const char *client /* [in] [unique,charset(UTF16)] */,
634 const char *user /* [in] [unique,charset(UTF16)] */,
635 struct srvsvc_NetSessInfoCtr *info_ctr /* [in,out] [ref] */,
636 uint32_t max_buffer /* [in] */,
637 uint32_t *totalentries /* [out] [ref] */,
638 uint32_t *resume_handle /* [in,out] [unique] */,
639 WERROR *werror)
641 struct srvsvc_NetSessEnum r;
642 NTSTATUS status;
644 /* In parameters */
645 r.in.server_unc = server_unc;
646 r.in.client = client;
647 r.in.user = user;
648 r.in.info_ctr = info_ctr;
649 r.in.max_buffer = max_buffer;
650 r.in.resume_handle = resume_handle;
652 if (DEBUGLEVEL >= 10) {
653 NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, &r);
656 status = cli_do_rpc_ndr(cli,
657 mem_ctx,
658 &ndr_table_srvsvc,
659 NDR_SRVSVC_NETSESSENUM,
660 &r);
662 if (!NT_STATUS_IS_OK(status)) {
663 return status;
666 if (DEBUGLEVEL >= 10) {
667 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, &r);
670 if (NT_STATUS_IS_ERR(status)) {
671 return status;
674 /* Return variables */
675 *info_ctr = *r.out.info_ctr;
676 *totalentries = *r.out.totalentries;
677 if (resume_handle && r.out.resume_handle) {
678 *resume_handle = *r.out.resume_handle;
681 /* Return result */
682 if (werror) {
683 *werror = r.out.result;
686 return werror_to_ntstatus(r.out.result);
689 NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
690 TALLOC_CTX *mem_ctx,
691 const char *server_unc /* [in] [unique,charset(UTF16)] */,
692 const char *client /* [in] [unique,charset(UTF16)] */,
693 const char *user /* [in] [unique,charset(UTF16)] */,
694 WERROR *werror)
696 struct srvsvc_NetSessDel r;
697 NTSTATUS status;
699 /* In parameters */
700 r.in.server_unc = server_unc;
701 r.in.client = client;
702 r.in.user = user;
704 if (DEBUGLEVEL >= 10) {
705 NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, &r);
708 status = cli_do_rpc_ndr(cli,
709 mem_ctx,
710 &ndr_table_srvsvc,
711 NDR_SRVSVC_NETSESSDEL,
712 &r);
714 if (!NT_STATUS_IS_OK(status)) {
715 return status;
718 if (DEBUGLEVEL >= 10) {
719 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, &r);
722 if (NT_STATUS_IS_ERR(status)) {
723 return status;
726 /* Return variables */
728 /* Return result */
729 if (werror) {
730 *werror = r.out.result;
733 return werror_to_ntstatus(r.out.result);
736 NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
737 TALLOC_CTX *mem_ctx,
738 const char *server_unc /* [in] [unique,charset(UTF16)] */,
739 uint32_t level /* [in] */,
740 union srvsvc_NetShareInfo *info /* [in] [ref,switch_is(level)] */,
741 uint32_t *parm_error /* [in,out] [unique] */,
742 WERROR *werror)
744 struct srvsvc_NetShareAdd r;
745 NTSTATUS status;
747 /* In parameters */
748 r.in.server_unc = server_unc;
749 r.in.level = level;
750 r.in.info = info;
751 r.in.parm_error = parm_error;
753 if (DEBUGLEVEL >= 10) {
754 NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, &r);
757 status = cli_do_rpc_ndr(cli,
758 mem_ctx,
759 &ndr_table_srvsvc,
760 NDR_SRVSVC_NETSHAREADD,
761 &r);
763 if (!NT_STATUS_IS_OK(status)) {
764 return status;
767 if (DEBUGLEVEL >= 10) {
768 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, &r);
771 if (NT_STATUS_IS_ERR(status)) {
772 return status;
775 /* Return variables */
776 if (parm_error && r.out.parm_error) {
777 *parm_error = *r.out.parm_error;
780 /* Return result */
781 if (werror) {
782 *werror = r.out.result;
785 return werror_to_ntstatus(r.out.result);
788 NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
789 TALLOC_CTX *mem_ctx,
790 const char *server_unc /* [in] [unique,charset(UTF16)] */,
791 struct srvsvc_NetShareInfoCtr *info_ctr /* [in,out] [ref] */,
792 uint32_t max_buffer /* [in] */,
793 uint32_t *totalentries /* [out] [ref] */,
794 uint32_t *resume_handle /* [in,out] [unique] */,
795 WERROR *werror)
797 struct srvsvc_NetShareEnumAll r;
798 NTSTATUS status;
800 /* In parameters */
801 r.in.server_unc = server_unc;
802 r.in.info_ctr = info_ctr;
803 r.in.max_buffer = max_buffer;
804 r.in.resume_handle = resume_handle;
806 if (DEBUGLEVEL >= 10) {
807 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, &r);
810 status = cli_do_rpc_ndr(cli,
811 mem_ctx,
812 &ndr_table_srvsvc,
813 NDR_SRVSVC_NETSHAREENUMALL,
814 &r);
816 if (!NT_STATUS_IS_OK(status)) {
817 return status;
820 if (DEBUGLEVEL >= 10) {
821 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, &r);
824 if (NT_STATUS_IS_ERR(status)) {
825 return status;
828 /* Return variables */
829 *info_ctr = *r.out.info_ctr;
830 *totalentries = *r.out.totalentries;
831 if (resume_handle && r.out.resume_handle) {
832 *resume_handle = *r.out.resume_handle;
835 /* Return result */
836 if (werror) {
837 *werror = r.out.result;
840 return werror_to_ntstatus(r.out.result);
843 NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
844 TALLOC_CTX *mem_ctx,
845 const char *server_unc /* [in] [unique,charset(UTF16)] */,
846 const char *share_name /* [in] [charset(UTF16)] */,
847 uint32_t level /* [in] */,
848 union srvsvc_NetShareInfo *info /* [out] [ref,switch_is(level)] */,
849 WERROR *werror)
851 struct srvsvc_NetShareGetInfo r;
852 NTSTATUS status;
854 /* In parameters */
855 r.in.server_unc = server_unc;
856 r.in.share_name = share_name;
857 r.in.level = level;
859 if (DEBUGLEVEL >= 10) {
860 NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, &r);
863 status = cli_do_rpc_ndr(cli,
864 mem_ctx,
865 &ndr_table_srvsvc,
866 NDR_SRVSVC_NETSHAREGETINFO,
867 &r);
869 if (!NT_STATUS_IS_OK(status)) {
870 return status;
873 if (DEBUGLEVEL >= 10) {
874 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, &r);
877 if (NT_STATUS_IS_ERR(status)) {
878 return status;
881 /* Return variables */
882 *info = *r.out.info;
884 /* Return result */
885 if (werror) {
886 *werror = r.out.result;
889 return werror_to_ntstatus(r.out.result);
892 NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
893 TALLOC_CTX *mem_ctx,
894 const char *server_unc /* [in] [unique,charset(UTF16)] */,
895 const char *share_name /* [in] [charset(UTF16)] */,
896 uint32_t level /* [in] */,
897 union srvsvc_NetShareInfo *info /* [in] [ref,switch_is(level)] */,
898 uint32_t *parm_error /* [in,out] [unique] */,
899 WERROR *werror)
901 struct srvsvc_NetShareSetInfo r;
902 NTSTATUS status;
904 /* In parameters */
905 r.in.server_unc = server_unc;
906 r.in.share_name = share_name;
907 r.in.level = level;
908 r.in.info = info;
909 r.in.parm_error = parm_error;
911 if (DEBUGLEVEL >= 10) {
912 NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, &r);
915 status = cli_do_rpc_ndr(cli,
916 mem_ctx,
917 &ndr_table_srvsvc,
918 NDR_SRVSVC_NETSHARESETINFO,
919 &r);
921 if (!NT_STATUS_IS_OK(status)) {
922 return status;
925 if (DEBUGLEVEL >= 10) {
926 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, &r);
929 if (NT_STATUS_IS_ERR(status)) {
930 return status;
933 /* Return variables */
934 if (parm_error && r.out.parm_error) {
935 *parm_error = *r.out.parm_error;
938 /* Return result */
939 if (werror) {
940 *werror = r.out.result;
943 return werror_to_ntstatus(r.out.result);
946 NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
947 TALLOC_CTX *mem_ctx,
948 const char *server_unc /* [in] [unique,charset(UTF16)] */,
949 const char *share_name /* [in] [charset(UTF16)] */,
950 uint32_t reserved /* [in] */,
951 WERROR *werror)
953 struct srvsvc_NetShareDel r;
954 NTSTATUS status;
956 /* In parameters */
957 r.in.server_unc = server_unc;
958 r.in.share_name = share_name;
959 r.in.reserved = reserved;
961 if (DEBUGLEVEL >= 10) {
962 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, &r);
965 status = cli_do_rpc_ndr(cli,
966 mem_ctx,
967 &ndr_table_srvsvc,
968 NDR_SRVSVC_NETSHAREDEL,
969 &r);
971 if (!NT_STATUS_IS_OK(status)) {
972 return status;
975 if (DEBUGLEVEL >= 10) {
976 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, &r);
979 if (NT_STATUS_IS_ERR(status)) {
980 return status;
983 /* Return variables */
985 /* Return result */
986 if (werror) {
987 *werror = r.out.result;
990 return werror_to_ntstatus(r.out.result);
993 NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
994 TALLOC_CTX *mem_ctx,
995 const char *server_unc /* [in] [unique,charset(UTF16)] */,
996 const char *share_name /* [in] [charset(UTF16)] */,
997 uint32_t reserved /* [in] */,
998 WERROR *werror)
1000 struct srvsvc_NetShareDelSticky r;
1001 NTSTATUS status;
1003 /* In parameters */
1004 r.in.server_unc = server_unc;
1005 r.in.share_name = share_name;
1006 r.in.reserved = reserved;
1008 if (DEBUGLEVEL >= 10) {
1009 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, &r);
1012 status = cli_do_rpc_ndr(cli,
1013 mem_ctx,
1014 &ndr_table_srvsvc,
1015 NDR_SRVSVC_NETSHAREDELSTICKY,
1016 &r);
1018 if (!NT_STATUS_IS_OK(status)) {
1019 return status;
1022 if (DEBUGLEVEL >= 10) {
1023 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, &r);
1026 if (NT_STATUS_IS_ERR(status)) {
1027 return status;
1030 /* Return variables */
1032 /* Return result */
1033 if (werror) {
1034 *werror = r.out.result;
1037 return werror_to_ntstatus(r.out.result);
1040 NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
1041 TALLOC_CTX *mem_ctx,
1042 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1043 const char *device_name /* [in] [charset(UTF16)] */,
1044 enum srvsvc_ShareType *type /* [out] [ref] */,
1045 WERROR *werror)
1047 struct srvsvc_NetShareCheck r;
1048 NTSTATUS status;
1050 /* In parameters */
1051 r.in.server_unc = server_unc;
1052 r.in.device_name = device_name;
1054 if (DEBUGLEVEL >= 10) {
1055 NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, &r);
1058 status = cli_do_rpc_ndr(cli,
1059 mem_ctx,
1060 &ndr_table_srvsvc,
1061 NDR_SRVSVC_NETSHARECHECK,
1062 &r);
1064 if (!NT_STATUS_IS_OK(status)) {
1065 return status;
1068 if (DEBUGLEVEL >= 10) {
1069 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, &r);
1072 if (NT_STATUS_IS_ERR(status)) {
1073 return status;
1076 /* Return variables */
1077 *type = *r.out.type;
1079 /* Return result */
1080 if (werror) {
1081 *werror = r.out.result;
1084 return werror_to_ntstatus(r.out.result);
1087 NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
1088 TALLOC_CTX *mem_ctx,
1089 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1090 uint32_t level /* [in] */,
1091 union srvsvc_NetSrvInfo *info /* [out] [ref,switch_is(level)] */,
1092 WERROR *werror)
1094 struct srvsvc_NetSrvGetInfo r;
1095 NTSTATUS status;
1097 /* In parameters */
1098 r.in.server_unc = server_unc;
1099 r.in.level = level;
1101 if (DEBUGLEVEL >= 10) {
1102 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, &r);
1105 status = cli_do_rpc_ndr(cli,
1106 mem_ctx,
1107 &ndr_table_srvsvc,
1108 NDR_SRVSVC_NETSRVGETINFO,
1109 &r);
1111 if (!NT_STATUS_IS_OK(status)) {
1112 return status;
1115 if (DEBUGLEVEL >= 10) {
1116 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, &r);
1119 if (NT_STATUS_IS_ERR(status)) {
1120 return status;
1123 /* Return variables */
1124 *info = *r.out.info;
1126 /* Return result */
1127 if (werror) {
1128 *werror = r.out.result;
1131 return werror_to_ntstatus(r.out.result);
1134 NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
1135 TALLOC_CTX *mem_ctx,
1136 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1137 uint32_t level /* [in] */,
1138 union srvsvc_NetSrvInfo *info /* [in] [ref,switch_is(level)] */,
1139 uint32_t *parm_error /* [in,out] [unique] */,
1140 WERROR *werror)
1142 struct srvsvc_NetSrvSetInfo r;
1143 NTSTATUS status;
1145 /* In parameters */
1146 r.in.server_unc = server_unc;
1147 r.in.level = level;
1148 r.in.info = info;
1149 r.in.parm_error = parm_error;
1151 if (DEBUGLEVEL >= 10) {
1152 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, &r);
1155 status = cli_do_rpc_ndr(cli,
1156 mem_ctx,
1157 &ndr_table_srvsvc,
1158 NDR_SRVSVC_NETSRVSETINFO,
1159 &r);
1161 if (!NT_STATUS_IS_OK(status)) {
1162 return status;
1165 if (DEBUGLEVEL >= 10) {
1166 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, &r);
1169 if (NT_STATUS_IS_ERR(status)) {
1170 return status;
1173 /* Return variables */
1174 if (parm_error && r.out.parm_error) {
1175 *parm_error = *r.out.parm_error;
1178 /* Return result */
1179 if (werror) {
1180 *werror = r.out.result;
1183 return werror_to_ntstatus(r.out.result);
1186 NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
1187 TALLOC_CTX *mem_ctx,
1188 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1189 uint32_t level /* [in] */,
1190 struct srvsvc_NetDiskInfo *info /* [in,out] [ref] */,
1191 uint32_t maxlen /* [in] */,
1192 uint32_t *totalentries /* [out] [ref] */,
1193 uint32_t *resume_handle /* [in,out] [unique] */,
1194 WERROR *werror)
1196 struct srvsvc_NetDiskEnum r;
1197 NTSTATUS status;
1199 /* In parameters */
1200 r.in.server_unc = server_unc;
1201 r.in.level = level;
1202 r.in.info = info;
1203 r.in.maxlen = maxlen;
1204 r.in.resume_handle = resume_handle;
1206 if (DEBUGLEVEL >= 10) {
1207 NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, &r);
1210 status = cli_do_rpc_ndr(cli,
1211 mem_ctx,
1212 &ndr_table_srvsvc,
1213 NDR_SRVSVC_NETDISKENUM,
1214 &r);
1216 if (!NT_STATUS_IS_OK(status)) {
1217 return status;
1220 if (DEBUGLEVEL >= 10) {
1221 NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, &r);
1224 if (NT_STATUS_IS_ERR(status)) {
1225 return status;
1228 /* Return variables */
1229 *info = *r.out.info;
1230 *totalentries = *r.out.totalentries;
1231 if (resume_handle && r.out.resume_handle) {
1232 *resume_handle = *r.out.resume_handle;
1235 /* Return result */
1236 if (werror) {
1237 *werror = r.out.result;
1240 return werror_to_ntstatus(r.out.result);
1243 NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
1244 TALLOC_CTX *mem_ctx,
1245 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1246 const char *service /* [in] [unique,charset(UTF16)] */,
1247 uint32_t level /* [in] */,
1248 uint32_t options /* [in] */,
1249 struct srvsvc_Statistics *stats /* [out] [ref] */,
1250 WERROR *werror)
1252 struct srvsvc_NetServerStatisticsGet r;
1253 NTSTATUS status;
1255 /* In parameters */
1256 r.in.server_unc = server_unc;
1257 r.in.service = service;
1258 r.in.level = level;
1259 r.in.options = options;
1261 if (DEBUGLEVEL >= 10) {
1262 NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, &r);
1265 status = cli_do_rpc_ndr(cli,
1266 mem_ctx,
1267 &ndr_table_srvsvc,
1268 NDR_SRVSVC_NETSERVERSTATISTICSGET,
1269 &r);
1271 if (!NT_STATUS_IS_OK(status)) {
1272 return status;
1275 if (DEBUGLEVEL >= 10) {
1276 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, &r);
1279 if (NT_STATUS_IS_ERR(status)) {
1280 return status;
1283 /* Return variables */
1284 *stats = *r.out.stats;
1286 /* Return result */
1287 if (werror) {
1288 *werror = r.out.result;
1291 return werror_to_ntstatus(r.out.result);
1294 NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
1295 TALLOC_CTX *mem_ctx,
1296 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1297 uint32_t level /* [in] */,
1298 union srvsvc_NetTransportInfo info /* [in] [switch_is(level)] */,
1299 WERROR *werror)
1301 struct srvsvc_NetTransportAdd r;
1302 NTSTATUS status;
1304 /* In parameters */
1305 r.in.server_unc = server_unc;
1306 r.in.level = level;
1307 r.in.info = info;
1309 if (DEBUGLEVEL >= 10) {
1310 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, &r);
1313 status = cli_do_rpc_ndr(cli,
1314 mem_ctx,
1315 &ndr_table_srvsvc,
1316 NDR_SRVSVC_NETTRANSPORTADD,
1317 &r);
1319 if (!NT_STATUS_IS_OK(status)) {
1320 return status;
1323 if (DEBUGLEVEL >= 10) {
1324 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, &r);
1327 if (NT_STATUS_IS_ERR(status)) {
1328 return status;
1331 /* Return variables */
1333 /* Return result */
1334 if (werror) {
1335 *werror = r.out.result;
1338 return werror_to_ntstatus(r.out.result);
1341 NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
1342 TALLOC_CTX *mem_ctx,
1343 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1344 uint32_t *level /* [in,out] [ref] */,
1345 union srvsvc_NetTransportCtr *transports /* [in,out] [ref,switch_is(*level)] */,
1346 uint32_t max_buffer /* [in] */,
1347 uint32_t *totalentries /* [out] [ref] */,
1348 uint32_t *resume_handle /* [in,out] [unique] */,
1349 WERROR *werror)
1351 struct srvsvc_NetTransportEnum r;
1352 NTSTATUS status;
1354 /* In parameters */
1355 r.in.server_unc = server_unc;
1356 r.in.level = level;
1357 r.in.transports = transports;
1358 r.in.max_buffer = max_buffer;
1359 r.in.resume_handle = resume_handle;
1361 if (DEBUGLEVEL >= 10) {
1362 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, &r);
1365 status = cli_do_rpc_ndr(cli,
1366 mem_ctx,
1367 &ndr_table_srvsvc,
1368 NDR_SRVSVC_NETTRANSPORTENUM,
1369 &r);
1371 if (!NT_STATUS_IS_OK(status)) {
1372 return status;
1375 if (DEBUGLEVEL >= 10) {
1376 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, &r);
1379 if (NT_STATUS_IS_ERR(status)) {
1380 return status;
1383 /* Return variables */
1384 *level = *r.out.level;
1385 *transports = *r.out.transports;
1386 *totalentries = *r.out.totalentries;
1387 if (resume_handle && r.out.resume_handle) {
1388 *resume_handle = *r.out.resume_handle;
1391 /* Return result */
1392 if (werror) {
1393 *werror = r.out.result;
1396 return werror_to_ntstatus(r.out.result);
1399 NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
1400 TALLOC_CTX *mem_ctx,
1401 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1402 uint32_t unknown /* [in] */,
1403 struct srvsvc_NetTransportInfo0 transport /* [in] */,
1404 WERROR *werror)
1406 struct srvsvc_NetTransportDel r;
1407 NTSTATUS status;
1409 /* In parameters */
1410 r.in.server_unc = server_unc;
1411 r.in.unknown = unknown;
1412 r.in.transport = transport;
1414 if (DEBUGLEVEL >= 10) {
1415 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, &r);
1418 status = cli_do_rpc_ndr(cli,
1419 mem_ctx,
1420 &ndr_table_srvsvc,
1421 NDR_SRVSVC_NETTRANSPORTDEL,
1422 &r);
1424 if (!NT_STATUS_IS_OK(status)) {
1425 return status;
1428 if (DEBUGLEVEL >= 10) {
1429 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, &r);
1432 if (NT_STATUS_IS_ERR(status)) {
1433 return status;
1436 /* Return variables */
1438 /* Return result */
1439 if (werror) {
1440 *werror = r.out.result;
1443 return werror_to_ntstatus(r.out.result);
1446 NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
1447 TALLOC_CTX *mem_ctx,
1448 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1449 struct srvsvc_NetRemoteTODInfo **info /* [out] [ref] */,
1450 WERROR *werror)
1452 struct srvsvc_NetRemoteTOD r;
1453 NTSTATUS status;
1455 /* In parameters */
1456 r.in.server_unc = server_unc;
1458 if (DEBUGLEVEL >= 10) {
1459 NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, &r);
1462 status = cli_do_rpc_ndr(cli,
1463 mem_ctx,
1464 &ndr_table_srvsvc,
1465 NDR_SRVSVC_NETREMOTETOD,
1466 &r);
1468 if (!NT_STATUS_IS_OK(status)) {
1469 return status;
1472 if (DEBUGLEVEL >= 10) {
1473 NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, &r);
1476 if (NT_STATUS_IS_ERR(status)) {
1477 return status;
1480 /* Return variables */
1481 *info = *r.out.info;
1483 /* Return result */
1484 if (werror) {
1485 *werror = r.out.result;
1488 return werror_to_ntstatus(r.out.result);
1491 NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
1492 TALLOC_CTX *mem_ctx,
1493 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1494 const char *transport /* [in] [unique,charset(UTF16)] */,
1495 uint32_t servicebits /* [in] */,
1496 uint32_t updateimmediately /* [in] */,
1497 WERROR *werror)
1499 struct srvsvc_NetSetServiceBits r;
1500 NTSTATUS status;
1502 /* In parameters */
1503 r.in.server_unc = server_unc;
1504 r.in.transport = transport;
1505 r.in.servicebits = servicebits;
1506 r.in.updateimmediately = updateimmediately;
1508 if (DEBUGLEVEL >= 10) {
1509 NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, &r);
1512 status = cli_do_rpc_ndr(cli,
1513 mem_ctx,
1514 &ndr_table_srvsvc,
1515 NDR_SRVSVC_NETSETSERVICEBITS,
1516 &r);
1518 if (!NT_STATUS_IS_OK(status)) {
1519 return status;
1522 if (DEBUGLEVEL >= 10) {
1523 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, &r);
1526 if (NT_STATUS_IS_ERR(status)) {
1527 return status;
1530 /* Return variables */
1532 /* Return result */
1533 if (werror) {
1534 *werror = r.out.result;
1537 return werror_to_ntstatus(r.out.result);
1540 NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
1541 TALLOC_CTX *mem_ctx,
1542 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1543 const char *path /* [in] [charset(UTF16)] */,
1544 uint32_t pathflags /* [in] */,
1545 uint32_t *pathtype /* [out] [ref] */,
1546 WERROR *werror)
1548 struct srvsvc_NetPathType r;
1549 NTSTATUS status;
1551 /* In parameters */
1552 r.in.server_unc = server_unc;
1553 r.in.path = path;
1554 r.in.pathflags = pathflags;
1556 if (DEBUGLEVEL >= 10) {
1557 NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, &r);
1560 status = cli_do_rpc_ndr(cli,
1561 mem_ctx,
1562 &ndr_table_srvsvc,
1563 NDR_SRVSVC_NETPATHTYPE,
1564 &r);
1566 if (!NT_STATUS_IS_OK(status)) {
1567 return status;
1570 if (DEBUGLEVEL >= 10) {
1571 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, &r);
1574 if (NT_STATUS_IS_ERR(status)) {
1575 return status;
1578 /* Return variables */
1579 *pathtype = *r.out.pathtype;
1581 /* Return result */
1582 if (werror) {
1583 *werror = r.out.result;
1586 return werror_to_ntstatus(r.out.result);
1589 NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
1590 TALLOC_CTX *mem_ctx,
1591 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1592 const char *path /* [in] [charset(UTF16)] */,
1593 uint8_t *can_path /* [out] [size_is(maxbuf)] */,
1594 uint32_t maxbuf /* [in] */,
1595 const char *prefix /* [in] [charset(UTF16)] */,
1596 uint32_t *pathtype /* [in,out] [ref] */,
1597 uint32_t pathflags /* [in] */,
1598 WERROR *werror)
1600 struct srvsvc_NetPathCanonicalize r;
1601 NTSTATUS status;
1603 /* In parameters */
1604 r.in.server_unc = server_unc;
1605 r.in.path = path;
1606 r.in.maxbuf = maxbuf;
1607 r.in.prefix = prefix;
1608 r.in.pathtype = pathtype;
1609 r.in.pathflags = pathflags;
1611 if (DEBUGLEVEL >= 10) {
1612 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, &r);
1615 status = cli_do_rpc_ndr(cli,
1616 mem_ctx,
1617 &ndr_table_srvsvc,
1618 NDR_SRVSVC_NETPATHCANONICALIZE,
1619 &r);
1621 if (!NT_STATUS_IS_OK(status)) {
1622 return status;
1625 if (DEBUGLEVEL >= 10) {
1626 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, &r);
1629 if (NT_STATUS_IS_ERR(status)) {
1630 return status;
1633 /* Return variables */
1634 memcpy(can_path, r.out.can_path, r.in.maxbuf * sizeof(*can_path));
1635 *pathtype = *r.out.pathtype;
1637 /* Return result */
1638 if (werror) {
1639 *werror = r.out.result;
1642 return werror_to_ntstatus(r.out.result);
1645 NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
1646 TALLOC_CTX *mem_ctx,
1647 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1648 const char *path1 /* [in] [charset(UTF16)] */,
1649 const char *path2 /* [in] [charset(UTF16)] */,
1650 uint32_t pathtype /* [in] */,
1651 uint32_t pathflags /* [in] */,
1652 WERROR *werror)
1654 struct srvsvc_NetPathCompare r;
1655 NTSTATUS status;
1657 /* In parameters */
1658 r.in.server_unc = server_unc;
1659 r.in.path1 = path1;
1660 r.in.path2 = path2;
1661 r.in.pathtype = pathtype;
1662 r.in.pathflags = pathflags;
1664 if (DEBUGLEVEL >= 10) {
1665 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, &r);
1668 status = cli_do_rpc_ndr(cli,
1669 mem_ctx,
1670 &ndr_table_srvsvc,
1671 NDR_SRVSVC_NETPATHCOMPARE,
1672 &r);
1674 if (!NT_STATUS_IS_OK(status)) {
1675 return status;
1678 if (DEBUGLEVEL >= 10) {
1679 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, &r);
1682 if (NT_STATUS_IS_ERR(status)) {
1683 return status;
1686 /* Return variables */
1688 /* Return result */
1689 if (werror) {
1690 *werror = r.out.result;
1693 return werror_to_ntstatus(r.out.result);
1696 NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
1697 TALLOC_CTX *mem_ctx,
1698 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1699 const char *name /* [in] [charset(UTF16)] */,
1700 uint32_t name_type /* [in] */,
1701 uint32_t flags /* [in] */,
1702 WERROR *werror)
1704 struct srvsvc_NetNameValidate r;
1705 NTSTATUS status;
1707 /* In parameters */
1708 r.in.server_unc = server_unc;
1709 r.in.name = name;
1710 r.in.name_type = name_type;
1711 r.in.flags = flags;
1713 if (DEBUGLEVEL >= 10) {
1714 NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, &r);
1717 status = cli_do_rpc_ndr(cli,
1718 mem_ctx,
1719 &ndr_table_srvsvc,
1720 NDR_SRVSVC_NETNAMEVALIDATE,
1721 &r);
1723 if (!NT_STATUS_IS_OK(status)) {
1724 return status;
1727 if (DEBUGLEVEL >= 10) {
1728 NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, &r);
1731 if (NT_STATUS_IS_ERR(status)) {
1732 return status;
1735 /* Return variables */
1737 /* Return result */
1738 if (werror) {
1739 *werror = r.out.result;
1742 return werror_to_ntstatus(r.out.result);
1745 NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
1746 TALLOC_CTX *mem_ctx,
1747 WERROR *werror)
1749 struct srvsvc_NETRPRNAMECANONICALIZE r;
1750 NTSTATUS status;
1752 /* In parameters */
1754 if (DEBUGLEVEL >= 10) {
1755 NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
1758 status = cli_do_rpc_ndr(cli,
1759 mem_ctx,
1760 &ndr_table_srvsvc,
1761 NDR_SRVSVC_NETRPRNAMECANONICALIZE,
1762 &r);
1764 if (!NT_STATUS_IS_OK(status)) {
1765 return status;
1768 if (DEBUGLEVEL >= 10) {
1769 NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
1772 if (NT_STATUS_IS_ERR(status)) {
1773 return status;
1776 /* Return variables */
1778 /* Return result */
1779 if (werror) {
1780 *werror = r.out.result;
1783 return werror_to_ntstatus(r.out.result);
1786 NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
1787 TALLOC_CTX *mem_ctx,
1788 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1789 const char *name1 /* [in] [charset(UTF16)] */,
1790 const char *name2 /* [in] [charset(UTF16)] */,
1791 uint32_t name_type /* [in] */,
1792 uint32_t flags /* [in] */,
1793 WERROR *werror)
1795 struct srvsvc_NetPRNameCompare r;
1796 NTSTATUS status;
1798 /* In parameters */
1799 r.in.server_unc = server_unc;
1800 r.in.name1 = name1;
1801 r.in.name2 = name2;
1802 r.in.name_type = name_type;
1803 r.in.flags = flags;
1805 if (DEBUGLEVEL >= 10) {
1806 NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, &r);
1809 status = cli_do_rpc_ndr(cli,
1810 mem_ctx,
1811 &ndr_table_srvsvc,
1812 NDR_SRVSVC_NETPRNAMECOMPARE,
1813 &r);
1815 if (!NT_STATUS_IS_OK(status)) {
1816 return status;
1819 if (DEBUGLEVEL >= 10) {
1820 NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, &r);
1823 if (NT_STATUS_IS_ERR(status)) {
1824 return status;
1827 /* Return variables */
1829 /* Return result */
1830 if (werror) {
1831 *werror = r.out.result;
1834 return werror_to_ntstatus(r.out.result);
1837 NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
1838 TALLOC_CTX *mem_ctx,
1839 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1840 struct srvsvc_NetShareInfoCtr *info_ctr /* [in,out] [ref] */,
1841 uint32_t max_buffer /* [in] */,
1842 uint32_t *totalentries /* [out] [ref] */,
1843 uint32_t *resume_handle /* [in,out] [unique] */,
1844 WERROR *werror)
1846 struct srvsvc_NetShareEnum r;
1847 NTSTATUS status;
1849 /* In parameters */
1850 r.in.server_unc = server_unc;
1851 r.in.info_ctr = info_ctr;
1852 r.in.max_buffer = max_buffer;
1853 r.in.resume_handle = resume_handle;
1855 if (DEBUGLEVEL >= 10) {
1856 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, &r);
1859 status = cli_do_rpc_ndr(cli,
1860 mem_ctx,
1861 &ndr_table_srvsvc,
1862 NDR_SRVSVC_NETSHAREENUM,
1863 &r);
1865 if (!NT_STATUS_IS_OK(status)) {
1866 return status;
1869 if (DEBUGLEVEL >= 10) {
1870 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, &r);
1873 if (NT_STATUS_IS_ERR(status)) {
1874 return status;
1877 /* Return variables */
1878 *info_ctr = *r.out.info_ctr;
1879 *totalentries = *r.out.totalentries;
1880 if (resume_handle && r.out.resume_handle) {
1881 *resume_handle = *r.out.resume_handle;
1884 /* Return result */
1885 if (werror) {
1886 *werror = r.out.result;
1889 return werror_to_ntstatus(r.out.result);
1892 NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
1893 TALLOC_CTX *mem_ctx,
1894 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1895 const char *share /* [in] [charset(UTF16)] */,
1896 uint32_t reserved /* [in] */,
1897 struct policy_handle *hnd /* [out] [unique] */,
1898 WERROR *werror)
1900 struct srvsvc_NetShareDelStart r;
1901 NTSTATUS status;
1903 /* In parameters */
1904 r.in.server_unc = server_unc;
1905 r.in.share = share;
1906 r.in.reserved = reserved;
1908 if (DEBUGLEVEL >= 10) {
1909 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, &r);
1912 status = cli_do_rpc_ndr(cli,
1913 mem_ctx,
1914 &ndr_table_srvsvc,
1915 NDR_SRVSVC_NETSHAREDELSTART,
1916 &r);
1918 if (!NT_STATUS_IS_OK(status)) {
1919 return status;
1922 if (DEBUGLEVEL >= 10) {
1923 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, &r);
1926 if (NT_STATUS_IS_ERR(status)) {
1927 return status;
1930 /* Return variables */
1931 if (hnd && r.out.hnd) {
1932 *hnd = *r.out.hnd;
1935 /* Return result */
1936 if (werror) {
1937 *werror = r.out.result;
1940 return werror_to_ntstatus(r.out.result);
1943 NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
1944 TALLOC_CTX *mem_ctx,
1945 struct policy_handle *hnd /* [in,out] [unique] */,
1946 WERROR *werror)
1948 struct srvsvc_NetShareDelCommit r;
1949 NTSTATUS status;
1951 /* In parameters */
1952 r.in.hnd = hnd;
1954 if (DEBUGLEVEL >= 10) {
1955 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, &r);
1958 status = cli_do_rpc_ndr(cli,
1959 mem_ctx,
1960 &ndr_table_srvsvc,
1961 NDR_SRVSVC_NETSHAREDELCOMMIT,
1962 &r);
1964 if (!NT_STATUS_IS_OK(status)) {
1965 return status;
1968 if (DEBUGLEVEL >= 10) {
1969 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, &r);
1972 if (NT_STATUS_IS_ERR(status)) {
1973 return status;
1976 /* Return variables */
1977 if (hnd && r.out.hnd) {
1978 *hnd = *r.out.hnd;
1981 /* Return result */
1982 if (werror) {
1983 *werror = r.out.result;
1986 return werror_to_ntstatus(r.out.result);
1989 NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
1990 TALLOC_CTX *mem_ctx,
1991 const char *server_unc /* [in] [unique,charset(UTF16)] */,
1992 const char *share /* [in] [unique,charset(UTF16)] */,
1993 const char *file /* [in] [charset(UTF16)] */,
1994 uint32_t securityinformation /* [in] */,
1995 struct sec_desc_buf **sd_buf /* [out] [ref] */,
1996 WERROR *werror)
1998 struct srvsvc_NetGetFileSecurity r;
1999 NTSTATUS status;
2001 /* In parameters */
2002 r.in.server_unc = server_unc;
2003 r.in.share = share;
2004 r.in.file = file;
2005 r.in.securityinformation = securityinformation;
2007 if (DEBUGLEVEL >= 10) {
2008 NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, &r);
2011 status = cli_do_rpc_ndr(cli,
2012 mem_ctx,
2013 &ndr_table_srvsvc,
2014 NDR_SRVSVC_NETGETFILESECURITY,
2015 &r);
2017 if (!NT_STATUS_IS_OK(status)) {
2018 return status;
2021 if (DEBUGLEVEL >= 10) {
2022 NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, &r);
2025 if (NT_STATUS_IS_ERR(status)) {
2026 return status;
2029 /* Return variables */
2030 *sd_buf = *r.out.sd_buf;
2032 /* Return result */
2033 if (werror) {
2034 *werror = r.out.result;
2037 return werror_to_ntstatus(r.out.result);
2040 NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
2041 TALLOC_CTX *mem_ctx,
2042 const char *server_unc /* [in] [unique,charset(UTF16)] */,
2043 const char *share /* [in] [unique,charset(UTF16)] */,
2044 const char *file /* [in] [charset(UTF16)] */,
2045 uint32_t securityinformation /* [in] */,
2046 struct sec_desc_buf *sd_buf /* [in] [ref] */,
2047 WERROR *werror)
2049 struct srvsvc_NetSetFileSecurity r;
2050 NTSTATUS status;
2052 /* In parameters */
2053 r.in.server_unc = server_unc;
2054 r.in.share = share;
2055 r.in.file = file;
2056 r.in.securityinformation = securityinformation;
2057 r.in.sd_buf = sd_buf;
2059 if (DEBUGLEVEL >= 10) {
2060 NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, &r);
2063 status = cli_do_rpc_ndr(cli,
2064 mem_ctx,
2065 &ndr_table_srvsvc,
2066 NDR_SRVSVC_NETSETFILESECURITY,
2067 &r);
2069 if (!NT_STATUS_IS_OK(status)) {
2070 return status;
2073 if (DEBUGLEVEL >= 10) {
2074 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, &r);
2077 if (NT_STATUS_IS_ERR(status)) {
2078 return status;
2081 /* Return variables */
2083 /* Return result */
2084 if (werror) {
2085 *werror = r.out.result;
2088 return werror_to_ntstatus(r.out.result);
2091 NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
2092 TALLOC_CTX *mem_ctx,
2093 const char *server_unc /* [in] [unique,charset(UTF16)] */,
2094 uint32_t level /* [in] */,
2095 union srvsvc_NetTransportInfo info /* [in] [switch_is(level)] */,
2096 WERROR *werror)
2098 struct srvsvc_NetServerTransportAddEx r;
2099 NTSTATUS status;
2101 /* In parameters */
2102 r.in.server_unc = server_unc;
2103 r.in.level = level;
2104 r.in.info = info;
2106 if (DEBUGLEVEL >= 10) {
2107 NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, &r);
2110 status = cli_do_rpc_ndr(cli,
2111 mem_ctx,
2112 &ndr_table_srvsvc,
2113 NDR_SRVSVC_NETSERVERTRANSPORTADDEX,
2114 &r);
2116 if (!NT_STATUS_IS_OK(status)) {
2117 return status;
2120 if (DEBUGLEVEL >= 10) {
2121 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, &r);
2124 if (NT_STATUS_IS_ERR(status)) {
2125 return status;
2128 /* Return variables */
2130 /* Return result */
2131 if (werror) {
2132 *werror = r.out.result;
2135 return werror_to_ntstatus(r.out.result);
2138 NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
2139 TALLOC_CTX *mem_ctx,
2140 const char *server_unc /* [in] [unique,charset(UTF16)] */,
2141 const char *emulated_server_unc /* [in] [unique,charset(UTF16)] */,
2142 const char *transport /* [in] [unique,charset(UTF16)] */,
2143 uint32_t servicebitsofinterest /* [in] */,
2144 uint32_t servicebits /* [in] */,
2145 uint32_t updateimmediately /* [in] */,
2146 WERROR *werror)
2148 struct srvsvc_NetServerSetServiceBitsEx r;
2149 NTSTATUS status;
2151 /* In parameters */
2152 r.in.server_unc = server_unc;
2153 r.in.emulated_server_unc = emulated_server_unc;
2154 r.in.transport = transport;
2155 r.in.servicebitsofinterest = servicebitsofinterest;
2156 r.in.servicebits = servicebits;
2157 r.in.updateimmediately = updateimmediately;
2159 if (DEBUGLEVEL >= 10) {
2160 NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
2163 status = cli_do_rpc_ndr(cli,
2164 mem_ctx,
2165 &ndr_table_srvsvc,
2166 NDR_SRVSVC_NETSERVERSETSERVICEBITSEX,
2167 &r);
2169 if (!NT_STATUS_IS_OK(status)) {
2170 return status;
2173 if (DEBUGLEVEL >= 10) {
2174 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
2177 if (NT_STATUS_IS_ERR(status)) {
2178 return status;
2181 /* Return variables */
2183 /* Return result */
2184 if (werror) {
2185 *werror = r.out.result;
2188 return werror_to_ntstatus(r.out.result);
2191 NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
2192 TALLOC_CTX *mem_ctx,
2193 WERROR *werror)
2195 struct srvsvc_NETRDFSGETVERSION r;
2196 NTSTATUS status;
2198 /* In parameters */
2200 if (DEBUGLEVEL >= 10) {
2201 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
2204 status = cli_do_rpc_ndr(cli,
2205 mem_ctx,
2206 &ndr_table_srvsvc,
2207 NDR_SRVSVC_NETRDFSGETVERSION,
2208 &r);
2210 if (!NT_STATUS_IS_OK(status)) {
2211 return status;
2214 if (DEBUGLEVEL >= 10) {
2215 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
2218 if (NT_STATUS_IS_ERR(status)) {
2219 return status;
2222 /* Return variables */
2224 /* Return result */
2225 if (werror) {
2226 *werror = r.out.result;
2229 return werror_to_ntstatus(r.out.result);
2232 NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
2233 TALLOC_CTX *mem_ctx,
2234 WERROR *werror)
2236 struct srvsvc_NETRDFSCREATELOCALPARTITION r;
2237 NTSTATUS status;
2239 /* In parameters */
2241 if (DEBUGLEVEL >= 10) {
2242 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
2245 status = cli_do_rpc_ndr(cli,
2246 mem_ctx,
2247 &ndr_table_srvsvc,
2248 NDR_SRVSVC_NETRDFSCREATELOCALPARTITION,
2249 &r);
2251 if (!NT_STATUS_IS_OK(status)) {
2252 return status;
2255 if (DEBUGLEVEL >= 10) {
2256 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
2259 if (NT_STATUS_IS_ERR(status)) {
2260 return status;
2263 /* Return variables */
2265 /* Return result */
2266 if (werror) {
2267 *werror = r.out.result;
2270 return werror_to_ntstatus(r.out.result);
2273 NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
2274 TALLOC_CTX *mem_ctx,
2275 WERROR *werror)
2277 struct srvsvc_NETRDFSDELETELOCALPARTITION r;
2278 NTSTATUS status;
2280 /* In parameters */
2282 if (DEBUGLEVEL >= 10) {
2283 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
2286 status = cli_do_rpc_ndr(cli,
2287 mem_ctx,
2288 &ndr_table_srvsvc,
2289 NDR_SRVSVC_NETRDFSDELETELOCALPARTITION,
2290 &r);
2292 if (!NT_STATUS_IS_OK(status)) {
2293 return status;
2296 if (DEBUGLEVEL >= 10) {
2297 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
2300 if (NT_STATUS_IS_ERR(status)) {
2301 return status;
2304 /* Return variables */
2306 /* Return result */
2307 if (werror) {
2308 *werror = r.out.result;
2311 return werror_to_ntstatus(r.out.result);
2314 NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
2315 TALLOC_CTX *mem_ctx,
2316 WERROR *werror)
2318 struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r;
2319 NTSTATUS status;
2321 /* In parameters */
2323 if (DEBUGLEVEL >= 10) {
2324 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
2327 status = cli_do_rpc_ndr(cli,
2328 mem_ctx,
2329 &ndr_table_srvsvc,
2330 NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE,
2331 &r);
2333 if (!NT_STATUS_IS_OK(status)) {
2334 return status;
2337 if (DEBUGLEVEL >= 10) {
2338 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
2341 if (NT_STATUS_IS_ERR(status)) {
2342 return status;
2345 /* Return variables */
2347 /* Return result */
2348 if (werror) {
2349 *werror = r.out.result;
2352 return werror_to_ntstatus(r.out.result);
2355 NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
2356 TALLOC_CTX *mem_ctx,
2357 WERROR *werror)
2359 struct srvsvc_NETRDFSSETSERVERINFO r;
2360 NTSTATUS status;
2362 /* In parameters */
2364 if (DEBUGLEVEL >= 10) {
2365 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
2368 status = cli_do_rpc_ndr(cli,
2369 mem_ctx,
2370 &ndr_table_srvsvc,
2371 NDR_SRVSVC_NETRDFSSETSERVERINFO,
2372 &r);
2374 if (!NT_STATUS_IS_OK(status)) {
2375 return status;
2378 if (DEBUGLEVEL >= 10) {
2379 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
2382 if (NT_STATUS_IS_ERR(status)) {
2383 return status;
2386 /* Return variables */
2388 /* Return result */
2389 if (werror) {
2390 *werror = r.out.result;
2393 return werror_to_ntstatus(r.out.result);
2396 NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
2397 TALLOC_CTX *mem_ctx,
2398 WERROR *werror)
2400 struct srvsvc_NETRDFSCREATEEXITPOINT r;
2401 NTSTATUS status;
2403 /* In parameters */
2405 if (DEBUGLEVEL >= 10) {
2406 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
2409 status = cli_do_rpc_ndr(cli,
2410 mem_ctx,
2411 &ndr_table_srvsvc,
2412 NDR_SRVSVC_NETRDFSCREATEEXITPOINT,
2413 &r);
2415 if (!NT_STATUS_IS_OK(status)) {
2416 return status;
2419 if (DEBUGLEVEL >= 10) {
2420 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
2423 if (NT_STATUS_IS_ERR(status)) {
2424 return status;
2427 /* Return variables */
2429 /* Return result */
2430 if (werror) {
2431 *werror = r.out.result;
2434 return werror_to_ntstatus(r.out.result);
2437 NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
2438 TALLOC_CTX *mem_ctx,
2439 WERROR *werror)
2441 struct srvsvc_NETRDFSDELETEEXITPOINT r;
2442 NTSTATUS status;
2444 /* In parameters */
2446 if (DEBUGLEVEL >= 10) {
2447 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
2450 status = cli_do_rpc_ndr(cli,
2451 mem_ctx,
2452 &ndr_table_srvsvc,
2453 NDR_SRVSVC_NETRDFSDELETEEXITPOINT,
2454 &r);
2456 if (!NT_STATUS_IS_OK(status)) {
2457 return status;
2460 if (DEBUGLEVEL >= 10) {
2461 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
2464 if (NT_STATUS_IS_ERR(status)) {
2465 return status;
2468 /* Return variables */
2470 /* Return result */
2471 if (werror) {
2472 *werror = r.out.result;
2475 return werror_to_ntstatus(r.out.result);
2478 NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
2479 TALLOC_CTX *mem_ctx,
2480 WERROR *werror)
2482 struct srvsvc_NETRDFSMODIFYPREFIX r;
2483 NTSTATUS status;
2485 /* In parameters */
2487 if (DEBUGLEVEL >= 10) {
2488 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
2491 status = cli_do_rpc_ndr(cli,
2492 mem_ctx,
2493 &ndr_table_srvsvc,
2494 NDR_SRVSVC_NETRDFSMODIFYPREFIX,
2495 &r);
2497 if (!NT_STATUS_IS_OK(status)) {
2498 return status;
2501 if (DEBUGLEVEL >= 10) {
2502 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
2505 if (NT_STATUS_IS_ERR(status)) {
2506 return status;
2509 /* Return variables */
2511 /* Return result */
2512 if (werror) {
2513 *werror = r.out.result;
2516 return werror_to_ntstatus(r.out.result);
2519 NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
2520 TALLOC_CTX *mem_ctx,
2521 WERROR *werror)
2523 struct srvsvc_NETRDFSFIXLOCALVOLUME r;
2524 NTSTATUS status;
2526 /* In parameters */
2528 if (DEBUGLEVEL >= 10) {
2529 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
2532 status = cli_do_rpc_ndr(cli,
2533 mem_ctx,
2534 &ndr_table_srvsvc,
2535 NDR_SRVSVC_NETRDFSFIXLOCALVOLUME,
2536 &r);
2538 if (!NT_STATUS_IS_OK(status)) {
2539 return status;
2542 if (DEBUGLEVEL >= 10) {
2543 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
2546 if (NT_STATUS_IS_ERR(status)) {
2547 return status;
2550 /* Return variables */
2552 /* Return result */
2553 if (werror) {
2554 *werror = r.out.result;
2557 return werror_to_ntstatus(r.out.result);
2560 NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
2561 TALLOC_CTX *mem_ctx,
2562 WERROR *werror)
2564 struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r;
2565 NTSTATUS status;
2567 /* In parameters */
2569 if (DEBUGLEVEL >= 10) {
2570 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
2573 status = cli_do_rpc_ndr(cli,
2574 mem_ctx,
2575 &ndr_table_srvsvc,
2576 NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO,
2577 &r);
2579 if (!NT_STATUS_IS_OK(status)) {
2580 return status;
2583 if (DEBUGLEVEL >= 10) {
2584 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
2587 if (NT_STATUS_IS_ERR(status)) {
2588 return status;
2591 /* Return variables */
2593 /* Return result */
2594 if (werror) {
2595 *werror = r.out.result;
2598 return werror_to_ntstatus(r.out.result);
2601 NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
2602 TALLOC_CTX *mem_ctx,
2603 WERROR *werror)
2605 struct srvsvc_NETRSERVERTRANSPORTDELEX r;
2606 NTSTATUS status;
2608 /* In parameters */
2610 if (DEBUGLEVEL >= 10) {
2611 NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
2614 status = cli_do_rpc_ndr(cli,
2615 mem_ctx,
2616 &ndr_table_srvsvc,
2617 NDR_SRVSVC_NETRSERVERTRANSPORTDELEX,
2618 &r);
2620 if (!NT_STATUS_IS_OK(status)) {
2621 return status;
2624 if (DEBUGLEVEL >= 10) {
2625 NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
2628 if (NT_STATUS_IS_ERR(status)) {
2629 return status;
2632 /* Return variables */
2634 /* Return result */
2635 if (werror) {
2636 *werror = r.out.result;
2639 return werror_to_ntstatus(r.out.result);