2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "../librpc/gen_ndr/cli_srvsvc.h"
9 NTSTATUS
rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client
*cli
,
11 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
12 struct srvsvc_NetCharDevInfoCtr
*info_ctr
/* [in,out] [ref] */,
13 uint32_t max_buffer
/* [in] */,
14 uint32_t *totalentries
/* [out] [ref] */,
15 uint32_t *resume_handle
/* [in,out] [unique] */,
18 struct srvsvc_NetCharDevEnum r
;
22 r
.in
.server_unc
= server_unc
;
23 r
.in
.info_ctr
= info_ctr
;
24 r
.in
.max_buffer
= max_buffer
;
25 r
.in
.resume_handle
= resume_handle
;
27 if (DEBUGLEVEL
>= 10) {
28 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum
, &r
);
31 status
= cli
->dispatch(cli
,
34 NDR_SRVSVC_NETCHARDEVENUM
,
37 if (!NT_STATUS_IS_OK(status
)) {
41 if (DEBUGLEVEL
>= 10) {
42 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum
, &r
);
45 if (NT_STATUS_IS_ERR(status
)) {
49 /* Return variables */
50 *info_ctr
= *r
.out
.info_ctr
;
51 *totalentries
= *r
.out
.totalentries
;
52 if (resume_handle
&& r
.out
.resume_handle
) {
53 *resume_handle
= *r
.out
.resume_handle
;
58 *werror
= r
.out
.result
;
61 return werror_to_ntstatus(r
.out
.result
);
64 NTSTATUS
rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client
*cli
,
66 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
67 const char *device_name
/* [in] [charset(UTF16)] */,
68 uint32_t level
/* [in] */,
69 union srvsvc_NetCharDevInfo
*info
/* [out] [ref,switch_is(level)] */,
72 struct srvsvc_NetCharDevGetInfo r
;
76 r
.in
.server_unc
= server_unc
;
77 r
.in
.device_name
= device_name
;
80 if (DEBUGLEVEL
>= 10) {
81 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
84 status
= cli
->dispatch(cli
,
87 NDR_SRVSVC_NETCHARDEVGETINFO
,
90 if (!NT_STATUS_IS_OK(status
)) {
94 if (DEBUGLEVEL
>= 10) {
95 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
98 if (NT_STATUS_IS_ERR(status
)) {
102 /* Return variables */
107 *werror
= r
.out
.result
;
110 return werror_to_ntstatus(r
.out
.result
);
113 NTSTATUS
rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client
*cli
,
115 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
116 const char *device_name
/* [in] [charset(UTF16)] */,
117 uint32_t opcode
/* [in] */,
120 struct srvsvc_NetCharDevControl r
;
124 r
.in
.server_unc
= server_unc
;
125 r
.in
.device_name
= device_name
;
126 r
.in
.opcode
= opcode
;
128 if (DEBUGLEVEL
>= 10) {
129 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl
, &r
);
132 status
= cli
->dispatch(cli
,
135 NDR_SRVSVC_NETCHARDEVCONTROL
,
138 if (!NT_STATUS_IS_OK(status
)) {
142 if (DEBUGLEVEL
>= 10) {
143 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl
, &r
);
146 if (NT_STATUS_IS_ERR(status
)) {
150 /* Return variables */
154 *werror
= r
.out
.result
;
157 return werror_to_ntstatus(r
.out
.result
);
160 NTSTATUS
rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client
*cli
,
162 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
163 const char *user
/* [in] [unique,charset(UTF16)] */,
164 struct srvsvc_NetCharDevQInfoCtr
*info_ctr
/* [in,out] [ref] */,
165 uint32_t max_buffer
/* [in] */,
166 uint32_t *totalentries
/* [out] [ref] */,
167 uint32_t *resume_handle
/* [in,out] [unique] */,
170 struct srvsvc_NetCharDevQEnum r
;
174 r
.in
.server_unc
= server_unc
;
176 r
.in
.info_ctr
= info_ctr
;
177 r
.in
.max_buffer
= max_buffer
;
178 r
.in
.resume_handle
= resume_handle
;
180 if (DEBUGLEVEL
>= 10) {
181 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum
, &r
);
184 status
= cli
->dispatch(cli
,
187 NDR_SRVSVC_NETCHARDEVQENUM
,
190 if (!NT_STATUS_IS_OK(status
)) {
194 if (DEBUGLEVEL
>= 10) {
195 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum
, &r
);
198 if (NT_STATUS_IS_ERR(status
)) {
202 /* Return variables */
203 *info_ctr
= *r
.out
.info_ctr
;
204 *totalentries
= *r
.out
.totalentries
;
205 if (resume_handle
&& r
.out
.resume_handle
) {
206 *resume_handle
= *r
.out
.resume_handle
;
211 *werror
= r
.out
.result
;
214 return werror_to_ntstatus(r
.out
.result
);
217 NTSTATUS
rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client
*cli
,
219 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
220 const char *queue_name
/* [in] [charset(UTF16)] */,
221 const char *user
/* [in] [charset(UTF16)] */,
222 uint32_t level
/* [in] */,
223 union srvsvc_NetCharDevQInfo
*info
/* [out] [ref,switch_is(level)] */,
226 struct srvsvc_NetCharDevQGetInfo r
;
230 r
.in
.server_unc
= server_unc
;
231 r
.in
.queue_name
= queue_name
;
235 if (DEBUGLEVEL
>= 10) {
236 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
239 status
= cli
->dispatch(cli
,
242 NDR_SRVSVC_NETCHARDEVQGETINFO
,
245 if (!NT_STATUS_IS_OK(status
)) {
249 if (DEBUGLEVEL
>= 10) {
250 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
253 if (NT_STATUS_IS_ERR(status
)) {
257 /* Return variables */
262 *werror
= r
.out
.result
;
265 return werror_to_ntstatus(r
.out
.result
);
268 NTSTATUS
rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client
*cli
,
270 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
271 const char *queue_name
/* [in] [charset(UTF16)] */,
272 uint32_t level
/* [in] */,
273 union srvsvc_NetCharDevQInfo info
/* [in] [switch_is(level)] */,
274 uint32_t *parm_error
/* [in,out] [unique] */,
277 struct srvsvc_NetCharDevQSetInfo r
;
281 r
.in
.server_unc
= server_unc
;
282 r
.in
.queue_name
= queue_name
;
285 r
.in
.parm_error
= parm_error
;
287 if (DEBUGLEVEL
>= 10) {
288 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo
, &r
);
291 status
= cli
->dispatch(cli
,
294 NDR_SRVSVC_NETCHARDEVQSETINFO
,
297 if (!NT_STATUS_IS_OK(status
)) {
301 if (DEBUGLEVEL
>= 10) {
302 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo
, &r
);
305 if (NT_STATUS_IS_ERR(status
)) {
309 /* Return variables */
310 if (parm_error
&& r
.out
.parm_error
) {
311 *parm_error
= *r
.out
.parm_error
;
316 *werror
= r
.out
.result
;
319 return werror_to_ntstatus(r
.out
.result
);
322 NTSTATUS
rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client
*cli
,
324 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
325 const char *queue_name
/* [in] [charset(UTF16)] */,
328 struct srvsvc_NetCharDevQPurge r
;
332 r
.in
.server_unc
= server_unc
;
333 r
.in
.queue_name
= queue_name
;
335 if (DEBUGLEVEL
>= 10) {
336 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge
, &r
);
339 status
= cli
->dispatch(cli
,
342 NDR_SRVSVC_NETCHARDEVQPURGE
,
345 if (!NT_STATUS_IS_OK(status
)) {
349 if (DEBUGLEVEL
>= 10) {
350 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge
, &r
);
353 if (NT_STATUS_IS_ERR(status
)) {
357 /* Return variables */
361 *werror
= r
.out
.result
;
364 return werror_to_ntstatus(r
.out
.result
);
367 NTSTATUS
rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client
*cli
,
369 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
370 const char *queue_name
/* [in] [charset(UTF16)] */,
371 const char *computer_name
/* [in] [charset(UTF16)] */,
374 struct srvsvc_NetCharDevQPurgeSelf r
;
378 r
.in
.server_unc
= server_unc
;
379 r
.in
.queue_name
= queue_name
;
380 r
.in
.computer_name
= computer_name
;
382 if (DEBUGLEVEL
>= 10) {
383 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf
, &r
);
386 status
= cli
->dispatch(cli
,
389 NDR_SRVSVC_NETCHARDEVQPURGESELF
,
392 if (!NT_STATUS_IS_OK(status
)) {
396 if (DEBUGLEVEL
>= 10) {
397 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf
, &r
);
400 if (NT_STATUS_IS_ERR(status
)) {
404 /* Return variables */
408 *werror
= r
.out
.result
;
411 return werror_to_ntstatus(r
.out
.result
);
414 NTSTATUS
rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client
*cli
,
416 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
417 const char *path
/* [in] [unique,charset(UTF16)] */,
418 struct srvsvc_NetConnInfoCtr
*info_ctr
/* [in,out] [ref] */,
419 uint32_t max_buffer
/* [in] */,
420 uint32_t *totalentries
/* [out] [ref] */,
421 uint32_t *resume_handle
/* [in,out] [unique] */,
424 struct srvsvc_NetConnEnum r
;
428 r
.in
.server_unc
= server_unc
;
430 r
.in
.info_ctr
= info_ctr
;
431 r
.in
.max_buffer
= max_buffer
;
432 r
.in
.resume_handle
= resume_handle
;
434 if (DEBUGLEVEL
>= 10) {
435 NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum
, &r
);
438 status
= cli
->dispatch(cli
,
441 NDR_SRVSVC_NETCONNENUM
,
444 if (!NT_STATUS_IS_OK(status
)) {
448 if (DEBUGLEVEL
>= 10) {
449 NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum
, &r
);
452 if (NT_STATUS_IS_ERR(status
)) {
456 /* Return variables */
457 *info_ctr
= *r
.out
.info_ctr
;
458 *totalentries
= *r
.out
.totalentries
;
459 if (resume_handle
&& r
.out
.resume_handle
) {
460 *resume_handle
= *r
.out
.resume_handle
;
465 *werror
= r
.out
.result
;
468 return werror_to_ntstatus(r
.out
.result
);
471 NTSTATUS
rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client
*cli
,
473 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
474 const char *path
/* [in] [unique,charset(UTF16)] */,
475 const char *user
/* [in] [unique,charset(UTF16)] */,
476 struct srvsvc_NetFileInfoCtr
*info_ctr
/* [in,out] [ref] */,
477 uint32_t max_buffer
/* [in] */,
478 uint32_t *totalentries
/* [out] [ref] */,
479 uint32_t *resume_handle
/* [in,out] [unique] */,
482 struct srvsvc_NetFileEnum r
;
486 r
.in
.server_unc
= server_unc
;
489 r
.in
.info_ctr
= info_ctr
;
490 r
.in
.max_buffer
= max_buffer
;
491 r
.in
.resume_handle
= resume_handle
;
493 if (DEBUGLEVEL
>= 10) {
494 NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum
, &r
);
497 status
= cli
->dispatch(cli
,
500 NDR_SRVSVC_NETFILEENUM
,
503 if (!NT_STATUS_IS_OK(status
)) {
507 if (DEBUGLEVEL
>= 10) {
508 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum
, &r
);
511 if (NT_STATUS_IS_ERR(status
)) {
515 /* Return variables */
516 *info_ctr
= *r
.out
.info_ctr
;
517 *totalentries
= *r
.out
.totalentries
;
518 if (resume_handle
&& r
.out
.resume_handle
) {
519 *resume_handle
= *r
.out
.resume_handle
;
524 *werror
= r
.out
.result
;
527 return werror_to_ntstatus(r
.out
.result
);
530 NTSTATUS
rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client
*cli
,
532 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
533 uint32_t fid
/* [in] */,
534 uint32_t level
/* [in] */,
535 union srvsvc_NetFileInfo
*info
/* [out] [ref,switch_is(level)] */,
538 struct srvsvc_NetFileGetInfo r
;
542 r
.in
.server_unc
= server_unc
;
546 if (DEBUGLEVEL
>= 10) {
547 NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo
, &r
);
550 status
= cli
->dispatch(cli
,
553 NDR_SRVSVC_NETFILEGETINFO
,
556 if (!NT_STATUS_IS_OK(status
)) {
560 if (DEBUGLEVEL
>= 10) {
561 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo
, &r
);
564 if (NT_STATUS_IS_ERR(status
)) {
568 /* Return variables */
573 *werror
= r
.out
.result
;
576 return werror_to_ntstatus(r
.out
.result
);
579 NTSTATUS
rpccli_srvsvc_NetFileClose(struct rpc_pipe_client
*cli
,
581 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
582 uint32_t fid
/* [in] */,
585 struct srvsvc_NetFileClose r
;
589 r
.in
.server_unc
= server_unc
;
592 if (DEBUGLEVEL
>= 10) {
593 NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose
, &r
);
596 status
= cli
->dispatch(cli
,
599 NDR_SRVSVC_NETFILECLOSE
,
602 if (!NT_STATUS_IS_OK(status
)) {
606 if (DEBUGLEVEL
>= 10) {
607 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose
, &r
);
610 if (NT_STATUS_IS_ERR(status
)) {
614 /* Return variables */
618 *werror
= r
.out
.result
;
621 return werror_to_ntstatus(r
.out
.result
);
624 NTSTATUS
rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client
*cli
,
626 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
627 const char *client
/* [in] [unique,charset(UTF16)] */,
628 const char *user
/* [in] [unique,charset(UTF16)] */,
629 struct srvsvc_NetSessInfoCtr
*info_ctr
/* [in,out] [ref] */,
630 uint32_t max_buffer
/* [in] */,
631 uint32_t *totalentries
/* [out] [ref] */,
632 uint32_t *resume_handle
/* [in,out] [unique] */,
635 struct srvsvc_NetSessEnum r
;
639 r
.in
.server_unc
= server_unc
;
640 r
.in
.client
= client
;
642 r
.in
.info_ctr
= info_ctr
;
643 r
.in
.max_buffer
= max_buffer
;
644 r
.in
.resume_handle
= resume_handle
;
646 if (DEBUGLEVEL
>= 10) {
647 NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum
, &r
);
650 status
= cli
->dispatch(cli
,
653 NDR_SRVSVC_NETSESSENUM
,
656 if (!NT_STATUS_IS_OK(status
)) {
660 if (DEBUGLEVEL
>= 10) {
661 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum
, &r
);
664 if (NT_STATUS_IS_ERR(status
)) {
668 /* Return variables */
669 *info_ctr
= *r
.out
.info_ctr
;
670 *totalentries
= *r
.out
.totalentries
;
671 if (resume_handle
&& r
.out
.resume_handle
) {
672 *resume_handle
= *r
.out
.resume_handle
;
677 *werror
= r
.out
.result
;
680 return werror_to_ntstatus(r
.out
.result
);
683 NTSTATUS
rpccli_srvsvc_NetSessDel(struct rpc_pipe_client
*cli
,
685 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
686 const char *client
/* [in] [unique,charset(UTF16)] */,
687 const char *user
/* [in] [unique,charset(UTF16)] */,
690 struct srvsvc_NetSessDel r
;
694 r
.in
.server_unc
= server_unc
;
695 r
.in
.client
= client
;
698 if (DEBUGLEVEL
>= 10) {
699 NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel
, &r
);
702 status
= cli
->dispatch(cli
,
705 NDR_SRVSVC_NETSESSDEL
,
708 if (!NT_STATUS_IS_OK(status
)) {
712 if (DEBUGLEVEL
>= 10) {
713 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel
, &r
);
716 if (NT_STATUS_IS_ERR(status
)) {
720 /* Return variables */
724 *werror
= r
.out
.result
;
727 return werror_to_ntstatus(r
.out
.result
);
730 NTSTATUS
rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client
*cli
,
732 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
733 uint32_t level
/* [in] */,
734 union srvsvc_NetShareInfo
*info
/* [in] [ref,switch_is(level)] */,
735 uint32_t *parm_error
/* [in,out] [unique] */,
738 struct srvsvc_NetShareAdd r
;
742 r
.in
.server_unc
= server_unc
;
745 r
.in
.parm_error
= parm_error
;
747 if (DEBUGLEVEL
>= 10) {
748 NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd
, &r
);
751 status
= cli
->dispatch(cli
,
754 NDR_SRVSVC_NETSHAREADD
,
757 if (!NT_STATUS_IS_OK(status
)) {
761 if (DEBUGLEVEL
>= 10) {
762 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd
, &r
);
765 if (NT_STATUS_IS_ERR(status
)) {
769 /* Return variables */
770 if (parm_error
&& r
.out
.parm_error
) {
771 *parm_error
= *r
.out
.parm_error
;
776 *werror
= r
.out
.result
;
779 return werror_to_ntstatus(r
.out
.result
);
782 NTSTATUS
rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client
*cli
,
784 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
785 struct srvsvc_NetShareInfoCtr
*info_ctr
/* [in,out] [ref] */,
786 uint32_t max_buffer
/* [in] */,
787 uint32_t *totalentries
/* [out] [ref] */,
788 uint32_t *resume_handle
/* [in,out] [unique] */,
791 struct srvsvc_NetShareEnumAll r
;
795 r
.in
.server_unc
= server_unc
;
796 r
.in
.info_ctr
= info_ctr
;
797 r
.in
.max_buffer
= max_buffer
;
798 r
.in
.resume_handle
= resume_handle
;
800 if (DEBUGLEVEL
>= 10) {
801 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll
, &r
);
804 status
= cli
->dispatch(cli
,
807 NDR_SRVSVC_NETSHAREENUMALL
,
810 if (!NT_STATUS_IS_OK(status
)) {
814 if (DEBUGLEVEL
>= 10) {
815 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll
, &r
);
818 if (NT_STATUS_IS_ERR(status
)) {
822 /* Return variables */
823 *info_ctr
= *r
.out
.info_ctr
;
824 *totalentries
= *r
.out
.totalentries
;
825 if (resume_handle
&& r
.out
.resume_handle
) {
826 *resume_handle
= *r
.out
.resume_handle
;
831 *werror
= r
.out
.result
;
834 return werror_to_ntstatus(r
.out
.result
);
837 NTSTATUS
rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client
*cli
,
839 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
840 const char *share_name
/* [in] [charset(UTF16)] */,
841 uint32_t level
/* [in] */,
842 union srvsvc_NetShareInfo
*info
/* [out] [ref,switch_is(level)] */,
845 struct srvsvc_NetShareGetInfo r
;
849 r
.in
.server_unc
= server_unc
;
850 r
.in
.share_name
= share_name
;
853 if (DEBUGLEVEL
>= 10) {
854 NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo
, &r
);
857 status
= cli
->dispatch(cli
,
860 NDR_SRVSVC_NETSHAREGETINFO
,
863 if (!NT_STATUS_IS_OK(status
)) {
867 if (DEBUGLEVEL
>= 10) {
868 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo
, &r
);
871 if (NT_STATUS_IS_ERR(status
)) {
875 /* Return variables */
880 *werror
= r
.out
.result
;
883 return werror_to_ntstatus(r
.out
.result
);
886 NTSTATUS
rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client
*cli
,
888 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
889 const char *share_name
/* [in] [charset(UTF16)] */,
890 uint32_t level
/* [in] */,
891 union srvsvc_NetShareInfo
*info
/* [in] [ref,switch_is(level)] */,
892 uint32_t *parm_error
/* [in,out] [unique] */,
895 struct srvsvc_NetShareSetInfo r
;
899 r
.in
.server_unc
= server_unc
;
900 r
.in
.share_name
= share_name
;
903 r
.in
.parm_error
= parm_error
;
905 if (DEBUGLEVEL
>= 10) {
906 NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo
, &r
);
909 status
= cli
->dispatch(cli
,
912 NDR_SRVSVC_NETSHARESETINFO
,
915 if (!NT_STATUS_IS_OK(status
)) {
919 if (DEBUGLEVEL
>= 10) {
920 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo
, &r
);
923 if (NT_STATUS_IS_ERR(status
)) {
927 /* Return variables */
928 if (parm_error
&& r
.out
.parm_error
) {
929 *parm_error
= *r
.out
.parm_error
;
934 *werror
= r
.out
.result
;
937 return werror_to_ntstatus(r
.out
.result
);
940 NTSTATUS
rpccli_srvsvc_NetShareDel(struct rpc_pipe_client
*cli
,
942 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
943 const char *share_name
/* [in] [charset(UTF16)] */,
944 uint32_t reserved
/* [in] */,
947 struct srvsvc_NetShareDel r
;
951 r
.in
.server_unc
= server_unc
;
952 r
.in
.share_name
= share_name
;
953 r
.in
.reserved
= reserved
;
955 if (DEBUGLEVEL
>= 10) {
956 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel
, &r
);
959 status
= cli
->dispatch(cli
,
962 NDR_SRVSVC_NETSHAREDEL
,
965 if (!NT_STATUS_IS_OK(status
)) {
969 if (DEBUGLEVEL
>= 10) {
970 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel
, &r
);
973 if (NT_STATUS_IS_ERR(status
)) {
977 /* Return variables */
981 *werror
= r
.out
.result
;
984 return werror_to_ntstatus(r
.out
.result
);
987 NTSTATUS
rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client
*cli
,
989 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
990 const char *share_name
/* [in] [charset(UTF16)] */,
991 uint32_t reserved
/* [in] */,
994 struct srvsvc_NetShareDelSticky r
;
998 r
.in
.server_unc
= server_unc
;
999 r
.in
.share_name
= share_name
;
1000 r
.in
.reserved
= reserved
;
1002 if (DEBUGLEVEL
>= 10) {
1003 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky
, &r
);
1006 status
= cli
->dispatch(cli
,
1009 NDR_SRVSVC_NETSHAREDELSTICKY
,
1012 if (!NT_STATUS_IS_OK(status
)) {
1016 if (DEBUGLEVEL
>= 10) {
1017 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky
, &r
);
1020 if (NT_STATUS_IS_ERR(status
)) {
1024 /* Return variables */
1028 *werror
= r
.out
.result
;
1031 return werror_to_ntstatus(r
.out
.result
);
1034 NTSTATUS
rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client
*cli
,
1035 TALLOC_CTX
*mem_ctx
,
1036 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1037 const char *device_name
/* [in] [charset(UTF16)] */,
1038 enum srvsvc_ShareType
*type
/* [out] [ref] */,
1041 struct srvsvc_NetShareCheck r
;
1045 r
.in
.server_unc
= server_unc
;
1046 r
.in
.device_name
= device_name
;
1048 if (DEBUGLEVEL
>= 10) {
1049 NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck
, &r
);
1052 status
= cli
->dispatch(cli
,
1055 NDR_SRVSVC_NETSHARECHECK
,
1058 if (!NT_STATUS_IS_OK(status
)) {
1062 if (DEBUGLEVEL
>= 10) {
1063 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck
, &r
);
1066 if (NT_STATUS_IS_ERR(status
)) {
1070 /* Return variables */
1071 *type
= *r
.out
.type
;
1075 *werror
= r
.out
.result
;
1078 return werror_to_ntstatus(r
.out
.result
);
1081 NTSTATUS
rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client
*cli
,
1082 TALLOC_CTX
*mem_ctx
,
1083 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1084 uint32_t level
/* [in] */,
1085 union srvsvc_NetSrvInfo
*info
/* [out] [ref,switch_is(level)] */,
1088 struct srvsvc_NetSrvGetInfo r
;
1092 r
.in
.server_unc
= server_unc
;
1095 if (DEBUGLEVEL
>= 10) {
1096 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1099 status
= cli
->dispatch(cli
,
1102 NDR_SRVSVC_NETSRVGETINFO
,
1105 if (!NT_STATUS_IS_OK(status
)) {
1109 if (DEBUGLEVEL
>= 10) {
1110 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1113 if (NT_STATUS_IS_ERR(status
)) {
1117 /* Return variables */
1118 *info
= *r
.out
.info
;
1122 *werror
= r
.out
.result
;
1125 return werror_to_ntstatus(r
.out
.result
);
1128 NTSTATUS
rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client
*cli
,
1129 TALLOC_CTX
*mem_ctx
,
1130 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1131 uint32_t level
/* [in] */,
1132 union srvsvc_NetSrvInfo
*info
/* [in] [ref,switch_is(level)] */,
1133 uint32_t *parm_error
/* [in,out] [unique] */,
1136 struct srvsvc_NetSrvSetInfo r
;
1140 r
.in
.server_unc
= server_unc
;
1143 r
.in
.parm_error
= parm_error
;
1145 if (DEBUGLEVEL
>= 10) {
1146 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo
, &r
);
1149 status
= cli
->dispatch(cli
,
1152 NDR_SRVSVC_NETSRVSETINFO
,
1155 if (!NT_STATUS_IS_OK(status
)) {
1159 if (DEBUGLEVEL
>= 10) {
1160 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo
, &r
);
1163 if (NT_STATUS_IS_ERR(status
)) {
1167 /* Return variables */
1168 if (parm_error
&& r
.out
.parm_error
) {
1169 *parm_error
= *r
.out
.parm_error
;
1174 *werror
= r
.out
.result
;
1177 return werror_to_ntstatus(r
.out
.result
);
1180 NTSTATUS
rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client
*cli
,
1181 TALLOC_CTX
*mem_ctx
,
1182 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1183 uint32_t level
/* [in] */,
1184 struct srvsvc_NetDiskInfo
*info
/* [in,out] [ref] */,
1185 uint32_t maxlen
/* [in] */,
1186 uint32_t *totalentries
/* [out] [ref] */,
1187 uint32_t *resume_handle
/* [in,out] [unique] */,
1190 struct srvsvc_NetDiskEnum r
;
1194 r
.in
.server_unc
= server_unc
;
1197 r
.in
.maxlen
= maxlen
;
1198 r
.in
.resume_handle
= resume_handle
;
1200 if (DEBUGLEVEL
>= 10) {
1201 NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum
, &r
);
1204 status
= cli
->dispatch(cli
,
1207 NDR_SRVSVC_NETDISKENUM
,
1210 if (!NT_STATUS_IS_OK(status
)) {
1214 if (DEBUGLEVEL
>= 10) {
1215 NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum
, &r
);
1218 if (NT_STATUS_IS_ERR(status
)) {
1222 /* Return variables */
1223 *info
= *r
.out
.info
;
1224 *totalentries
= *r
.out
.totalentries
;
1225 if (resume_handle
&& r
.out
.resume_handle
) {
1226 *resume_handle
= *r
.out
.resume_handle
;
1231 *werror
= r
.out
.result
;
1234 return werror_to_ntstatus(r
.out
.result
);
1237 NTSTATUS
rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client
*cli
,
1238 TALLOC_CTX
*mem_ctx
,
1239 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1240 const char *service
/* [in] [unique,charset(UTF16)] */,
1241 uint32_t level
/* [in] */,
1242 uint32_t options
/* [in] */,
1243 struct srvsvc_Statistics
**stats
/* [out] [ref] */,
1246 struct srvsvc_NetServerStatisticsGet r
;
1250 r
.in
.server_unc
= server_unc
;
1251 r
.in
.service
= service
;
1253 r
.in
.options
= options
;
1255 if (DEBUGLEVEL
>= 10) {
1256 NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1259 status
= cli
->dispatch(cli
,
1262 NDR_SRVSVC_NETSERVERSTATISTICSGET
,
1265 if (!NT_STATUS_IS_OK(status
)) {
1269 if (DEBUGLEVEL
>= 10) {
1270 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1273 if (NT_STATUS_IS_ERR(status
)) {
1277 /* Return variables */
1278 *stats
= *r
.out
.stats
;
1282 *werror
= r
.out
.result
;
1285 return werror_to_ntstatus(r
.out
.result
);
1288 NTSTATUS
rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client
*cli
,
1289 TALLOC_CTX
*mem_ctx
,
1290 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1291 uint32_t level
/* [in] */,
1292 union srvsvc_NetTransportInfo info
/* [in] [switch_is(level)] */,
1295 struct srvsvc_NetTransportAdd r
;
1299 r
.in
.server_unc
= server_unc
;
1303 if (DEBUGLEVEL
>= 10) {
1304 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd
, &r
);
1307 status
= cli
->dispatch(cli
,
1310 NDR_SRVSVC_NETTRANSPORTADD
,
1313 if (!NT_STATUS_IS_OK(status
)) {
1317 if (DEBUGLEVEL
>= 10) {
1318 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd
, &r
);
1321 if (NT_STATUS_IS_ERR(status
)) {
1325 /* Return variables */
1329 *werror
= r
.out
.result
;
1332 return werror_to_ntstatus(r
.out
.result
);
1335 NTSTATUS
rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client
*cli
,
1336 TALLOC_CTX
*mem_ctx
,
1337 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1338 struct srvsvc_NetTransportInfoCtr
*transports
/* [in,out] [ref] */,
1339 uint32_t max_buffer
/* [in] */,
1340 uint32_t *totalentries
/* [out] [ref] */,
1341 uint32_t *resume_handle
/* [in,out] [unique] */,
1344 struct srvsvc_NetTransportEnum r
;
1348 r
.in
.server_unc
= server_unc
;
1349 r
.in
.transports
= transports
;
1350 r
.in
.max_buffer
= max_buffer
;
1351 r
.in
.resume_handle
= resume_handle
;
1353 if (DEBUGLEVEL
>= 10) {
1354 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum
, &r
);
1357 status
= cli
->dispatch(cli
,
1360 NDR_SRVSVC_NETTRANSPORTENUM
,
1363 if (!NT_STATUS_IS_OK(status
)) {
1367 if (DEBUGLEVEL
>= 10) {
1368 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum
, &r
);
1371 if (NT_STATUS_IS_ERR(status
)) {
1375 /* Return variables */
1376 *transports
= *r
.out
.transports
;
1377 *totalentries
= *r
.out
.totalentries
;
1378 if (resume_handle
&& r
.out
.resume_handle
) {
1379 *resume_handle
= *r
.out
.resume_handle
;
1384 *werror
= r
.out
.result
;
1387 return werror_to_ntstatus(r
.out
.result
);
1390 NTSTATUS
rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client
*cli
,
1391 TALLOC_CTX
*mem_ctx
,
1392 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1393 uint32_t level
/* [in] */,
1394 struct srvsvc_NetTransportInfo0
*info0
/* [in] [ref] */,
1397 struct srvsvc_NetTransportDel r
;
1401 r
.in
.server_unc
= server_unc
;
1405 if (DEBUGLEVEL
>= 10) {
1406 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel
, &r
);
1409 status
= cli
->dispatch(cli
,
1412 NDR_SRVSVC_NETTRANSPORTDEL
,
1415 if (!NT_STATUS_IS_OK(status
)) {
1419 if (DEBUGLEVEL
>= 10) {
1420 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel
, &r
);
1423 if (NT_STATUS_IS_ERR(status
)) {
1427 /* Return variables */
1431 *werror
= r
.out
.result
;
1434 return werror_to_ntstatus(r
.out
.result
);
1437 NTSTATUS
rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client
*cli
,
1438 TALLOC_CTX
*mem_ctx
,
1439 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1440 struct srvsvc_NetRemoteTODInfo
**info
/* [out] [ref] */,
1443 struct srvsvc_NetRemoteTOD r
;
1447 r
.in
.server_unc
= server_unc
;
1449 if (DEBUGLEVEL
>= 10) {
1450 NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD
, &r
);
1453 status
= cli
->dispatch(cli
,
1456 NDR_SRVSVC_NETREMOTETOD
,
1459 if (!NT_STATUS_IS_OK(status
)) {
1463 if (DEBUGLEVEL
>= 10) {
1464 NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD
, &r
);
1467 if (NT_STATUS_IS_ERR(status
)) {
1471 /* Return variables */
1472 *info
= *r
.out
.info
;
1476 *werror
= r
.out
.result
;
1479 return werror_to_ntstatus(r
.out
.result
);
1482 NTSTATUS
rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client
*cli
,
1483 TALLOC_CTX
*mem_ctx
,
1484 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1485 const char *transport
/* [in] [unique,charset(UTF16)] */,
1486 uint32_t servicebits
/* [in] */,
1487 uint32_t updateimmediately
/* [in] */,
1490 struct srvsvc_NetSetServiceBits r
;
1494 r
.in
.server_unc
= server_unc
;
1495 r
.in
.transport
= transport
;
1496 r
.in
.servicebits
= servicebits
;
1497 r
.in
.updateimmediately
= updateimmediately
;
1499 if (DEBUGLEVEL
>= 10) {
1500 NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits
, &r
);
1503 status
= cli
->dispatch(cli
,
1506 NDR_SRVSVC_NETSETSERVICEBITS
,
1509 if (!NT_STATUS_IS_OK(status
)) {
1513 if (DEBUGLEVEL
>= 10) {
1514 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits
, &r
);
1517 if (NT_STATUS_IS_ERR(status
)) {
1521 /* Return variables */
1525 *werror
= r
.out
.result
;
1528 return werror_to_ntstatus(r
.out
.result
);
1531 NTSTATUS
rpccli_srvsvc_NetPathType(struct rpc_pipe_client
*cli
,
1532 TALLOC_CTX
*mem_ctx
,
1533 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1534 const char *path
/* [in] [charset(UTF16)] */,
1535 uint32_t pathflags
/* [in] */,
1536 uint32_t *pathtype
/* [out] [ref] */,
1539 struct srvsvc_NetPathType r
;
1543 r
.in
.server_unc
= server_unc
;
1545 r
.in
.pathflags
= pathflags
;
1547 if (DEBUGLEVEL
>= 10) {
1548 NDR_PRINT_IN_DEBUG(srvsvc_NetPathType
, &r
);
1551 status
= cli
->dispatch(cli
,
1554 NDR_SRVSVC_NETPATHTYPE
,
1557 if (!NT_STATUS_IS_OK(status
)) {
1561 if (DEBUGLEVEL
>= 10) {
1562 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType
, &r
);
1565 if (NT_STATUS_IS_ERR(status
)) {
1569 /* Return variables */
1570 *pathtype
= *r
.out
.pathtype
;
1574 *werror
= r
.out
.result
;
1577 return werror_to_ntstatus(r
.out
.result
);
1580 NTSTATUS
rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client
*cli
,
1581 TALLOC_CTX
*mem_ctx
,
1582 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1583 const char *path
/* [in] [charset(UTF16)] */,
1584 uint8_t *can_path
/* [out] [size_is(maxbuf)] */,
1585 uint32_t maxbuf
/* [in] */,
1586 const char *prefix
/* [in] [charset(UTF16)] */,
1587 uint32_t *pathtype
/* [in,out] [ref] */,
1588 uint32_t pathflags
/* [in] */,
1591 struct srvsvc_NetPathCanonicalize r
;
1595 r
.in
.server_unc
= server_unc
;
1597 r
.in
.maxbuf
= maxbuf
;
1598 r
.in
.prefix
= prefix
;
1599 r
.in
.pathtype
= pathtype
;
1600 r
.in
.pathflags
= pathflags
;
1602 if (DEBUGLEVEL
>= 10) {
1603 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize
, &r
);
1606 status
= cli
->dispatch(cli
,
1609 NDR_SRVSVC_NETPATHCANONICALIZE
,
1612 if (!NT_STATUS_IS_OK(status
)) {
1616 if (DEBUGLEVEL
>= 10) {
1617 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize
, &r
);
1620 if (NT_STATUS_IS_ERR(status
)) {
1624 /* Return variables */
1625 memcpy(can_path
, r
.out
.can_path
, r
.in
.maxbuf
* sizeof(*can_path
));
1626 *pathtype
= *r
.out
.pathtype
;
1630 *werror
= r
.out
.result
;
1633 return werror_to_ntstatus(r
.out
.result
);
1636 NTSTATUS
rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client
*cli
,
1637 TALLOC_CTX
*mem_ctx
,
1638 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1639 const char *path1
/* [in] [charset(UTF16)] */,
1640 const char *path2
/* [in] [charset(UTF16)] */,
1641 uint32_t pathtype
/* [in] */,
1642 uint32_t pathflags
/* [in] */,
1645 struct srvsvc_NetPathCompare r
;
1649 r
.in
.server_unc
= server_unc
;
1652 r
.in
.pathtype
= pathtype
;
1653 r
.in
.pathflags
= pathflags
;
1655 if (DEBUGLEVEL
>= 10) {
1656 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare
, &r
);
1659 status
= cli
->dispatch(cli
,
1662 NDR_SRVSVC_NETPATHCOMPARE
,
1665 if (!NT_STATUS_IS_OK(status
)) {
1669 if (DEBUGLEVEL
>= 10) {
1670 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare
, &r
);
1673 if (NT_STATUS_IS_ERR(status
)) {
1677 /* Return variables */
1681 *werror
= r
.out
.result
;
1684 return werror_to_ntstatus(r
.out
.result
);
1687 NTSTATUS
rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client
*cli
,
1688 TALLOC_CTX
*mem_ctx
,
1689 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1690 const char *name
/* [in] [charset(UTF16)] */,
1691 uint32_t name_type
/* [in] */,
1692 uint32_t flags
/* [in] */,
1695 struct srvsvc_NetNameValidate r
;
1699 r
.in
.server_unc
= server_unc
;
1701 r
.in
.name_type
= name_type
;
1704 if (DEBUGLEVEL
>= 10) {
1705 NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate
, &r
);
1708 status
= cli
->dispatch(cli
,
1711 NDR_SRVSVC_NETNAMEVALIDATE
,
1714 if (!NT_STATUS_IS_OK(status
)) {
1718 if (DEBUGLEVEL
>= 10) {
1719 NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate
, &r
);
1722 if (NT_STATUS_IS_ERR(status
)) {
1726 /* Return variables */
1730 *werror
= r
.out
.result
;
1733 return werror_to_ntstatus(r
.out
.result
);
1736 NTSTATUS
rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client
*cli
,
1737 TALLOC_CTX
*mem_ctx
,
1740 struct srvsvc_NETRPRNAMECANONICALIZE r
;
1745 if (DEBUGLEVEL
>= 10) {
1746 NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
1749 status
= cli
->dispatch(cli
,
1752 NDR_SRVSVC_NETRPRNAMECANONICALIZE
,
1755 if (!NT_STATUS_IS_OK(status
)) {
1759 if (DEBUGLEVEL
>= 10) {
1760 NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
1763 if (NT_STATUS_IS_ERR(status
)) {
1767 /* Return variables */
1771 *werror
= r
.out
.result
;
1774 return werror_to_ntstatus(r
.out
.result
);
1777 NTSTATUS
rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client
*cli
,
1778 TALLOC_CTX
*mem_ctx
,
1779 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1780 const char *name1
/* [in] [charset(UTF16)] */,
1781 const char *name2
/* [in] [charset(UTF16)] */,
1782 uint32_t name_type
/* [in] */,
1783 uint32_t flags
/* [in] */,
1786 struct srvsvc_NetPRNameCompare r
;
1790 r
.in
.server_unc
= server_unc
;
1793 r
.in
.name_type
= name_type
;
1796 if (DEBUGLEVEL
>= 10) {
1797 NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare
, &r
);
1800 status
= cli
->dispatch(cli
,
1803 NDR_SRVSVC_NETPRNAMECOMPARE
,
1806 if (!NT_STATUS_IS_OK(status
)) {
1810 if (DEBUGLEVEL
>= 10) {
1811 NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare
, &r
);
1814 if (NT_STATUS_IS_ERR(status
)) {
1818 /* Return variables */
1822 *werror
= r
.out
.result
;
1825 return werror_to_ntstatus(r
.out
.result
);
1828 NTSTATUS
rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client
*cli
,
1829 TALLOC_CTX
*mem_ctx
,
1830 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1831 struct srvsvc_NetShareInfoCtr
*info_ctr
/* [in,out] [ref] */,
1832 uint32_t max_buffer
/* [in] */,
1833 uint32_t *totalentries
/* [out] [ref] */,
1834 uint32_t *resume_handle
/* [in,out] [unique] */,
1837 struct srvsvc_NetShareEnum r
;
1841 r
.in
.server_unc
= server_unc
;
1842 r
.in
.info_ctr
= info_ctr
;
1843 r
.in
.max_buffer
= max_buffer
;
1844 r
.in
.resume_handle
= resume_handle
;
1846 if (DEBUGLEVEL
>= 10) {
1847 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum
, &r
);
1850 status
= cli
->dispatch(cli
,
1853 NDR_SRVSVC_NETSHAREENUM
,
1856 if (!NT_STATUS_IS_OK(status
)) {
1860 if (DEBUGLEVEL
>= 10) {
1861 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum
, &r
);
1864 if (NT_STATUS_IS_ERR(status
)) {
1868 /* Return variables */
1869 *info_ctr
= *r
.out
.info_ctr
;
1870 *totalentries
= *r
.out
.totalentries
;
1871 if (resume_handle
&& r
.out
.resume_handle
) {
1872 *resume_handle
= *r
.out
.resume_handle
;
1877 *werror
= r
.out
.result
;
1880 return werror_to_ntstatus(r
.out
.result
);
1883 NTSTATUS
rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client
*cli
,
1884 TALLOC_CTX
*mem_ctx
,
1885 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1886 const char *share
/* [in] [charset(UTF16)] */,
1887 uint32_t reserved
/* [in] */,
1888 struct policy_handle
*hnd
/* [out] [unique] */,
1891 struct srvsvc_NetShareDelStart r
;
1895 r
.in
.server_unc
= server_unc
;
1897 r
.in
.reserved
= reserved
;
1899 if (DEBUGLEVEL
>= 10) {
1900 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart
, &r
);
1903 status
= cli
->dispatch(cli
,
1906 NDR_SRVSVC_NETSHAREDELSTART
,
1909 if (!NT_STATUS_IS_OK(status
)) {
1913 if (DEBUGLEVEL
>= 10) {
1914 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart
, &r
);
1917 if (NT_STATUS_IS_ERR(status
)) {
1921 /* Return variables */
1922 if (hnd
&& r
.out
.hnd
) {
1928 *werror
= r
.out
.result
;
1931 return werror_to_ntstatus(r
.out
.result
);
1934 NTSTATUS
rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client
*cli
,
1935 TALLOC_CTX
*mem_ctx
,
1936 struct policy_handle
*hnd
/* [in,out] [unique] */,
1939 struct srvsvc_NetShareDelCommit r
;
1945 if (DEBUGLEVEL
>= 10) {
1946 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit
, &r
);
1949 status
= cli
->dispatch(cli
,
1952 NDR_SRVSVC_NETSHAREDELCOMMIT
,
1955 if (!NT_STATUS_IS_OK(status
)) {
1959 if (DEBUGLEVEL
>= 10) {
1960 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit
, &r
);
1963 if (NT_STATUS_IS_ERR(status
)) {
1967 /* Return variables */
1968 if (hnd
&& r
.out
.hnd
) {
1974 *werror
= r
.out
.result
;
1977 return werror_to_ntstatus(r
.out
.result
);
1980 NTSTATUS
rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client
*cli
,
1981 TALLOC_CTX
*mem_ctx
,
1982 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
1983 const char *share
/* [in] [unique,charset(UTF16)] */,
1984 const char *file
/* [in] [charset(UTF16)] */,
1985 uint32_t securityinformation
/* [in] */,
1986 struct sec_desc_buf
**sd_buf
/* [out] [ref] */,
1989 struct srvsvc_NetGetFileSecurity r
;
1993 r
.in
.server_unc
= server_unc
;
1996 r
.in
.securityinformation
= securityinformation
;
1998 if (DEBUGLEVEL
>= 10) {
1999 NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2002 status
= cli
->dispatch(cli
,
2005 NDR_SRVSVC_NETGETFILESECURITY
,
2008 if (!NT_STATUS_IS_OK(status
)) {
2012 if (DEBUGLEVEL
>= 10) {
2013 NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2016 if (NT_STATUS_IS_ERR(status
)) {
2020 /* Return variables */
2021 *sd_buf
= *r
.out
.sd_buf
;
2025 *werror
= r
.out
.result
;
2028 return werror_to_ntstatus(r
.out
.result
);
2031 NTSTATUS
rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client
*cli
,
2032 TALLOC_CTX
*mem_ctx
,
2033 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
2034 const char *share
/* [in] [unique,charset(UTF16)] */,
2035 const char *file
/* [in] [charset(UTF16)] */,
2036 uint32_t securityinformation
/* [in] */,
2037 struct sec_desc_buf
*sd_buf
/* [in] [ref] */,
2040 struct srvsvc_NetSetFileSecurity r
;
2044 r
.in
.server_unc
= server_unc
;
2047 r
.in
.securityinformation
= securityinformation
;
2048 r
.in
.sd_buf
= sd_buf
;
2050 if (DEBUGLEVEL
>= 10) {
2051 NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity
, &r
);
2054 status
= cli
->dispatch(cli
,
2057 NDR_SRVSVC_NETSETFILESECURITY
,
2060 if (!NT_STATUS_IS_OK(status
)) {
2064 if (DEBUGLEVEL
>= 10) {
2065 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity
, &r
);
2068 if (NT_STATUS_IS_ERR(status
)) {
2072 /* Return variables */
2076 *werror
= r
.out
.result
;
2079 return werror_to_ntstatus(r
.out
.result
);
2082 NTSTATUS
rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client
*cli
,
2083 TALLOC_CTX
*mem_ctx
,
2084 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
2085 uint32_t level
/* [in] */,
2086 union srvsvc_NetTransportInfo info
/* [in] [switch_is(level)] */,
2089 struct srvsvc_NetServerTransportAddEx r
;
2093 r
.in
.server_unc
= server_unc
;
2097 if (DEBUGLEVEL
>= 10) {
2098 NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2101 status
= cli
->dispatch(cli
,
2104 NDR_SRVSVC_NETSERVERTRANSPORTADDEX
,
2107 if (!NT_STATUS_IS_OK(status
)) {
2111 if (DEBUGLEVEL
>= 10) {
2112 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2115 if (NT_STATUS_IS_ERR(status
)) {
2119 /* Return variables */
2123 *werror
= r
.out
.result
;
2126 return werror_to_ntstatus(r
.out
.result
);
2129 NTSTATUS
rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client
*cli
,
2130 TALLOC_CTX
*mem_ctx
,
2131 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
2132 const char *emulated_server_unc
/* [in] [unique,charset(UTF16)] */,
2133 const char *transport
/* [in] [unique,charset(UTF16)] */,
2134 uint32_t servicebitsofinterest
/* [in] */,
2135 uint32_t servicebits
/* [in] */,
2136 uint32_t updateimmediately
/* [in] */,
2139 struct srvsvc_NetServerSetServiceBitsEx r
;
2143 r
.in
.server_unc
= server_unc
;
2144 r
.in
.emulated_server_unc
= emulated_server_unc
;
2145 r
.in
.transport
= transport
;
2146 r
.in
.servicebitsofinterest
= servicebitsofinterest
;
2147 r
.in
.servicebits
= servicebits
;
2148 r
.in
.updateimmediately
= updateimmediately
;
2150 if (DEBUGLEVEL
>= 10) {
2151 NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx
, &r
);
2154 status
= cli
->dispatch(cli
,
2157 NDR_SRVSVC_NETSERVERSETSERVICEBITSEX
,
2160 if (!NT_STATUS_IS_OK(status
)) {
2164 if (DEBUGLEVEL
>= 10) {
2165 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx
, &r
);
2168 if (NT_STATUS_IS_ERR(status
)) {
2172 /* Return variables */
2176 *werror
= r
.out
.result
;
2179 return werror_to_ntstatus(r
.out
.result
);
2182 NTSTATUS
rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client
*cli
,
2183 TALLOC_CTX
*mem_ctx
,
2186 struct srvsvc_NETRDFSGETVERSION r
;
2191 if (DEBUGLEVEL
>= 10) {
2192 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2195 status
= cli
->dispatch(cli
,
2198 NDR_SRVSVC_NETRDFSGETVERSION
,
2201 if (!NT_STATUS_IS_OK(status
)) {
2205 if (DEBUGLEVEL
>= 10) {
2206 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2209 if (NT_STATUS_IS_ERR(status
)) {
2213 /* Return variables */
2217 *werror
= r
.out
.result
;
2220 return werror_to_ntstatus(r
.out
.result
);
2223 NTSTATUS
rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client
*cli
,
2224 TALLOC_CTX
*mem_ctx
,
2227 struct srvsvc_NETRDFSCREATELOCALPARTITION r
;
2232 if (DEBUGLEVEL
>= 10) {
2233 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
2236 status
= cli
->dispatch(cli
,
2239 NDR_SRVSVC_NETRDFSCREATELOCALPARTITION
,
2242 if (!NT_STATUS_IS_OK(status
)) {
2246 if (DEBUGLEVEL
>= 10) {
2247 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
2250 if (NT_STATUS_IS_ERR(status
)) {
2254 /* Return variables */
2258 *werror
= r
.out
.result
;
2261 return werror_to_ntstatus(r
.out
.result
);
2264 NTSTATUS
rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client
*cli
,
2265 TALLOC_CTX
*mem_ctx
,
2268 struct srvsvc_NETRDFSDELETELOCALPARTITION r
;
2273 if (DEBUGLEVEL
>= 10) {
2274 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
2277 status
= cli
->dispatch(cli
,
2280 NDR_SRVSVC_NETRDFSDELETELOCALPARTITION
,
2283 if (!NT_STATUS_IS_OK(status
)) {
2287 if (DEBUGLEVEL
>= 10) {
2288 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
2291 if (NT_STATUS_IS_ERR(status
)) {
2295 /* Return variables */
2299 *werror
= r
.out
.result
;
2302 return werror_to_ntstatus(r
.out
.result
);
2305 NTSTATUS
rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client
*cli
,
2306 TALLOC_CTX
*mem_ctx
,
2309 struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r
;
2314 if (DEBUGLEVEL
>= 10) {
2315 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
2318 status
= cli
->dispatch(cli
,
2321 NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE
,
2324 if (!NT_STATUS_IS_OK(status
)) {
2328 if (DEBUGLEVEL
>= 10) {
2329 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
2332 if (NT_STATUS_IS_ERR(status
)) {
2336 /* Return variables */
2340 *werror
= r
.out
.result
;
2343 return werror_to_ntstatus(r
.out
.result
);
2346 NTSTATUS
rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client
*cli
,
2347 TALLOC_CTX
*mem_ctx
,
2350 struct srvsvc_NETRDFSSETSERVERINFO r
;
2355 if (DEBUGLEVEL
>= 10) {
2356 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
2359 status
= cli
->dispatch(cli
,
2362 NDR_SRVSVC_NETRDFSSETSERVERINFO
,
2365 if (!NT_STATUS_IS_OK(status
)) {
2369 if (DEBUGLEVEL
>= 10) {
2370 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
2373 if (NT_STATUS_IS_ERR(status
)) {
2377 /* Return variables */
2381 *werror
= r
.out
.result
;
2384 return werror_to_ntstatus(r
.out
.result
);
2387 NTSTATUS
rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client
*cli
,
2388 TALLOC_CTX
*mem_ctx
,
2391 struct srvsvc_NETRDFSCREATEEXITPOINT r
;
2396 if (DEBUGLEVEL
>= 10) {
2397 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
2400 status
= cli
->dispatch(cli
,
2403 NDR_SRVSVC_NETRDFSCREATEEXITPOINT
,
2406 if (!NT_STATUS_IS_OK(status
)) {
2410 if (DEBUGLEVEL
>= 10) {
2411 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
2414 if (NT_STATUS_IS_ERR(status
)) {
2418 /* Return variables */
2422 *werror
= r
.out
.result
;
2425 return werror_to_ntstatus(r
.out
.result
);
2428 NTSTATUS
rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client
*cli
,
2429 TALLOC_CTX
*mem_ctx
,
2432 struct srvsvc_NETRDFSDELETEEXITPOINT r
;
2437 if (DEBUGLEVEL
>= 10) {
2438 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
2441 status
= cli
->dispatch(cli
,
2444 NDR_SRVSVC_NETRDFSDELETEEXITPOINT
,
2447 if (!NT_STATUS_IS_OK(status
)) {
2451 if (DEBUGLEVEL
>= 10) {
2452 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
2455 if (NT_STATUS_IS_ERR(status
)) {
2459 /* Return variables */
2463 *werror
= r
.out
.result
;
2466 return werror_to_ntstatus(r
.out
.result
);
2469 NTSTATUS
rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client
*cli
,
2470 TALLOC_CTX
*mem_ctx
,
2473 struct srvsvc_NETRDFSMODIFYPREFIX r
;
2478 if (DEBUGLEVEL
>= 10) {
2479 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
2482 status
= cli
->dispatch(cli
,
2485 NDR_SRVSVC_NETRDFSMODIFYPREFIX
,
2488 if (!NT_STATUS_IS_OK(status
)) {
2492 if (DEBUGLEVEL
>= 10) {
2493 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
2496 if (NT_STATUS_IS_ERR(status
)) {
2500 /* Return variables */
2504 *werror
= r
.out
.result
;
2507 return werror_to_ntstatus(r
.out
.result
);
2510 NTSTATUS
rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client
*cli
,
2511 TALLOC_CTX
*mem_ctx
,
2514 struct srvsvc_NETRDFSFIXLOCALVOLUME r
;
2519 if (DEBUGLEVEL
>= 10) {
2520 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
2523 status
= cli
->dispatch(cli
,
2526 NDR_SRVSVC_NETRDFSFIXLOCALVOLUME
,
2529 if (!NT_STATUS_IS_OK(status
)) {
2533 if (DEBUGLEVEL
>= 10) {
2534 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
2537 if (NT_STATUS_IS_ERR(status
)) {
2541 /* Return variables */
2545 *werror
= r
.out
.result
;
2548 return werror_to_ntstatus(r
.out
.result
);
2551 NTSTATUS
rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client
*cli
,
2552 TALLOC_CTX
*mem_ctx
,
2555 struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r
;
2560 if (DEBUGLEVEL
>= 10) {
2561 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
2564 status
= cli
->dispatch(cli
,
2567 NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO
,
2570 if (!NT_STATUS_IS_OK(status
)) {
2574 if (DEBUGLEVEL
>= 10) {
2575 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
2578 if (NT_STATUS_IS_ERR(status
)) {
2582 /* Return variables */
2586 *werror
= r
.out
.result
;
2589 return werror_to_ntstatus(r
.out
.result
);
2592 NTSTATUS
rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client
*cli
,
2593 TALLOC_CTX
*mem_ctx
,
2596 struct srvsvc_NETRSERVERTRANSPORTDELEX r
;
2601 if (DEBUGLEVEL
>= 10) {
2602 NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
2605 status
= cli
->dispatch(cli
,
2608 NDR_SRVSVC_NETRSERVERTRANSPORTDELEX
,
2611 if (!NT_STATUS_IS_OK(status
)) {
2615 if (DEBUGLEVEL
>= 10) {
2616 NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
2619 if (NT_STATUS_IS_ERR(status
)) {
2623 /* Return variables */
2627 *werror
= r
.out
.result
;
2630 return werror_to_ntstatus(r
.out
.result
);