2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_dfs.h"
9 NTSTATUS
rpccli_dfs_GetManagerVersion(struct rpc_pipe_client
*cli
,
11 enum dfs_ManagerVersion
*version
/* [out] [ref] */)
13 struct dfs_GetManagerVersion r
;
18 if (DEBUGLEVEL
>= 10) {
19 NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion
, &r
);
22 status
= cli_do_rpc_ndr(cli
,
26 NDR_DFS_GETMANAGERVERSION
,
29 if (!NT_STATUS_IS_OK(status
)) {
33 if (DEBUGLEVEL
>= 10) {
34 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion
, &r
);
37 if (NT_STATUS_IS_ERR(status
)) {
41 /* Return variables */
42 *version
= *r
.out
.version
;
48 NTSTATUS
rpccli_dfs_Add(struct rpc_pipe_client
*cli
,
50 const char *path
/* [in] [ref,charset(UTF16)] */,
51 const char *server
/* [in] [ref,charset(UTF16)] */,
52 const char *share
/* [in] [unique,charset(UTF16)] */,
53 const char *comment
/* [in] [unique,charset(UTF16)] */,
54 uint32_t flags
/* [in] */,
64 r
.in
.comment
= comment
;
67 if (DEBUGLEVEL
>= 10) {
68 NDR_PRINT_IN_DEBUG(dfs_Add
, &r
);
71 status
= cli_do_rpc_ndr(cli
,
78 if (!NT_STATUS_IS_OK(status
)) {
82 if (DEBUGLEVEL
>= 10) {
83 NDR_PRINT_OUT_DEBUG(dfs_Add
, &r
);
86 if (NT_STATUS_IS_ERR(status
)) {
90 /* Return variables */
94 *werror
= r
.out
.result
;
97 return werror_to_ntstatus(r
.out
.result
);
100 NTSTATUS
rpccli_dfs_Remove(struct rpc_pipe_client
*cli
,
102 const char *dfs_entry_path
/* [in] [ref,charset(UTF16)] */,
103 const char *servername
/* [in] [unique,charset(UTF16)] */,
104 const char *sharename
/* [in] [unique,charset(UTF16)] */,
111 r
.in
.dfs_entry_path
= dfs_entry_path
;
112 r
.in
.servername
= servername
;
113 r
.in
.sharename
= sharename
;
115 if (DEBUGLEVEL
>= 10) {
116 NDR_PRINT_IN_DEBUG(dfs_Remove
, &r
);
119 status
= cli_do_rpc_ndr(cli
,
126 if (!NT_STATUS_IS_OK(status
)) {
130 if (DEBUGLEVEL
>= 10) {
131 NDR_PRINT_OUT_DEBUG(dfs_Remove
, &r
);
134 if (NT_STATUS_IS_ERR(status
)) {
138 /* Return variables */
142 *werror
= r
.out
.result
;
145 return werror_to_ntstatus(r
.out
.result
);
148 NTSTATUS
rpccli_dfs_SetInfo(struct rpc_pipe_client
*cli
,
150 const char *dfs_entry_path
/* [in] [charset(UTF16)] */,
151 const char *servername
/* [in] [unique,charset(UTF16)] */,
152 const char *sharename
/* [in] [unique,charset(UTF16)] */,
153 uint32_t level
/* [in] */,
154 union dfs_Info
*info
/* [in] [ref,switch_is(level)] */,
157 struct dfs_SetInfo r
;
161 r
.in
.dfs_entry_path
= dfs_entry_path
;
162 r
.in
.servername
= servername
;
163 r
.in
.sharename
= sharename
;
167 if (DEBUGLEVEL
>= 10) {
168 NDR_PRINT_IN_DEBUG(dfs_SetInfo
, &r
);
171 status
= cli_do_rpc_ndr(cli
,
178 if (!NT_STATUS_IS_OK(status
)) {
182 if (DEBUGLEVEL
>= 10) {
183 NDR_PRINT_OUT_DEBUG(dfs_SetInfo
, &r
);
186 if (NT_STATUS_IS_ERR(status
)) {
190 /* Return variables */
194 *werror
= r
.out
.result
;
197 return werror_to_ntstatus(r
.out
.result
);
200 NTSTATUS
rpccli_dfs_GetInfo(struct rpc_pipe_client
*cli
,
202 const char *dfs_entry_path
/* [in] [charset(UTF16)] */,
203 const char *servername
/* [in] [unique,charset(UTF16)] */,
204 const char *sharename
/* [in] [unique,charset(UTF16)] */,
205 uint32_t level
/* [in] */,
206 union dfs_Info
*info
/* [out] [ref,switch_is(level)] */,
209 struct dfs_GetInfo r
;
213 r
.in
.dfs_entry_path
= dfs_entry_path
;
214 r
.in
.servername
= servername
;
215 r
.in
.sharename
= sharename
;
218 if (DEBUGLEVEL
>= 10) {
219 NDR_PRINT_IN_DEBUG(dfs_GetInfo
, &r
);
222 status
= cli_do_rpc_ndr(cli
,
229 if (!NT_STATUS_IS_OK(status
)) {
233 if (DEBUGLEVEL
>= 10) {
234 NDR_PRINT_OUT_DEBUG(dfs_GetInfo
, &r
);
237 if (NT_STATUS_IS_ERR(status
)) {
241 /* Return variables */
246 *werror
= r
.out
.result
;
249 return werror_to_ntstatus(r
.out
.result
);
252 NTSTATUS
rpccli_dfs_Enum(struct rpc_pipe_client
*cli
,
254 uint32_t level
/* [in] */,
255 uint32_t bufsize
/* [in] */,
256 struct dfs_EnumStruct
*info
/* [in,out] [unique] */,
257 uint32_t *total
/* [in,out] [unique] */,
265 r
.in
.bufsize
= bufsize
;
269 if (DEBUGLEVEL
>= 10) {
270 NDR_PRINT_IN_DEBUG(dfs_Enum
, &r
);
273 status
= cli_do_rpc_ndr(cli
,
280 if (!NT_STATUS_IS_OK(status
)) {
284 if (DEBUGLEVEL
>= 10) {
285 NDR_PRINT_OUT_DEBUG(dfs_Enum
, &r
);
288 if (NT_STATUS_IS_ERR(status
)) {
292 /* Return variables */
293 if (info
&& r
.out
.info
) {
296 if (total
&& r
.out
.total
) {
297 *total
= *r
.out
.total
;
302 *werror
= r
.out
.result
;
305 return werror_to_ntstatus(r
.out
.result
);
308 NTSTATUS
rpccli_dfs_Rename(struct rpc_pipe_client
*cli
,
317 if (DEBUGLEVEL
>= 10) {
318 NDR_PRINT_IN_DEBUG(dfs_Rename
, &r
);
321 status
= cli_do_rpc_ndr(cli
,
328 if (!NT_STATUS_IS_OK(status
)) {
332 if (DEBUGLEVEL
>= 10) {
333 NDR_PRINT_OUT_DEBUG(dfs_Rename
, &r
);
336 if (NT_STATUS_IS_ERR(status
)) {
340 /* Return variables */
344 *werror
= r
.out
.result
;
347 return werror_to_ntstatus(r
.out
.result
);
350 NTSTATUS
rpccli_dfs_Move(struct rpc_pipe_client
*cli
,
359 if (DEBUGLEVEL
>= 10) {
360 NDR_PRINT_IN_DEBUG(dfs_Move
, &r
);
363 status
= cli_do_rpc_ndr(cli
,
370 if (!NT_STATUS_IS_OK(status
)) {
374 if (DEBUGLEVEL
>= 10) {
375 NDR_PRINT_OUT_DEBUG(dfs_Move
, &r
);
378 if (NT_STATUS_IS_ERR(status
)) {
382 /* Return variables */
386 *werror
= r
.out
.result
;
389 return werror_to_ntstatus(r
.out
.result
);
392 NTSTATUS
rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client
*cli
,
396 struct dfs_ManagerGetConfigInfo r
;
401 if (DEBUGLEVEL
>= 10) {
402 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo
, &r
);
405 status
= cli_do_rpc_ndr(cli
,
409 NDR_DFS_MANAGERGETCONFIGINFO
,
412 if (!NT_STATUS_IS_OK(status
)) {
416 if (DEBUGLEVEL
>= 10) {
417 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo
, &r
);
420 if (NT_STATUS_IS_ERR(status
)) {
424 /* Return variables */
428 *werror
= r
.out
.result
;
431 return werror_to_ntstatus(r
.out
.result
);
434 NTSTATUS
rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client
*cli
,
438 struct dfs_ManagerSendSiteInfo r
;
443 if (DEBUGLEVEL
>= 10) {
444 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo
, &r
);
447 status
= cli_do_rpc_ndr(cli
,
451 NDR_DFS_MANAGERSENDSITEINFO
,
454 if (!NT_STATUS_IS_OK(status
)) {
458 if (DEBUGLEVEL
>= 10) {
459 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo
, &r
);
462 if (NT_STATUS_IS_ERR(status
)) {
466 /* Return variables */
470 *werror
= r
.out
.result
;
473 return werror_to_ntstatus(r
.out
.result
);
476 NTSTATUS
rpccli_dfs_AddFtRoot(struct rpc_pipe_client
*cli
,
478 const char *servername
/* [in] [charset(UTF16)] */,
479 const char *dns_servername
/* [in] [charset(UTF16)] */,
480 const char *dfsname
/* [in] [charset(UTF16)] */,
481 const char *rootshare
/* [in] [charset(UTF16)] */,
482 const char *comment
/* [in] [charset(UTF16)] */,
483 const char *dfs_config_dn
/* [in] [charset(UTF16)] */,
484 uint8_t unknown1
/* [in] */,
485 uint32_t flags
/* [in] */,
486 struct dfs_UnknownStruct
**unknown2
/* [in,out] [unique] */,
489 struct dfs_AddFtRoot r
;
493 r
.in
.servername
= servername
;
494 r
.in
.dns_servername
= dns_servername
;
495 r
.in
.dfsname
= dfsname
;
496 r
.in
.rootshare
= rootshare
;
497 r
.in
.comment
= comment
;
498 r
.in
.dfs_config_dn
= dfs_config_dn
;
499 r
.in
.unknown1
= unknown1
;
501 r
.in
.unknown2
= unknown2
;
503 if (DEBUGLEVEL
>= 10) {
504 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot
, &r
);
507 status
= cli_do_rpc_ndr(cli
,
514 if (!NT_STATUS_IS_OK(status
)) {
518 if (DEBUGLEVEL
>= 10) {
519 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot
, &r
);
522 if (NT_STATUS_IS_ERR(status
)) {
526 /* Return variables */
527 if (unknown2
&& r
.out
.unknown2
) {
528 *unknown2
= *r
.out
.unknown2
;
533 *werror
= r
.out
.result
;
536 return werror_to_ntstatus(r
.out
.result
);
539 NTSTATUS
rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client
*cli
,
541 const char *servername
/* [in] [charset(UTF16)] */,
542 const char *dns_servername
/* [in] [charset(UTF16)] */,
543 const char *dfsname
/* [in] [charset(UTF16)] */,
544 const char *rootshare
/* [in] [charset(UTF16)] */,
545 uint32_t flags
/* [in] */,
546 struct dfs_UnknownStruct
**unknown
/* [in,out] [unique] */,
549 struct dfs_RemoveFtRoot r
;
553 r
.in
.servername
= servername
;
554 r
.in
.dns_servername
= dns_servername
;
555 r
.in
.dfsname
= dfsname
;
556 r
.in
.rootshare
= rootshare
;
558 r
.in
.unknown
= unknown
;
560 if (DEBUGLEVEL
>= 10) {
561 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot
, &r
);
564 status
= cli_do_rpc_ndr(cli
,
568 NDR_DFS_REMOVEFTROOT
,
571 if (!NT_STATUS_IS_OK(status
)) {
575 if (DEBUGLEVEL
>= 10) {
576 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot
, &r
);
579 if (NT_STATUS_IS_ERR(status
)) {
583 /* Return variables */
584 if (unknown
&& r
.out
.unknown
) {
585 *unknown
= *r
.out
.unknown
;
590 *werror
= r
.out
.result
;
593 return werror_to_ntstatus(r
.out
.result
);
596 NTSTATUS
rpccli_dfs_AddStdRoot(struct rpc_pipe_client
*cli
,
598 const char *servername
/* [in] [charset(UTF16)] */,
599 const char *rootshare
/* [in] [charset(UTF16)] */,
600 const char *comment
/* [in] [charset(UTF16)] */,
601 uint32_t flags
/* [in] */,
604 struct dfs_AddStdRoot r
;
608 r
.in
.servername
= servername
;
609 r
.in
.rootshare
= rootshare
;
610 r
.in
.comment
= comment
;
613 if (DEBUGLEVEL
>= 10) {
614 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot
, &r
);
617 status
= cli_do_rpc_ndr(cli
,
624 if (!NT_STATUS_IS_OK(status
)) {
628 if (DEBUGLEVEL
>= 10) {
629 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot
, &r
);
632 if (NT_STATUS_IS_ERR(status
)) {
636 /* Return variables */
640 *werror
= r
.out
.result
;
643 return werror_to_ntstatus(r
.out
.result
);
646 NTSTATUS
rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client
*cli
,
648 const char *servername
/* [in] [charset(UTF16)] */,
649 const char *rootshare
/* [in] [charset(UTF16)] */,
650 uint32_t flags
/* [in] */,
653 struct dfs_RemoveStdRoot r
;
657 r
.in
.servername
= servername
;
658 r
.in
.rootshare
= rootshare
;
661 if (DEBUGLEVEL
>= 10) {
662 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot
, &r
);
665 status
= cli_do_rpc_ndr(cli
,
669 NDR_DFS_REMOVESTDROOT
,
672 if (!NT_STATUS_IS_OK(status
)) {
676 if (DEBUGLEVEL
>= 10) {
677 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot
, &r
);
680 if (NT_STATUS_IS_ERR(status
)) {
684 /* Return variables */
688 *werror
= r
.out
.result
;
691 return werror_to_ntstatus(r
.out
.result
);
694 NTSTATUS
rpccli_dfs_ManagerInitialize(struct rpc_pipe_client
*cli
,
696 const char *servername
/* [in] [ref,charset(UTF16)] */,
697 uint32_t flags
/* [in] */,
700 struct dfs_ManagerInitialize r
;
704 r
.in
.servername
= servername
;
707 if (DEBUGLEVEL
>= 10) {
708 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize
, &r
);
711 status
= cli_do_rpc_ndr(cli
,
715 NDR_DFS_MANAGERINITIALIZE
,
718 if (!NT_STATUS_IS_OK(status
)) {
722 if (DEBUGLEVEL
>= 10) {
723 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize
, &r
);
726 if (NT_STATUS_IS_ERR(status
)) {
730 /* Return variables */
734 *werror
= r
.out
.result
;
737 return werror_to_ntstatus(r
.out
.result
);
740 NTSTATUS
rpccli_dfs_AddStdRootForced(struct rpc_pipe_client
*cli
,
742 const char *servername
/* [in] [charset(UTF16)] */,
743 const char *rootshare
/* [in] [charset(UTF16)] */,
744 const char *comment
/* [in] [charset(UTF16)] */,
745 const char *store
/* [in] [charset(UTF16)] */,
748 struct dfs_AddStdRootForced r
;
752 r
.in
.servername
= servername
;
753 r
.in
.rootshare
= rootshare
;
754 r
.in
.comment
= comment
;
757 if (DEBUGLEVEL
>= 10) {
758 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced
, &r
);
761 status
= cli_do_rpc_ndr(cli
,
765 NDR_DFS_ADDSTDROOTFORCED
,
768 if (!NT_STATUS_IS_OK(status
)) {
772 if (DEBUGLEVEL
>= 10) {
773 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced
, &r
);
776 if (NT_STATUS_IS_ERR(status
)) {
780 /* Return variables */
784 *werror
= r
.out
.result
;
787 return werror_to_ntstatus(r
.out
.result
);
790 NTSTATUS
rpccli_dfs_GetDcAddress(struct rpc_pipe_client
*cli
,
792 const char *servername
/* [in] [charset(UTF16)] */,
793 const char **server_fullname
/* [in,out] [ref,charset(UTF16)] */,
794 uint8_t *is_root
/* [in,out] [ref] */,
795 uint32_t *ttl
/* [in,out] [ref] */,
798 struct dfs_GetDcAddress r
;
802 r
.in
.servername
= servername
;
803 r
.in
.server_fullname
= server_fullname
;
804 r
.in
.is_root
= is_root
;
807 if (DEBUGLEVEL
>= 10) {
808 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress
, &r
);
811 status
= cli_do_rpc_ndr(cli
,
815 NDR_DFS_GETDCADDRESS
,
818 if (!NT_STATUS_IS_OK(status
)) {
822 if (DEBUGLEVEL
>= 10) {
823 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress
, &r
);
826 if (NT_STATUS_IS_ERR(status
)) {
830 /* Return variables */
831 *server_fullname
= *r
.out
.server_fullname
;
832 *is_root
= *r
.out
.is_root
;
837 *werror
= r
.out
.result
;
840 return werror_to_ntstatus(r
.out
.result
);
843 NTSTATUS
rpccli_dfs_SetDcAddress(struct rpc_pipe_client
*cli
,
845 const char *servername
/* [in] [charset(UTF16)] */,
846 const char *server_fullname
/* [in] [charset(UTF16)] */,
847 uint32_t flags
/* [in] */,
848 uint32_t ttl
/* [in] */,
851 struct dfs_SetDcAddress r
;
855 r
.in
.servername
= servername
;
856 r
.in
.server_fullname
= server_fullname
;
860 if (DEBUGLEVEL
>= 10) {
861 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress
, &r
);
864 status
= cli_do_rpc_ndr(cli
,
868 NDR_DFS_SETDCADDRESS
,
871 if (!NT_STATUS_IS_OK(status
)) {
875 if (DEBUGLEVEL
>= 10) {
876 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress
, &r
);
879 if (NT_STATUS_IS_ERR(status
)) {
883 /* Return variables */
887 *werror
= r
.out
.result
;
890 return werror_to_ntstatus(r
.out
.result
);
893 NTSTATUS
rpccli_dfs_FlushFtTable(struct rpc_pipe_client
*cli
,
895 const char *servername
/* [in] [charset(UTF16)] */,
896 const char *rootshare
/* [in] [charset(UTF16)] */,
899 struct dfs_FlushFtTable r
;
903 r
.in
.servername
= servername
;
904 r
.in
.rootshare
= rootshare
;
906 if (DEBUGLEVEL
>= 10) {
907 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable
, &r
);
910 status
= cli_do_rpc_ndr(cli
,
914 NDR_DFS_FLUSHFTTABLE
,
917 if (!NT_STATUS_IS_OK(status
)) {
921 if (DEBUGLEVEL
>= 10) {
922 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable
, &r
);
925 if (NT_STATUS_IS_ERR(status
)) {
929 /* Return variables */
933 *werror
= r
.out
.result
;
936 return werror_to_ntstatus(r
.out
.result
);
939 NTSTATUS
rpccli_dfs_Add2(struct rpc_pipe_client
*cli
,
948 if (DEBUGLEVEL
>= 10) {
949 NDR_PRINT_IN_DEBUG(dfs_Add2
, &r
);
952 status
= cli_do_rpc_ndr(cli
,
959 if (!NT_STATUS_IS_OK(status
)) {
963 if (DEBUGLEVEL
>= 10) {
964 NDR_PRINT_OUT_DEBUG(dfs_Add2
, &r
);
967 if (NT_STATUS_IS_ERR(status
)) {
971 /* Return variables */
975 *werror
= r
.out
.result
;
978 return werror_to_ntstatus(r
.out
.result
);
981 NTSTATUS
rpccli_dfs_Remove2(struct rpc_pipe_client
*cli
,
985 struct dfs_Remove2 r
;
990 if (DEBUGLEVEL
>= 10) {
991 NDR_PRINT_IN_DEBUG(dfs_Remove2
, &r
);
994 status
= cli_do_rpc_ndr(cli
,
1001 if (!NT_STATUS_IS_OK(status
)) {
1005 if (DEBUGLEVEL
>= 10) {
1006 NDR_PRINT_OUT_DEBUG(dfs_Remove2
, &r
);
1009 if (NT_STATUS_IS_ERR(status
)) {
1013 /* Return variables */
1017 *werror
= r
.out
.result
;
1020 return werror_to_ntstatus(r
.out
.result
);
1023 NTSTATUS
rpccli_dfs_EnumEx(struct rpc_pipe_client
*cli
,
1024 TALLOC_CTX
*mem_ctx
,
1025 const char *dfs_name
/* [in] [charset(UTF16)] */,
1026 uint32_t level
/* [in] */,
1027 uint32_t bufsize
/* [in] */,
1028 struct dfs_EnumStruct
*info
/* [in,out] [unique] */,
1029 uint32_t *total
/* [in,out] [unique] */,
1032 struct dfs_EnumEx r
;
1036 r
.in
.dfs_name
= dfs_name
;
1038 r
.in
.bufsize
= bufsize
;
1042 if (DEBUGLEVEL
>= 10) {
1043 NDR_PRINT_IN_DEBUG(dfs_EnumEx
, &r
);
1046 status
= cli_do_rpc_ndr(cli
,
1053 if (!NT_STATUS_IS_OK(status
)) {
1057 if (DEBUGLEVEL
>= 10) {
1058 NDR_PRINT_OUT_DEBUG(dfs_EnumEx
, &r
);
1061 if (NT_STATUS_IS_ERR(status
)) {
1065 /* Return variables */
1066 if (info
&& r
.out
.info
) {
1067 *info
= *r
.out
.info
;
1069 if (total
&& r
.out
.total
) {
1070 *total
= *r
.out
.total
;
1075 *werror
= r
.out
.result
;
1078 return werror_to_ntstatus(r
.out
.result
);
1081 NTSTATUS
rpccli_dfs_SetInfo2(struct rpc_pipe_client
*cli
,
1082 TALLOC_CTX
*mem_ctx
,
1085 struct dfs_SetInfo2 r
;
1090 if (DEBUGLEVEL
>= 10) {
1091 NDR_PRINT_IN_DEBUG(dfs_SetInfo2
, &r
);
1094 status
= cli_do_rpc_ndr(cli
,
1101 if (!NT_STATUS_IS_OK(status
)) {
1105 if (DEBUGLEVEL
>= 10) {
1106 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2
, &r
);
1109 if (NT_STATUS_IS_ERR(status
)) {
1113 /* Return variables */
1117 *werror
= r
.out
.result
;
1120 return werror_to_ntstatus(r
.out
.result
);