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->dispatch(cli,
25 NDR_DFS_GETMANAGERVERSION,
28 if (!NT_STATUS_IS_OK(status)) {
32 if (DEBUGLEVEL >= 10) {
33 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
36 if (NT_STATUS_IS_ERR(status)) {
40 /* Return variables */
41 *version = *r.out.version;
47 NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
49 const char *path /* [in] [ref,charset(UTF16)] */,
50 const char *server /* [in] [ref,charset(UTF16)] */,
51 const char *share /* [in] [unique,charset(UTF16)] */,
52 const char *comment /* [in] [unique,charset(UTF16)] */,
53 uint32_t flags /* [in] */,
63 r.in.comment = comment;
66 if (DEBUGLEVEL >= 10) {
67 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
70 status = cli->dispatch(cli,
76 if (!NT_STATUS_IS_OK(status)) {
80 if (DEBUGLEVEL >= 10) {
81 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
84 if (NT_STATUS_IS_ERR(status)) {
88 /* Return variables */
92 *werror = r.out.result;
95 return werror_to_ntstatus(r.out.result);
98 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
100 const char *dfs_entry_path /* [in] [ref,charset(UTF16)] */,
101 const char *servername /* [in] [unique,charset(UTF16)] */,
102 const char *sharename /* [in] [unique,charset(UTF16)] */,
109 r.in.dfs_entry_path = dfs_entry_path;
110 r.in.servername = servername;
111 r.in.sharename = sharename;
113 if (DEBUGLEVEL >= 10) {
114 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
117 status = cli->dispatch(cli,
123 if (!NT_STATUS_IS_OK(status)) {
127 if (DEBUGLEVEL >= 10) {
128 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
131 if (NT_STATUS_IS_ERR(status)) {
135 /* Return variables */
139 *werror = r.out.result;
142 return werror_to_ntstatus(r.out.result);
145 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
147 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
148 const char *servername /* [in] [unique,charset(UTF16)] */,
149 const char *sharename /* [in] [unique,charset(UTF16)] */,
150 uint32_t level /* [in] */,
151 union dfs_Info *info /* [in] [ref,switch_is(level)] */,
154 struct dfs_SetInfo r;
158 r.in.dfs_entry_path = dfs_entry_path;
159 r.in.servername = servername;
160 r.in.sharename = sharename;
164 if (DEBUGLEVEL >= 10) {
165 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
168 status = cli->dispatch(cli,
174 if (!NT_STATUS_IS_OK(status)) {
178 if (DEBUGLEVEL >= 10) {
179 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
182 if (NT_STATUS_IS_ERR(status)) {
186 /* Return variables */
190 *werror = r.out.result;
193 return werror_to_ntstatus(r.out.result);
196 NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
198 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
199 const char *servername /* [in] [unique,charset(UTF16)] */,
200 const char *sharename /* [in] [unique,charset(UTF16)] */,
201 uint32_t level /* [in] */,
202 union dfs_Info *info /* [out] [ref,switch_is(level)] */,
205 struct dfs_GetInfo r;
209 r.in.dfs_entry_path = dfs_entry_path;
210 r.in.servername = servername;
211 r.in.sharename = sharename;
214 if (DEBUGLEVEL >= 10) {
215 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
218 status = cli->dispatch(cli,
224 if (!NT_STATUS_IS_OK(status)) {
228 if (DEBUGLEVEL >= 10) {
229 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
232 if (NT_STATUS_IS_ERR(status)) {
236 /* Return variables */
241 *werror = r.out.result;
244 return werror_to_ntstatus(r.out.result);
247 NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
249 uint32_t level /* [in] */,
250 uint32_t bufsize /* [in] */,
251 struct dfs_EnumStruct *info /* [in,out] [unique] */,
252 uint32_t *total /* [in,out] [unique] */,
260 r.in.bufsize = bufsize;
264 if (DEBUGLEVEL >= 10) {
265 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
268 status = cli->dispatch(cli,
274 if (!NT_STATUS_IS_OK(status)) {
278 if (DEBUGLEVEL >= 10) {
279 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
282 if (NT_STATUS_IS_ERR(status)) {
286 /* Return variables */
287 if (info && r.out.info) {
290 if (total && r.out.total) {
291 *total = *r.out.total;
296 *werror = r.out.result;
299 return werror_to_ntstatus(r.out.result);
302 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
311 if (DEBUGLEVEL >= 10) {
312 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
315 status = cli->dispatch(cli,
321 if (!NT_STATUS_IS_OK(status)) {
325 if (DEBUGLEVEL >= 10) {
326 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
329 if (NT_STATUS_IS_ERR(status)) {
333 /* Return variables */
337 *werror = r.out.result;
340 return werror_to_ntstatus(r.out.result);
343 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
352 if (DEBUGLEVEL >= 10) {
353 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
356 status = cli->dispatch(cli,
362 if (!NT_STATUS_IS_OK(status)) {
366 if (DEBUGLEVEL >= 10) {
367 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
370 if (NT_STATUS_IS_ERR(status)) {
374 /* Return variables */
378 *werror = r.out.result;
381 return werror_to_ntstatus(r.out.result);
384 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
388 struct dfs_ManagerGetConfigInfo r;
393 if (DEBUGLEVEL >= 10) {
394 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
397 status = cli->dispatch(cli,
400 NDR_DFS_MANAGERGETCONFIGINFO,
403 if (!NT_STATUS_IS_OK(status)) {
407 if (DEBUGLEVEL >= 10) {
408 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
411 if (NT_STATUS_IS_ERR(status)) {
415 /* Return variables */
419 *werror = r.out.result;
422 return werror_to_ntstatus(r.out.result);
425 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
429 struct dfs_ManagerSendSiteInfo r;
434 if (DEBUGLEVEL >= 10) {
435 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
438 status = cli->dispatch(cli,
441 NDR_DFS_MANAGERSENDSITEINFO,
444 if (!NT_STATUS_IS_OK(status)) {
448 if (DEBUGLEVEL >= 10) {
449 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
452 if (NT_STATUS_IS_ERR(status)) {
456 /* Return variables */
460 *werror = r.out.result;
463 return werror_to_ntstatus(r.out.result);
466 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
468 const char *servername /* [in] [charset(UTF16)] */,
469 const char *dns_servername /* [in] [charset(UTF16)] */,
470 const char *dfsname /* [in] [charset(UTF16)] */,
471 const char *rootshare /* [in] [charset(UTF16)] */,
472 const char *comment /* [in] [charset(UTF16)] */,
473 const char *dfs_config_dn /* [in] [charset(UTF16)] */,
474 uint8_t unknown1 /* [in] */,
475 uint32_t flags /* [in] */,
476 struct dfs_UnknownStruct **unknown2 /* [in,out] [unique] */,
479 struct dfs_AddFtRoot r;
483 r.in.servername = servername;
484 r.in.dns_servername = dns_servername;
485 r.in.dfsname = dfsname;
486 r.in.rootshare = rootshare;
487 r.in.comment = comment;
488 r.in.dfs_config_dn = dfs_config_dn;
489 r.in.unknown1 = unknown1;
491 r.in.unknown2 = unknown2;
493 if (DEBUGLEVEL >= 10) {
494 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
497 status = cli->dispatch(cli,
503 if (!NT_STATUS_IS_OK(status)) {
507 if (DEBUGLEVEL >= 10) {
508 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
511 if (NT_STATUS_IS_ERR(status)) {
515 /* Return variables */
516 if (unknown2 && r.out.unknown2) {
517 *unknown2 = *r.out.unknown2;
522 *werror = r.out.result;
525 return werror_to_ntstatus(r.out.result);
528 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
530 const char *servername /* [in] [charset(UTF16)] */,
531 const char *dns_servername /* [in] [charset(UTF16)] */,
532 const char *dfsname /* [in] [charset(UTF16)] */,
533 const char *rootshare /* [in] [charset(UTF16)] */,
534 uint32_t flags /* [in] */,
535 struct dfs_UnknownStruct **unknown /* [in,out] [unique] */,
538 struct dfs_RemoveFtRoot r;
542 r.in.servername = servername;
543 r.in.dns_servername = dns_servername;
544 r.in.dfsname = dfsname;
545 r.in.rootshare = rootshare;
547 r.in.unknown = unknown;
549 if (DEBUGLEVEL >= 10) {
550 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
553 status = cli->dispatch(cli,
556 NDR_DFS_REMOVEFTROOT,
559 if (!NT_STATUS_IS_OK(status)) {
563 if (DEBUGLEVEL >= 10) {
564 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
567 if (NT_STATUS_IS_ERR(status)) {
571 /* Return variables */
572 if (unknown && r.out.unknown) {
573 *unknown = *r.out.unknown;
578 *werror = r.out.result;
581 return werror_to_ntstatus(r.out.result);
584 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
586 const char *servername /* [in] [charset(UTF16)] */,
587 const char *rootshare /* [in] [charset(UTF16)] */,
588 const char *comment /* [in] [charset(UTF16)] */,
589 uint32_t flags /* [in] */,
592 struct dfs_AddStdRoot r;
596 r.in.servername = servername;
597 r.in.rootshare = rootshare;
598 r.in.comment = comment;
601 if (DEBUGLEVEL >= 10) {
602 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
605 status = cli->dispatch(cli,
611 if (!NT_STATUS_IS_OK(status)) {
615 if (DEBUGLEVEL >= 10) {
616 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
619 if (NT_STATUS_IS_ERR(status)) {
623 /* Return variables */
627 *werror = r.out.result;
630 return werror_to_ntstatus(r.out.result);
633 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
635 const char *servername /* [in] [charset(UTF16)] */,
636 const char *rootshare /* [in] [charset(UTF16)] */,
637 uint32_t flags /* [in] */,
640 struct dfs_RemoveStdRoot r;
644 r.in.servername = servername;
645 r.in.rootshare = rootshare;
648 if (DEBUGLEVEL >= 10) {
649 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
652 status = cli->dispatch(cli,
655 NDR_DFS_REMOVESTDROOT,
658 if (!NT_STATUS_IS_OK(status)) {
662 if (DEBUGLEVEL >= 10) {
663 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
666 if (NT_STATUS_IS_ERR(status)) {
670 /* Return variables */
674 *werror = r.out.result;
677 return werror_to_ntstatus(r.out.result);
680 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
682 const char *servername /* [in] [ref,charset(UTF16)] */,
683 uint32_t flags /* [in] */,
686 struct dfs_ManagerInitialize r;
690 r.in.servername = servername;
693 if (DEBUGLEVEL >= 10) {
694 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
697 status = cli->dispatch(cli,
700 NDR_DFS_MANAGERINITIALIZE,
703 if (!NT_STATUS_IS_OK(status)) {
707 if (DEBUGLEVEL >= 10) {
708 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
711 if (NT_STATUS_IS_ERR(status)) {
715 /* Return variables */
719 *werror = r.out.result;
722 return werror_to_ntstatus(r.out.result);
725 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
727 const char *servername /* [in] [charset(UTF16)] */,
728 const char *rootshare /* [in] [charset(UTF16)] */,
729 const char *comment /* [in] [charset(UTF16)] */,
730 const char *store /* [in] [charset(UTF16)] */,
733 struct dfs_AddStdRootForced r;
737 r.in.servername = servername;
738 r.in.rootshare = rootshare;
739 r.in.comment = comment;
742 if (DEBUGLEVEL >= 10) {
743 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
746 status = cli->dispatch(cli,
749 NDR_DFS_ADDSTDROOTFORCED,
752 if (!NT_STATUS_IS_OK(status)) {
756 if (DEBUGLEVEL >= 10) {
757 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
760 if (NT_STATUS_IS_ERR(status)) {
764 /* Return variables */
768 *werror = r.out.result;
771 return werror_to_ntstatus(r.out.result);
774 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
776 const char *servername /* [in] [charset(UTF16)] */,
777 const char **server_fullname /* [in,out] [ref,charset(UTF16)] */,
778 uint8_t *is_root /* [in,out] [ref] */,
779 uint32_t *ttl /* [in,out] [ref] */,
782 struct dfs_GetDcAddress r;
786 r.in.servername = servername;
787 r.in.server_fullname = server_fullname;
788 r.in.is_root = is_root;
791 if (DEBUGLEVEL >= 10) {
792 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
795 status = cli->dispatch(cli,
798 NDR_DFS_GETDCADDRESS,
801 if (!NT_STATUS_IS_OK(status)) {
805 if (DEBUGLEVEL >= 10) {
806 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
809 if (NT_STATUS_IS_ERR(status)) {
813 /* Return variables */
814 *server_fullname = *r.out.server_fullname;
815 *is_root = *r.out.is_root;
820 *werror = r.out.result;
823 return werror_to_ntstatus(r.out.result);
826 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
828 const char *servername /* [in] [charset(UTF16)] */,
829 const char *server_fullname /* [in] [charset(UTF16)] */,
830 uint32_t flags /* [in] */,
831 uint32_t ttl /* [in] */,
834 struct dfs_SetDcAddress r;
838 r.in.servername = servername;
839 r.in.server_fullname = server_fullname;
843 if (DEBUGLEVEL >= 10) {
844 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
847 status = cli->dispatch(cli,
850 NDR_DFS_SETDCADDRESS,
853 if (!NT_STATUS_IS_OK(status)) {
857 if (DEBUGLEVEL >= 10) {
858 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
861 if (NT_STATUS_IS_ERR(status)) {
865 /* Return variables */
869 *werror = r.out.result;
872 return werror_to_ntstatus(r.out.result);
875 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
877 const char *servername /* [in] [charset(UTF16)] */,
878 const char *rootshare /* [in] [charset(UTF16)] */,
881 struct dfs_FlushFtTable r;
885 r.in.servername = servername;
886 r.in.rootshare = rootshare;
888 if (DEBUGLEVEL >= 10) {
889 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
892 status = cli->dispatch(cli,
895 NDR_DFS_FLUSHFTTABLE,
898 if (!NT_STATUS_IS_OK(status)) {
902 if (DEBUGLEVEL >= 10) {
903 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
906 if (NT_STATUS_IS_ERR(status)) {
910 /* Return variables */
914 *werror = r.out.result;
917 return werror_to_ntstatus(r.out.result);
920 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
929 if (DEBUGLEVEL >= 10) {
930 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
933 status = cli->dispatch(cli,
939 if (!NT_STATUS_IS_OK(status)) {
943 if (DEBUGLEVEL >= 10) {
944 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
947 if (NT_STATUS_IS_ERR(status)) {
951 /* Return variables */
955 *werror = r.out.result;
958 return werror_to_ntstatus(r.out.result);
961 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
965 struct dfs_Remove2 r;
970 if (DEBUGLEVEL >= 10) {
971 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
974 status = cli->dispatch(cli,
980 if (!NT_STATUS_IS_OK(status)) {
984 if (DEBUGLEVEL >= 10) {
985 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
988 if (NT_STATUS_IS_ERR(status)) {
992 /* Return variables */
996 *werror = r.out.result;
999 return werror_to_ntstatus(r.out.result);
1002 NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
1003 TALLOC_CTX *mem_ctx,
1004 const char *dfs_name /* [in] [charset(UTF16)] */,
1005 uint32_t level /* [in] */,
1006 uint32_t bufsize /* [in] */,
1007 struct dfs_EnumStruct *info /* [in,out] [unique] */,
1008 uint32_t *total /* [in,out] [unique] */,
1011 struct dfs_EnumEx r;
1015 r.in.dfs_name = dfs_name;
1017 r.in.bufsize = bufsize;
1021 if (DEBUGLEVEL >= 10) {
1022 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
1025 status = cli->dispatch(cli,
1031 if (!NT_STATUS_IS_OK(status)) {
1035 if (DEBUGLEVEL >= 10) {
1036 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
1039 if (NT_STATUS_IS_ERR(status)) {
1043 /* Return variables */
1044 if (info && r.out.info) {
1045 *info = *r.out.info;
1047 if (total && r.out.total) {
1048 *total = *r.out.total;
1053 *werror = r.out.result;
1056 return werror_to_ntstatus(r.out.result);
1059 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
1060 TALLOC_CTX *mem_ctx,
1063 struct dfs_SetInfo2 r;
1068 if (DEBUGLEVEL >= 10) {
1069 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
1072 status = cli->dispatch(cli,
1078 if (!NT_STATUS_IS_OK(status)) {
1082 if (DEBUGLEVEL >= 10) {
1083 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
1086 if (NT_STATUS_IS_ERR(status)) {
1090 /* Return variables */
1094 *werror = r.out.result;
1097 return werror_to_ntstatus(r.out.result);