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 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] */,
19 struct srvsvc_NetCharDevEnum r
;
23 r
.in
.server_unc
= server_unc
;
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
,
36 NDR_SRVSVC_NETCHARDEVENUM
,
39 if (!NT_STATUS_IS_OK(status
)) {
43 if (DEBUGLEVEL
>= 10) {
44 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum
, &r
);
47 if (NT_STATUS_IS_ERR(status
)) {
51 /* Return variables */
52 *level
= *r
.out
.level
;
54 *totalentries
= *r
.out
.totalentries
;
55 if (resume_handle
&& r
.out
.resume_handle
) {
56 *resume_handle
= *r
.out
.resume_handle
;
61 *werror
= r
.out
.result
;
64 return werror_to_ntstatus(r
.out
.result
);
67 NTSTATUS
rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client
*cli
,
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)] */,
75 struct srvsvc_NetCharDevGetInfo r
;
79 r
.in
.server_unc
= server_unc
;
80 r
.in
.device_name
= device_name
;
83 if (DEBUGLEVEL
>= 10) {
84 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
87 status
= cli_do_rpc_ndr(cli
,
90 NDR_SRVSVC_NETCHARDEVGETINFO
,
93 if (!NT_STATUS_IS_OK(status
)) {
97 if (DEBUGLEVEL
>= 10) {
98 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
101 if (NT_STATUS_IS_ERR(status
)) {
105 /* Return variables */
110 *werror
= r
.out
.result
;
113 return werror_to_ntstatus(r
.out
.result
);
116 NTSTATUS
rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client
*cli
,
118 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
119 const char *device_name
/* [in] [charset(UTF16)] */,
120 uint32_t opcode
/* [in] */,
123 struct srvsvc_NetCharDevControl r
;
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
,
138 NDR_SRVSVC_NETCHARDEVCONTROL
,
141 if (!NT_STATUS_IS_OK(status
)) {
145 if (DEBUGLEVEL
>= 10) {
146 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl
, &r
);
149 if (NT_STATUS_IS_ERR(status
)) {
153 /* Return variables */
157 *werror
= r
.out
.result
;
160 return werror_to_ntstatus(r
.out
.result
);
163 NTSTATUS
rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client
*cli
,
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] */,
174 struct srvsvc_NetCharDevQEnum r
;
178 r
.in
.server_unc
= server_unc
;
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
,
192 NDR_SRVSVC_NETCHARDEVQENUM
,
195 if (!NT_STATUS_IS_OK(status
)) {
199 if (DEBUGLEVEL
>= 10) {
200 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum
, &r
);
203 if (NT_STATUS_IS_ERR(status
)) {
207 /* Return variables */
208 *level
= *r
.out
.level
;
210 *totalentries
= *r
.out
.totalentries
;
211 if (resume_handle
&& r
.out
.resume_handle
) {
212 *resume_handle
= *r
.out
.resume_handle
;
217 *werror
= r
.out
.result
;
220 return werror_to_ntstatus(r
.out
.result
);
223 NTSTATUS
rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client
*cli
,
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)] */,
232 struct srvsvc_NetCharDevQGetInfo r
;
236 r
.in
.server_unc
= server_unc
;
237 r
.in
.queue_name
= queue_name
;
241 if (DEBUGLEVEL
>= 10) {
242 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
245 status
= cli_do_rpc_ndr(cli
,
248 NDR_SRVSVC_NETCHARDEVQGETINFO
,
251 if (!NT_STATUS_IS_OK(status
)) {
255 if (DEBUGLEVEL
>= 10) {
256 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
259 if (NT_STATUS_IS_ERR(status
)) {
263 /* Return variables */
268 *werror
= r
.out
.result
;
271 return werror_to_ntstatus(r
.out
.result
);
274 NTSTATUS
rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client
*cli
,
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] */,
283 struct srvsvc_NetCharDevQSetInfo r
;
287 r
.in
.server_unc
= server_unc
;
288 r
.in
.queue_name
= queue_name
;
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
,
300 NDR_SRVSVC_NETCHARDEVQSETINFO
,
303 if (!NT_STATUS_IS_OK(status
)) {
307 if (DEBUGLEVEL
>= 10) {
308 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo
, &r
);
311 if (NT_STATUS_IS_ERR(status
)) {
315 /* Return variables */
316 if (parm_error
&& r
.out
.parm_error
) {
317 *parm_error
= *r
.out
.parm_error
;
322 *werror
= r
.out
.result
;
325 return werror_to_ntstatus(r
.out
.result
);
328 NTSTATUS
rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client
*cli
,
330 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
331 const char *queue_name
/* [in] [charset(UTF16)] */,
334 struct srvsvc_NetCharDevQPurge r
;
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
,
348 NDR_SRVSVC_NETCHARDEVQPURGE
,
351 if (!NT_STATUS_IS_OK(status
)) {
355 if (DEBUGLEVEL
>= 10) {
356 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge
, &r
);
359 if (NT_STATUS_IS_ERR(status
)) {
363 /* Return variables */
367 *werror
= r
.out
.result
;
370 return werror_to_ntstatus(r
.out
.result
);
373 NTSTATUS
rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client
*cli
,
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)] */,
380 struct srvsvc_NetCharDevQPurgeSelf r
;
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
,
395 NDR_SRVSVC_NETCHARDEVQPURGESELF
,
398 if (!NT_STATUS_IS_OK(status
)) {
402 if (DEBUGLEVEL
>= 10) {
403 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf
, &r
);
406 if (NT_STATUS_IS_ERR(status
)) {
410 /* Return variables */
414 *werror
= r
.out
.result
;
417 return werror_to_ntstatus(r
.out
.result
);
420 NTSTATUS
rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client
*cli
,
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] */,
430 struct srvsvc_NetConnEnum r
;
434 r
.in
.server_unc
= server_unc
;
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
,
447 NDR_SRVSVC_NETCONNENUM
,
450 if (!NT_STATUS_IS_OK(status
)) {
454 if (DEBUGLEVEL
>= 10) {
455 NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum
, &r
);
458 if (NT_STATUS_IS_ERR(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
;
471 *werror
= r
.out
.result
;
474 return werror_to_ntstatus(r
.out
.result
);
477 NTSTATUS
rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client
*cli
,
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] */,
488 struct srvsvc_NetFileEnum r
;
492 r
.in
.server_unc
= server_unc
;
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
,
506 NDR_SRVSVC_NETFILEENUM
,
509 if (!NT_STATUS_IS_OK(status
)) {
513 if (DEBUGLEVEL
>= 10) {
514 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum
, &r
);
517 if (NT_STATUS_IS_ERR(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
;
530 *werror
= r
.out
.result
;
533 return werror_to_ntstatus(r
.out
.result
);
536 NTSTATUS
rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client
*cli
,
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)] */,
544 struct srvsvc_NetFileGetInfo r
;
548 r
.in
.server_unc
= server_unc
;
552 if (DEBUGLEVEL
>= 10) {
553 NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo
, &r
);
556 status
= cli_do_rpc_ndr(cli
,
559 NDR_SRVSVC_NETFILEGETINFO
,
562 if (!NT_STATUS_IS_OK(status
)) {
566 if (DEBUGLEVEL
>= 10) {
567 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo
, &r
);
570 if (NT_STATUS_IS_ERR(status
)) {
574 /* Return variables */
579 *werror
= r
.out
.result
;
582 return werror_to_ntstatus(r
.out
.result
);
585 NTSTATUS
rpccli_srvsvc_NetFileClose(struct rpc_pipe_client
*cli
,
587 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
588 uint32_t fid
/* [in] */,
591 struct srvsvc_NetFileClose r
;
595 r
.in
.server_unc
= server_unc
;
598 if (DEBUGLEVEL
>= 10) {
599 NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose
, &r
);
602 status
= cli_do_rpc_ndr(cli
,
605 NDR_SRVSVC_NETFILECLOSE
,
608 if (!NT_STATUS_IS_OK(status
)) {
612 if (DEBUGLEVEL
>= 10) {
613 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose
, &r
);
616 if (NT_STATUS_IS_ERR(status
)) {
620 /* Return variables */
624 *werror
= r
.out
.result
;
627 return werror_to_ntstatus(r
.out
.result
);
630 NTSTATUS
rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client
*cli
,
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] */,
641 struct srvsvc_NetSessEnum r
;
645 r
.in
.server_unc
= server_unc
;
646 r
.in
.client
= client
;
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
,
659 NDR_SRVSVC_NETSESSENUM
,
662 if (!NT_STATUS_IS_OK(status
)) {
666 if (DEBUGLEVEL
>= 10) {
667 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum
, &r
);
670 if (NT_STATUS_IS_ERR(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
;
683 *werror
= r
.out
.result
;
686 return werror_to_ntstatus(r
.out
.result
);
689 NTSTATUS
rpccli_srvsvc_NetSessDel(struct rpc_pipe_client
*cli
,
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)] */,
696 struct srvsvc_NetSessDel r
;
700 r
.in
.server_unc
= server_unc
;
701 r
.in
.client
= client
;
704 if (DEBUGLEVEL
>= 10) {
705 NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel
, &r
);
708 status
= cli_do_rpc_ndr(cli
,
711 NDR_SRVSVC_NETSESSDEL
,
714 if (!NT_STATUS_IS_OK(status
)) {
718 if (DEBUGLEVEL
>= 10) {
719 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel
, &r
);
722 if (NT_STATUS_IS_ERR(status
)) {
726 /* Return variables */
730 *werror
= r
.out
.result
;
733 return werror_to_ntstatus(r
.out
.result
);
736 NTSTATUS
rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client
*cli
,
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] */,
744 struct srvsvc_NetShareAdd r
;
748 r
.in
.server_unc
= server_unc
;
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
,
760 NDR_SRVSVC_NETSHAREADD
,
763 if (!NT_STATUS_IS_OK(status
)) {
767 if (DEBUGLEVEL
>= 10) {
768 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd
, &r
);
771 if (NT_STATUS_IS_ERR(status
)) {
775 /* Return variables */
776 if (parm_error
&& r
.out
.parm_error
) {
777 *parm_error
= *r
.out
.parm_error
;
782 *werror
= r
.out
.result
;
785 return werror_to_ntstatus(r
.out
.result
);
788 NTSTATUS
rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client
*cli
,
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] */,
797 struct srvsvc_NetShareEnumAll r
;
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
,
813 NDR_SRVSVC_NETSHAREENUMALL
,
816 if (!NT_STATUS_IS_OK(status
)) {
820 if (DEBUGLEVEL
>= 10) {
821 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll
, &r
);
824 if (NT_STATUS_IS_ERR(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
;
837 *werror
= r
.out
.result
;
840 return werror_to_ntstatus(r
.out
.result
);
843 NTSTATUS
rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client
*cli
,
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)] */,
851 struct srvsvc_NetShareGetInfo r
;
855 r
.in
.server_unc
= server_unc
;
856 r
.in
.share_name
= share_name
;
859 if (DEBUGLEVEL
>= 10) {
860 NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo
, &r
);
863 status
= cli_do_rpc_ndr(cli
,
866 NDR_SRVSVC_NETSHAREGETINFO
,
869 if (!NT_STATUS_IS_OK(status
)) {
873 if (DEBUGLEVEL
>= 10) {
874 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo
, &r
);
877 if (NT_STATUS_IS_ERR(status
)) {
881 /* Return variables */
886 *werror
= r
.out
.result
;
889 return werror_to_ntstatus(r
.out
.result
);
892 NTSTATUS
rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client
*cli
,
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] */,
901 struct srvsvc_NetShareSetInfo r
;
905 r
.in
.server_unc
= server_unc
;
906 r
.in
.share_name
= share_name
;
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
,
918 NDR_SRVSVC_NETSHARESETINFO
,
921 if (!NT_STATUS_IS_OK(status
)) {
925 if (DEBUGLEVEL
>= 10) {
926 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo
, &r
);
929 if (NT_STATUS_IS_ERR(status
)) {
933 /* Return variables */
934 if (parm_error
&& r
.out
.parm_error
) {
935 *parm_error
= *r
.out
.parm_error
;
940 *werror
= r
.out
.result
;
943 return werror_to_ntstatus(r
.out
.result
);
946 NTSTATUS
rpccli_srvsvc_NetShareDel(struct rpc_pipe_client
*cli
,
948 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
949 const char *share_name
/* [in] [charset(UTF16)] */,
950 uint32_t reserved
/* [in] */,
953 struct srvsvc_NetShareDel r
;
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
,
968 NDR_SRVSVC_NETSHAREDEL
,
971 if (!NT_STATUS_IS_OK(status
)) {
975 if (DEBUGLEVEL
>= 10) {
976 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel
, &r
);
979 if (NT_STATUS_IS_ERR(status
)) {
983 /* Return variables */
987 *werror
= r
.out
.result
;
990 return werror_to_ntstatus(r
.out
.result
);
993 NTSTATUS
rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client
*cli
,
995 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
996 const char *share_name
/* [in] [charset(UTF16)] */,
997 uint32_t reserved
/* [in] */,
1000 struct srvsvc_NetShareDelSticky r
;
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
,
1015 NDR_SRVSVC_NETSHAREDELSTICKY
,
1018 if (!NT_STATUS_IS_OK(status
)) {
1022 if (DEBUGLEVEL
>= 10) {
1023 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky
, &r
);
1026 if (NT_STATUS_IS_ERR(status
)) {
1030 /* Return variables */
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] */,
1047 struct srvsvc_NetShareCheck r
;
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
,
1061 NDR_SRVSVC_NETSHARECHECK
,
1064 if (!NT_STATUS_IS_OK(status
)) {
1068 if (DEBUGLEVEL
>= 10) {
1069 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck
, &r
);
1072 if (NT_STATUS_IS_ERR(status
)) {
1076 /* Return variables */
1077 *type
= *r
.out
.type
;
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)] */,
1094 struct srvsvc_NetSrvGetInfo r
;
1098 r
.in
.server_unc
= server_unc
;
1101 if (DEBUGLEVEL
>= 10) {
1102 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1105 status
= cli_do_rpc_ndr(cli
,
1108 NDR_SRVSVC_NETSRVGETINFO
,
1111 if (!NT_STATUS_IS_OK(status
)) {
1115 if (DEBUGLEVEL
>= 10) {
1116 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1119 if (NT_STATUS_IS_ERR(status
)) {
1123 /* Return variables */
1124 *info
= *r
.out
.info
;
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] */,
1142 struct srvsvc_NetSrvSetInfo r
;
1146 r
.in
.server_unc
= server_unc
;
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
,
1158 NDR_SRVSVC_NETSRVSETINFO
,
1161 if (!NT_STATUS_IS_OK(status
)) {
1165 if (DEBUGLEVEL
>= 10) {
1166 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo
, &r
);
1169 if (NT_STATUS_IS_ERR(status
)) {
1173 /* Return variables */
1174 if (parm_error
&& r
.out
.parm_error
) {
1175 *parm_error
= *r
.out
.parm_error
;
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] */,
1196 struct srvsvc_NetDiskEnum r
;
1200 r
.in
.server_unc
= server_unc
;
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
,
1213 NDR_SRVSVC_NETDISKENUM
,
1216 if (!NT_STATUS_IS_OK(status
)) {
1220 if (DEBUGLEVEL
>= 10) {
1221 NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum
, &r
);
1224 if (NT_STATUS_IS_ERR(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
;
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] */,
1252 struct srvsvc_NetServerStatisticsGet r
;
1256 r
.in
.server_unc
= server_unc
;
1257 r
.in
.service
= service
;
1259 r
.in
.options
= options
;
1261 if (DEBUGLEVEL
>= 10) {
1262 NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1265 status
= cli_do_rpc_ndr(cli
,
1268 NDR_SRVSVC_NETSERVERSTATISTICSGET
,
1271 if (!NT_STATUS_IS_OK(status
)) {
1275 if (DEBUGLEVEL
>= 10) {
1276 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1279 if (NT_STATUS_IS_ERR(status
)) {
1283 /* Return variables */
1284 *stats
= *r
.out
.stats
;
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)] */,
1301 struct srvsvc_NetTransportAdd r
;
1305 r
.in
.server_unc
= server_unc
;
1309 if (DEBUGLEVEL
>= 10) {
1310 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd
, &r
);
1313 status
= cli_do_rpc_ndr(cli
,
1316 NDR_SRVSVC_NETTRANSPORTADD
,
1319 if (!NT_STATUS_IS_OK(status
)) {
1323 if (DEBUGLEVEL
>= 10) {
1324 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd
, &r
);
1327 if (NT_STATUS_IS_ERR(status
)) {
1331 /* Return variables */
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] */,
1351 struct srvsvc_NetTransportEnum r
;
1355 r
.in
.server_unc
= server_unc
;
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
,
1368 NDR_SRVSVC_NETTRANSPORTENUM
,
1371 if (!NT_STATUS_IS_OK(status
)) {
1375 if (DEBUGLEVEL
>= 10) {
1376 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum
, &r
);
1379 if (NT_STATUS_IS_ERR(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
;
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] */,
1406 struct srvsvc_NetTransportDel r
;
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
,
1421 NDR_SRVSVC_NETTRANSPORTDEL
,
1424 if (!NT_STATUS_IS_OK(status
)) {
1428 if (DEBUGLEVEL
>= 10) {
1429 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel
, &r
);
1432 if (NT_STATUS_IS_ERR(status
)) {
1436 /* Return variables */
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] */,
1452 struct srvsvc_NetRemoteTOD r
;
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
,
1465 NDR_SRVSVC_NETREMOTETOD
,
1468 if (!NT_STATUS_IS_OK(status
)) {
1472 if (DEBUGLEVEL
>= 10) {
1473 NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD
, &r
);
1476 if (NT_STATUS_IS_ERR(status
)) {
1480 /* Return variables */
1481 *info
= *r
.out
.info
;
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] */,
1499 struct srvsvc_NetSetServiceBits r
;
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
,
1515 NDR_SRVSVC_NETSETSERVICEBITS
,
1518 if (!NT_STATUS_IS_OK(status
)) {
1522 if (DEBUGLEVEL
>= 10) {
1523 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits
, &r
);
1526 if (NT_STATUS_IS_ERR(status
)) {
1530 /* Return variables */
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] */,
1548 struct srvsvc_NetPathType r
;
1552 r
.in
.server_unc
= server_unc
;
1554 r
.in
.pathflags
= pathflags
;
1556 if (DEBUGLEVEL
>= 10) {
1557 NDR_PRINT_IN_DEBUG(srvsvc_NetPathType
, &r
);
1560 status
= cli_do_rpc_ndr(cli
,
1563 NDR_SRVSVC_NETPATHTYPE
,
1566 if (!NT_STATUS_IS_OK(status
)) {
1570 if (DEBUGLEVEL
>= 10) {
1571 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType
, &r
);
1574 if (NT_STATUS_IS_ERR(status
)) {
1578 /* Return variables */
1579 *pathtype
= *r
.out
.pathtype
;
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] */,
1600 struct srvsvc_NetPathCanonicalize r
;
1604 r
.in
.server_unc
= server_unc
;
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
,
1618 NDR_SRVSVC_NETPATHCANONICALIZE
,
1621 if (!NT_STATUS_IS_OK(status
)) {
1625 if (DEBUGLEVEL
>= 10) {
1626 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize
, &r
);
1629 if (NT_STATUS_IS_ERR(status
)) {
1633 /* Return variables */
1634 memcpy(can_path
, r
.out
.can_path
, r
.in
.maxbuf
* sizeof(*can_path
));
1635 *pathtype
= *r
.out
.pathtype
;
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] */,
1654 struct srvsvc_NetPathCompare r
;
1658 r
.in
.server_unc
= server_unc
;
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
,
1671 NDR_SRVSVC_NETPATHCOMPARE
,
1674 if (!NT_STATUS_IS_OK(status
)) {
1678 if (DEBUGLEVEL
>= 10) {
1679 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare
, &r
);
1682 if (NT_STATUS_IS_ERR(status
)) {
1686 /* Return variables */
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] */,
1704 struct srvsvc_NetNameValidate r
;
1708 r
.in
.server_unc
= server_unc
;
1710 r
.in
.name_type
= name_type
;
1713 if (DEBUGLEVEL
>= 10) {
1714 NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate
, &r
);
1717 status
= cli_do_rpc_ndr(cli
,
1720 NDR_SRVSVC_NETNAMEVALIDATE
,
1723 if (!NT_STATUS_IS_OK(status
)) {
1727 if (DEBUGLEVEL
>= 10) {
1728 NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate
, &r
);
1731 if (NT_STATUS_IS_ERR(status
)) {
1735 /* Return variables */
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
,
1749 struct srvsvc_NETRPRNAMECANONICALIZE r
;
1754 if (DEBUGLEVEL
>= 10) {
1755 NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
1758 status
= cli_do_rpc_ndr(cli
,
1761 NDR_SRVSVC_NETRPRNAMECANONICALIZE
,
1764 if (!NT_STATUS_IS_OK(status
)) {
1768 if (DEBUGLEVEL
>= 10) {
1769 NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
1772 if (NT_STATUS_IS_ERR(status
)) {
1776 /* Return variables */
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] */,
1795 struct srvsvc_NetPRNameCompare r
;
1799 r
.in
.server_unc
= server_unc
;
1802 r
.in
.name_type
= name_type
;
1805 if (DEBUGLEVEL
>= 10) {
1806 NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare
, &r
);
1809 status
= cli_do_rpc_ndr(cli
,
1812 NDR_SRVSVC_NETPRNAMECOMPARE
,
1815 if (!NT_STATUS_IS_OK(status
)) {
1819 if (DEBUGLEVEL
>= 10) {
1820 NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare
, &r
);
1823 if (NT_STATUS_IS_ERR(status
)) {
1827 /* Return variables */
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] */,
1846 struct srvsvc_NetShareEnum r
;
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
,
1862 NDR_SRVSVC_NETSHAREENUM
,
1865 if (!NT_STATUS_IS_OK(status
)) {
1869 if (DEBUGLEVEL
>= 10) {
1870 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum
, &r
);
1873 if (NT_STATUS_IS_ERR(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
;
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] */,
1900 struct srvsvc_NetShareDelStart r
;
1904 r
.in
.server_unc
= server_unc
;
1906 r
.in
.reserved
= reserved
;
1908 if (DEBUGLEVEL
>= 10) {
1909 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart
, &r
);
1912 status
= cli_do_rpc_ndr(cli
,
1915 NDR_SRVSVC_NETSHAREDELSTART
,
1918 if (!NT_STATUS_IS_OK(status
)) {
1922 if (DEBUGLEVEL
>= 10) {
1923 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart
, &r
);
1926 if (NT_STATUS_IS_ERR(status
)) {
1930 /* Return variables */
1931 if (hnd
&& r
.out
.hnd
) {
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] */,
1948 struct srvsvc_NetShareDelCommit r
;
1954 if (DEBUGLEVEL
>= 10) {
1955 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit
, &r
);
1958 status
= cli_do_rpc_ndr(cli
,
1961 NDR_SRVSVC_NETSHAREDELCOMMIT
,
1964 if (!NT_STATUS_IS_OK(status
)) {
1968 if (DEBUGLEVEL
>= 10) {
1969 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit
, &r
);
1972 if (NT_STATUS_IS_ERR(status
)) {
1976 /* Return variables */
1977 if (hnd
&& r
.out
.hnd
) {
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] */,
1998 struct srvsvc_NetGetFileSecurity r
;
2002 r
.in
.server_unc
= server_unc
;
2005 r
.in
.securityinformation
= securityinformation
;
2007 if (DEBUGLEVEL
>= 10) {
2008 NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2011 status
= cli_do_rpc_ndr(cli
,
2014 NDR_SRVSVC_NETGETFILESECURITY
,
2017 if (!NT_STATUS_IS_OK(status
)) {
2021 if (DEBUGLEVEL
>= 10) {
2022 NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2025 if (NT_STATUS_IS_ERR(status
)) {
2029 /* Return variables */
2030 *sd_buf
= *r
.out
.sd_buf
;
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] */,
2049 struct srvsvc_NetSetFileSecurity r
;
2053 r
.in
.server_unc
= server_unc
;
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
,
2066 NDR_SRVSVC_NETSETFILESECURITY
,
2069 if (!NT_STATUS_IS_OK(status
)) {
2073 if (DEBUGLEVEL
>= 10) {
2074 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity
, &r
);
2077 if (NT_STATUS_IS_ERR(status
)) {
2081 /* Return variables */
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)] */,
2098 struct srvsvc_NetServerTransportAddEx r
;
2102 r
.in
.server_unc
= server_unc
;
2106 if (DEBUGLEVEL
>= 10) {
2107 NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2110 status
= cli_do_rpc_ndr(cli
,
2113 NDR_SRVSVC_NETSERVERTRANSPORTADDEX
,
2116 if (!NT_STATUS_IS_OK(status
)) {
2120 if (DEBUGLEVEL
>= 10) {
2121 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2124 if (NT_STATUS_IS_ERR(status
)) {
2128 /* Return variables */
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] */,
2148 struct srvsvc_NetServerSetServiceBitsEx r
;
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
,
2166 NDR_SRVSVC_NETSERVERSETSERVICEBITSEX
,
2169 if (!NT_STATUS_IS_OK(status
)) {
2173 if (DEBUGLEVEL
>= 10) {
2174 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx
, &r
);
2177 if (NT_STATUS_IS_ERR(status
)) {
2181 /* Return variables */
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
,
2195 struct srvsvc_NETRDFSGETVERSION r
;
2200 if (DEBUGLEVEL
>= 10) {
2201 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2204 status
= cli_do_rpc_ndr(cli
,
2207 NDR_SRVSVC_NETRDFSGETVERSION
,
2210 if (!NT_STATUS_IS_OK(status
)) {
2214 if (DEBUGLEVEL
>= 10) {
2215 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2218 if (NT_STATUS_IS_ERR(status
)) {
2222 /* Return variables */
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
,
2236 struct srvsvc_NETRDFSCREATELOCALPARTITION r
;
2241 if (DEBUGLEVEL
>= 10) {
2242 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
2245 status
= cli_do_rpc_ndr(cli
,
2248 NDR_SRVSVC_NETRDFSCREATELOCALPARTITION
,
2251 if (!NT_STATUS_IS_OK(status
)) {
2255 if (DEBUGLEVEL
>= 10) {
2256 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
2259 if (NT_STATUS_IS_ERR(status
)) {
2263 /* Return variables */
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
,
2277 struct srvsvc_NETRDFSDELETELOCALPARTITION r
;
2282 if (DEBUGLEVEL
>= 10) {
2283 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
2286 status
= cli_do_rpc_ndr(cli
,
2289 NDR_SRVSVC_NETRDFSDELETELOCALPARTITION
,
2292 if (!NT_STATUS_IS_OK(status
)) {
2296 if (DEBUGLEVEL
>= 10) {
2297 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
2300 if (NT_STATUS_IS_ERR(status
)) {
2304 /* Return variables */
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
,
2318 struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r
;
2323 if (DEBUGLEVEL
>= 10) {
2324 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
2327 status
= cli_do_rpc_ndr(cli
,
2330 NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE
,
2333 if (!NT_STATUS_IS_OK(status
)) {
2337 if (DEBUGLEVEL
>= 10) {
2338 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
2341 if (NT_STATUS_IS_ERR(status
)) {
2345 /* Return variables */
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
,
2359 struct srvsvc_NETRDFSSETSERVERINFO r
;
2364 if (DEBUGLEVEL
>= 10) {
2365 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
2368 status
= cli_do_rpc_ndr(cli
,
2371 NDR_SRVSVC_NETRDFSSETSERVERINFO
,
2374 if (!NT_STATUS_IS_OK(status
)) {
2378 if (DEBUGLEVEL
>= 10) {
2379 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
2382 if (NT_STATUS_IS_ERR(status
)) {
2386 /* Return variables */
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
,
2400 struct srvsvc_NETRDFSCREATEEXITPOINT r
;
2405 if (DEBUGLEVEL
>= 10) {
2406 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
2409 status
= cli_do_rpc_ndr(cli
,
2412 NDR_SRVSVC_NETRDFSCREATEEXITPOINT
,
2415 if (!NT_STATUS_IS_OK(status
)) {
2419 if (DEBUGLEVEL
>= 10) {
2420 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
2423 if (NT_STATUS_IS_ERR(status
)) {
2427 /* Return variables */
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
,
2441 struct srvsvc_NETRDFSDELETEEXITPOINT r
;
2446 if (DEBUGLEVEL
>= 10) {
2447 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
2450 status
= cli_do_rpc_ndr(cli
,
2453 NDR_SRVSVC_NETRDFSDELETEEXITPOINT
,
2456 if (!NT_STATUS_IS_OK(status
)) {
2460 if (DEBUGLEVEL
>= 10) {
2461 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
2464 if (NT_STATUS_IS_ERR(status
)) {
2468 /* Return variables */
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
,
2482 struct srvsvc_NETRDFSMODIFYPREFIX r
;
2487 if (DEBUGLEVEL
>= 10) {
2488 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
2491 status
= cli_do_rpc_ndr(cli
,
2494 NDR_SRVSVC_NETRDFSMODIFYPREFIX
,
2497 if (!NT_STATUS_IS_OK(status
)) {
2501 if (DEBUGLEVEL
>= 10) {
2502 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
2505 if (NT_STATUS_IS_ERR(status
)) {
2509 /* Return variables */
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
,
2523 struct srvsvc_NETRDFSFIXLOCALVOLUME r
;
2528 if (DEBUGLEVEL
>= 10) {
2529 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
2532 status
= cli_do_rpc_ndr(cli
,
2535 NDR_SRVSVC_NETRDFSFIXLOCALVOLUME
,
2538 if (!NT_STATUS_IS_OK(status
)) {
2542 if (DEBUGLEVEL
>= 10) {
2543 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
2546 if (NT_STATUS_IS_ERR(status
)) {
2550 /* Return variables */
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
,
2564 struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r
;
2569 if (DEBUGLEVEL
>= 10) {
2570 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
2573 status
= cli_do_rpc_ndr(cli
,
2576 NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO
,
2579 if (!NT_STATUS_IS_OK(status
)) {
2583 if (DEBUGLEVEL
>= 10) {
2584 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
2587 if (NT_STATUS_IS_ERR(status
)) {
2591 /* Return variables */
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
,
2605 struct srvsvc_NETRSERVERTRANSPORTDELEX r
;
2610 if (DEBUGLEVEL
>= 10) {
2611 NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
2614 status
= cli_do_rpc_ndr(cli
,
2617 NDR_SRVSVC_NETRSERVERTRANSPORTDELEX
,
2620 if (!NT_STATUS_IS_OK(status
)) {
2624 if (DEBUGLEVEL
>= 10) {
2625 NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
2628 if (NT_STATUS_IS_ERR(status
)) {
2632 /* Return variables */
2636 *werror
= r
.out
.result
;
2639 return werror_to_ntstatus(r
.out
.result
);