2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "../librpc/gen_ndr/cli_drsuapi.h"
9 NTSTATUS
rpccli_drsuapi_DsBind(struct rpc_pipe_client
*cli
,
11 struct GUID
*bind_guid
/* [in] [unique] */,
12 struct drsuapi_DsBindInfoCtr
*bind_info
/* [in,out] [unique] */,
13 struct policy_handle
*bind_handle
/* [out] [ref] */,
16 struct drsuapi_DsBind r
;
20 r
.in
.bind_guid
= bind_guid
;
21 r
.in
.bind_info
= bind_info
;
23 if (DEBUGLEVEL
>= 10) {
24 NDR_PRINT_IN_DEBUG(drsuapi_DsBind
, &r
);
27 status
= cli
->dispatch(cli
,
33 if (!NT_STATUS_IS_OK(status
)) {
37 if (DEBUGLEVEL
>= 10) {
38 NDR_PRINT_OUT_DEBUG(drsuapi_DsBind
, &r
);
41 if (NT_STATUS_IS_ERR(status
)) {
45 /* Return variables */
46 if (bind_info
&& r
.out
.bind_info
) {
47 *bind_info
= *r
.out
.bind_info
;
49 *bind_handle
= *r
.out
.bind_handle
;
53 *werror
= r
.out
.result
;
56 return werror_to_ntstatus(r
.out
.result
);
59 NTSTATUS
rpccli_drsuapi_DsUnbind(struct rpc_pipe_client
*cli
,
61 struct policy_handle
*bind_handle
/* [in,out] [ref] */,
64 struct drsuapi_DsUnbind r
;
68 r
.in
.bind_handle
= bind_handle
;
70 if (DEBUGLEVEL
>= 10) {
71 NDR_PRINT_IN_DEBUG(drsuapi_DsUnbind
, &r
);
74 status
= cli
->dispatch(cli
,
80 if (!NT_STATUS_IS_OK(status
)) {
84 if (DEBUGLEVEL
>= 10) {
85 NDR_PRINT_OUT_DEBUG(drsuapi_DsUnbind
, &r
);
88 if (NT_STATUS_IS_ERR(status
)) {
92 /* Return variables */
93 *bind_handle
= *r
.out
.bind_handle
;
97 *werror
= r
.out
.result
;
100 return werror_to_ntstatus(r
.out
.result
);
103 NTSTATUS
rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client
*cli
,
105 struct policy_handle
*bind_handle
/* [in] [ref] */,
106 int32_t level
/* [in] */,
107 union drsuapi_DsReplicaSyncRequest req
/* [in] [switch_is(level)] */,
110 struct drsuapi_DsReplicaSync r
;
114 r
.in
.bind_handle
= bind_handle
;
118 if (DEBUGLEVEL
>= 10) {
119 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaSync
, &r
);
122 status
= cli
->dispatch(cli
,
125 NDR_DRSUAPI_DSREPLICASYNC
,
128 if (!NT_STATUS_IS_OK(status
)) {
132 if (DEBUGLEVEL
>= 10) {
133 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaSync
, &r
);
136 if (NT_STATUS_IS_ERR(status
)) {
140 /* Return variables */
144 *werror
= r
.out
.result
;
147 return werror_to_ntstatus(r
.out
.result
);
150 NTSTATUS
rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client
*cli
,
152 struct policy_handle
*bind_handle
/* [in] [ref] */,
153 int32_t level
/* [in] */,
154 union drsuapi_DsGetNCChangesRequest
*req
/* [in] [ref,switch_is(level)] */,
155 int32_t *level_out
/* [out] [ref] */,
156 union drsuapi_DsGetNCChangesCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
159 struct drsuapi_DsGetNCChanges r
;
163 r
.in
.bind_handle
= bind_handle
;
167 if (DEBUGLEVEL
>= 10) {
168 NDR_PRINT_IN_DEBUG(drsuapi_DsGetNCChanges
, &r
);
171 status
= cli
->dispatch(cli
,
174 NDR_DRSUAPI_DSGETNCCHANGES
,
177 if (!NT_STATUS_IS_OK(status
)) {
181 if (DEBUGLEVEL
>= 10) {
182 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetNCChanges
, &r
);
185 if (NT_STATUS_IS_ERR(status
)) {
189 /* Return variables */
190 *level_out
= *r
.out
.level_out
;
195 *werror
= r
.out
.result
;
198 return werror_to_ntstatus(r
.out
.result
);
201 NTSTATUS
rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client
*cli
,
203 struct policy_handle
*bind_handle
/* [in] [ref] */,
204 int32_t level
/* [in] */,
205 union drsuapi_DsReplicaUpdateRefsRequest req
/* [in] [switch_is(level)] */,
208 struct drsuapi_DsReplicaUpdateRefs r
;
212 r
.in
.bind_handle
= bind_handle
;
216 if (DEBUGLEVEL
>= 10) {
217 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaUpdateRefs
, &r
);
220 status
= cli
->dispatch(cli
,
223 NDR_DRSUAPI_DSREPLICAUPDATEREFS
,
226 if (!NT_STATUS_IS_OK(status
)) {
230 if (DEBUGLEVEL
>= 10) {
231 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaUpdateRefs
, &r
);
234 if (NT_STATUS_IS_ERR(status
)) {
238 /* Return variables */
242 *werror
= r
.out
.result
;
245 return werror_to_ntstatus(r
.out
.result
);
248 NTSTATUS
rpccli_DRSUAPI_REPLICA_ADD(struct rpc_pipe_client
*cli
,
252 struct DRSUAPI_REPLICA_ADD r
;
257 if (DEBUGLEVEL
>= 10) {
258 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_ADD
, &r
);
261 status
= cli
->dispatch(cli
,
264 NDR_DRSUAPI_REPLICA_ADD
,
267 if (!NT_STATUS_IS_OK(status
)) {
271 if (DEBUGLEVEL
>= 10) {
272 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_ADD
, &r
);
275 if (NT_STATUS_IS_ERR(status
)) {
279 /* Return variables */
283 *werror
= r
.out
.result
;
286 return werror_to_ntstatus(r
.out
.result
);
289 NTSTATUS
rpccli_DRSUAPI_REPLICA_DEL(struct rpc_pipe_client
*cli
,
293 struct DRSUAPI_REPLICA_DEL r
;
298 if (DEBUGLEVEL
>= 10) {
299 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_DEL
, &r
);
302 status
= cli
->dispatch(cli
,
305 NDR_DRSUAPI_REPLICA_DEL
,
308 if (!NT_STATUS_IS_OK(status
)) {
312 if (DEBUGLEVEL
>= 10) {
313 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_DEL
, &r
);
316 if (NT_STATUS_IS_ERR(status
)) {
320 /* Return variables */
324 *werror
= r
.out
.result
;
327 return werror_to_ntstatus(r
.out
.result
);
330 NTSTATUS
rpccli_DRSUAPI_REPLICA_MODIFY(struct rpc_pipe_client
*cli
,
334 struct DRSUAPI_REPLICA_MODIFY r
;
339 if (DEBUGLEVEL
>= 10) {
340 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_MODIFY
, &r
);
343 status
= cli
->dispatch(cli
,
346 NDR_DRSUAPI_REPLICA_MODIFY
,
349 if (!NT_STATUS_IS_OK(status
)) {
353 if (DEBUGLEVEL
>= 10) {
354 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_MODIFY
, &r
);
357 if (NT_STATUS_IS_ERR(status
)) {
361 /* Return variables */
365 *werror
= r
.out
.result
;
368 return werror_to_ntstatus(r
.out
.result
);
371 NTSTATUS
rpccli_DRSUAPI_VERIFY_NAMES(struct rpc_pipe_client
*cli
,
375 struct DRSUAPI_VERIFY_NAMES r
;
380 if (DEBUGLEVEL
>= 10) {
381 NDR_PRINT_IN_DEBUG(DRSUAPI_VERIFY_NAMES
, &r
);
384 status
= cli
->dispatch(cli
,
387 NDR_DRSUAPI_VERIFY_NAMES
,
390 if (!NT_STATUS_IS_OK(status
)) {
394 if (DEBUGLEVEL
>= 10) {
395 NDR_PRINT_OUT_DEBUG(DRSUAPI_VERIFY_NAMES
, &r
);
398 if (NT_STATUS_IS_ERR(status
)) {
402 /* Return variables */
406 *werror
= r
.out
.result
;
409 return werror_to_ntstatus(r
.out
.result
);
412 NTSTATUS
rpccli_drsuapi_DsGetMemberships(struct rpc_pipe_client
*cli
,
414 struct policy_handle
*bind_handle
/* [in] [ref] */,
415 int32_t level
/* [in] */,
416 union drsuapi_DsGetMembershipsRequest
*req
/* [in] [ref,switch_is(level)] */,
417 int32_t *level_out
/* [out] [ref] */,
418 union drsuapi_DsGetMembershipsCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
421 struct drsuapi_DsGetMemberships r
;
425 r
.in
.bind_handle
= bind_handle
;
429 if (DEBUGLEVEL
>= 10) {
430 NDR_PRINT_IN_DEBUG(drsuapi_DsGetMemberships
, &r
);
433 status
= cli
->dispatch(cli
,
436 NDR_DRSUAPI_DSGETMEMBERSHIPS
,
439 if (!NT_STATUS_IS_OK(status
)) {
443 if (DEBUGLEVEL
>= 10) {
444 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetMemberships
, &r
);
447 if (NT_STATUS_IS_ERR(status
)) {
451 /* Return variables */
452 *level_out
= *r
.out
.level_out
;
457 *werror
= r
.out
.result
;
460 return werror_to_ntstatus(r
.out
.result
);
463 NTSTATUS
rpccli_DRSUAPI_INTER_DOMAIN_MOVE(struct rpc_pipe_client
*cli
,
467 struct DRSUAPI_INTER_DOMAIN_MOVE r
;
472 if (DEBUGLEVEL
>= 10) {
473 NDR_PRINT_IN_DEBUG(DRSUAPI_INTER_DOMAIN_MOVE
, &r
);
476 status
= cli
->dispatch(cli
,
479 NDR_DRSUAPI_INTER_DOMAIN_MOVE
,
482 if (!NT_STATUS_IS_OK(status
)) {
486 if (DEBUGLEVEL
>= 10) {
487 NDR_PRINT_OUT_DEBUG(DRSUAPI_INTER_DOMAIN_MOVE
, &r
);
490 if (NT_STATUS_IS_ERR(status
)) {
494 /* Return variables */
498 *werror
= r
.out
.result
;
501 return werror_to_ntstatus(r
.out
.result
);
504 NTSTATUS
rpccli_drsuapi_DsGetNT4ChangeLog(struct rpc_pipe_client
*cli
,
506 struct policy_handle
*bind_handle
/* [in] [ref] */,
507 uint32_t level
/* [in] */,
508 union drsuapi_DsGetNT4ChangeLogRequest
*req
/* [in] [ref,switch_is(level)] */,
509 uint32_t *level_out
/* [out] [ref] */,
510 union drsuapi_DsGetNT4ChangeLogInfo
*info
/* [out] [ref,switch_is(*level_out)] */,
513 struct drsuapi_DsGetNT4ChangeLog r
;
517 r
.in
.bind_handle
= bind_handle
;
521 if (DEBUGLEVEL
>= 10) {
522 NDR_PRINT_IN_DEBUG(drsuapi_DsGetNT4ChangeLog
, &r
);
525 status
= cli
->dispatch(cli
,
528 NDR_DRSUAPI_DSGETNT4CHANGELOG
,
531 if (!NT_STATUS_IS_OK(status
)) {
535 if (DEBUGLEVEL
>= 10) {
536 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetNT4ChangeLog
, &r
);
539 if (NT_STATUS_IS_ERR(status
)) {
543 /* Return variables */
544 *level_out
= *r
.out
.level_out
;
549 *werror
= r
.out
.result
;
552 return werror_to_ntstatus(r
.out
.result
);
555 NTSTATUS
rpccli_drsuapi_DsCrackNames(struct rpc_pipe_client
*cli
,
557 struct policy_handle
*bind_handle
/* [in] [ref] */,
558 int32_t level
/* [in] */,
559 union drsuapi_DsNameRequest
*req
/* [in] [ref,switch_is(level)] */,
560 int32_t *level_out
/* [out] [ref] */,
561 union drsuapi_DsNameCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
564 struct drsuapi_DsCrackNames r
;
568 r
.in
.bind_handle
= bind_handle
;
572 if (DEBUGLEVEL
>= 10) {
573 NDR_PRINT_IN_DEBUG(drsuapi_DsCrackNames
, &r
);
576 status
= cli
->dispatch(cli
,
579 NDR_DRSUAPI_DSCRACKNAMES
,
582 if (!NT_STATUS_IS_OK(status
)) {
586 if (DEBUGLEVEL
>= 10) {
587 NDR_PRINT_OUT_DEBUG(drsuapi_DsCrackNames
, &r
);
590 if (NT_STATUS_IS_ERR(status
)) {
594 /* Return variables */
595 *level_out
= *r
.out
.level_out
;
600 *werror
= r
.out
.result
;
603 return werror_to_ntstatus(r
.out
.result
);
606 NTSTATUS
rpccli_drsuapi_DsWriteAccountSpn(struct rpc_pipe_client
*cli
,
608 struct policy_handle
*bind_handle
/* [in] [ref] */,
609 int32_t level
/* [in] */,
610 union drsuapi_DsWriteAccountSpnRequest
*req
/* [in] [ref,switch_is(level)] */,
611 int32_t *level_out
/* [out] [ref] */,
612 union drsuapi_DsWriteAccountSpnResult
*res
/* [out] [ref,switch_is(*level_out)] */,
615 struct drsuapi_DsWriteAccountSpn r
;
619 r
.in
.bind_handle
= bind_handle
;
623 if (DEBUGLEVEL
>= 10) {
624 NDR_PRINT_IN_DEBUG(drsuapi_DsWriteAccountSpn
, &r
);
627 status
= cli
->dispatch(cli
,
630 NDR_DRSUAPI_DSWRITEACCOUNTSPN
,
633 if (!NT_STATUS_IS_OK(status
)) {
637 if (DEBUGLEVEL
>= 10) {
638 NDR_PRINT_OUT_DEBUG(drsuapi_DsWriteAccountSpn
, &r
);
641 if (NT_STATUS_IS_ERR(status
)) {
645 /* Return variables */
646 *level_out
= *r
.out
.level_out
;
651 *werror
= r
.out
.result
;
654 return werror_to_ntstatus(r
.out
.result
);
657 NTSTATUS
rpccli_drsuapi_DsRemoveDSServer(struct rpc_pipe_client
*cli
,
659 struct policy_handle
*bind_handle
/* [in] [ref] */,
660 int32_t level
/* [in] */,
661 union drsuapi_DsRemoveDSServerRequest
*req
/* [in] [ref,switch_is(level)] */,
662 int32_t *level_out
/* [out] [ref] */,
663 union drsuapi_DsRemoveDSServerResult
*res
/* [out] [ref,switch_is(*level_out)] */,
666 struct drsuapi_DsRemoveDSServer r
;
670 r
.in
.bind_handle
= bind_handle
;
674 if (DEBUGLEVEL
>= 10) {
675 NDR_PRINT_IN_DEBUG(drsuapi_DsRemoveDSServer
, &r
);
678 status
= cli
->dispatch(cli
,
681 NDR_DRSUAPI_DSREMOVEDSSERVER
,
684 if (!NT_STATUS_IS_OK(status
)) {
688 if (DEBUGLEVEL
>= 10) {
689 NDR_PRINT_OUT_DEBUG(drsuapi_DsRemoveDSServer
, &r
);
692 if (NT_STATUS_IS_ERR(status
)) {
696 /* Return variables */
697 *level_out
= *r
.out
.level_out
;
702 *werror
= r
.out
.result
;
705 return werror_to_ntstatus(r
.out
.result
);
708 NTSTATUS
rpccli_DRSUAPI_REMOVE_DS_DOMAIN(struct rpc_pipe_client
*cli
,
712 struct DRSUAPI_REMOVE_DS_DOMAIN r
;
717 if (DEBUGLEVEL
>= 10) {
718 NDR_PRINT_IN_DEBUG(DRSUAPI_REMOVE_DS_DOMAIN
, &r
);
721 status
= cli
->dispatch(cli
,
724 NDR_DRSUAPI_REMOVE_DS_DOMAIN
,
727 if (!NT_STATUS_IS_OK(status
)) {
731 if (DEBUGLEVEL
>= 10) {
732 NDR_PRINT_OUT_DEBUG(DRSUAPI_REMOVE_DS_DOMAIN
, &r
);
735 if (NT_STATUS_IS_ERR(status
)) {
739 /* Return variables */
743 *werror
= r
.out
.result
;
746 return werror_to_ntstatus(r
.out
.result
);
749 NTSTATUS
rpccli_drsuapi_DsGetDomainControllerInfo(struct rpc_pipe_client
*cli
,
751 struct policy_handle
*bind_handle
/* [in] [ref] */,
752 int32_t level
/* [in] */,
753 union drsuapi_DsGetDCInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
754 int32_t *level_out
/* [out] [ref] */,
755 union drsuapi_DsGetDCInfoCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
758 struct drsuapi_DsGetDomainControllerInfo r
;
762 r
.in
.bind_handle
= bind_handle
;
766 if (DEBUGLEVEL
>= 10) {
767 NDR_PRINT_IN_DEBUG(drsuapi_DsGetDomainControllerInfo
, &r
);
770 status
= cli
->dispatch(cli
,
773 NDR_DRSUAPI_DSGETDOMAINCONTROLLERINFO
,
776 if (!NT_STATUS_IS_OK(status
)) {
780 if (DEBUGLEVEL
>= 10) {
781 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetDomainControllerInfo
, &r
);
784 if (NT_STATUS_IS_ERR(status
)) {
788 /* Return variables */
789 *level_out
= *r
.out
.level_out
;
794 *werror
= r
.out
.result
;
797 return werror_to_ntstatus(r
.out
.result
);
800 NTSTATUS
rpccli_drsuapi_DsAddEntry(struct rpc_pipe_client
*cli
,
802 struct policy_handle
*bind_handle
/* [in] [ref] */,
803 int32_t level
/* [in] */,
804 union drsuapi_DsAddEntryRequest
*req
/* [in] [ref,switch_is(level)] */,
805 int32_t *level_out
/* [out] [ref] */,
806 union drsuapi_DsAddEntryCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
809 struct drsuapi_DsAddEntry r
;
813 r
.in
.bind_handle
= bind_handle
;
817 if (DEBUGLEVEL
>= 10) {
818 NDR_PRINT_IN_DEBUG(drsuapi_DsAddEntry
, &r
);
821 status
= cli
->dispatch(cli
,
824 NDR_DRSUAPI_DSADDENTRY
,
827 if (!NT_STATUS_IS_OK(status
)) {
831 if (DEBUGLEVEL
>= 10) {
832 NDR_PRINT_OUT_DEBUG(drsuapi_DsAddEntry
, &r
);
835 if (NT_STATUS_IS_ERR(status
)) {
839 /* Return variables */
840 *level_out
= *r
.out
.level_out
;
845 *werror
= r
.out
.result
;
848 return werror_to_ntstatus(r
.out
.result
);
851 NTSTATUS
rpccli_DRSUAPI_EXECUTE_KCC(struct rpc_pipe_client
*cli
,
855 struct DRSUAPI_EXECUTE_KCC r
;
860 if (DEBUGLEVEL
>= 10) {
861 NDR_PRINT_IN_DEBUG(DRSUAPI_EXECUTE_KCC
, &r
);
864 status
= cli
->dispatch(cli
,
867 NDR_DRSUAPI_EXECUTE_KCC
,
870 if (!NT_STATUS_IS_OK(status
)) {
874 if (DEBUGLEVEL
>= 10) {
875 NDR_PRINT_OUT_DEBUG(DRSUAPI_EXECUTE_KCC
, &r
);
878 if (NT_STATUS_IS_ERR(status
)) {
882 /* Return variables */
886 *werror
= r
.out
.result
;
889 return werror_to_ntstatus(r
.out
.result
);
892 NTSTATUS
rpccli_drsuapi_DsReplicaGetInfo(struct rpc_pipe_client
*cli
,
894 struct policy_handle
*bind_handle
/* [in] [ref] */,
895 enum drsuapi_DsReplicaGetInfoLevel level
/* [in] */,
896 union drsuapi_DsReplicaGetInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
897 enum drsuapi_DsReplicaInfoType
*info_type
/* [out] [ref] */,
898 union drsuapi_DsReplicaInfo
*info
/* [out] [ref,switch_is(*info_type)] */,
901 struct drsuapi_DsReplicaGetInfo r
;
905 r
.in
.bind_handle
= bind_handle
;
909 if (DEBUGLEVEL
>= 10) {
910 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaGetInfo
, &r
);
913 status
= cli
->dispatch(cli
,
916 NDR_DRSUAPI_DSREPLICAGETINFO
,
919 if (!NT_STATUS_IS_OK(status
)) {
923 if (DEBUGLEVEL
>= 10) {
924 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaGetInfo
, &r
);
927 if (NT_STATUS_IS_ERR(status
)) {
931 /* Return variables */
932 *info_type
= *r
.out
.info_type
;
937 *werror
= r
.out
.result
;
940 return werror_to_ntstatus(r
.out
.result
);
943 NTSTATUS
rpccli_DRSUAPI_ADD_SID_HISTORY(struct rpc_pipe_client
*cli
,
947 struct DRSUAPI_ADD_SID_HISTORY r
;
952 if (DEBUGLEVEL
>= 10) {
953 NDR_PRINT_IN_DEBUG(DRSUAPI_ADD_SID_HISTORY
, &r
);
956 status
= cli
->dispatch(cli
,
959 NDR_DRSUAPI_ADD_SID_HISTORY
,
962 if (!NT_STATUS_IS_OK(status
)) {
966 if (DEBUGLEVEL
>= 10) {
967 NDR_PRINT_OUT_DEBUG(DRSUAPI_ADD_SID_HISTORY
, &r
);
970 if (NT_STATUS_IS_ERR(status
)) {
974 /* Return variables */
978 *werror
= r
.out
.result
;
981 return werror_to_ntstatus(r
.out
.result
);
984 NTSTATUS
rpccli_drsuapi_DsGetMemberships2(struct rpc_pipe_client
*cli
,
986 struct policy_handle
*bind_handle
/* [in] [ref] */,
987 int32_t level
/* [in] */,
988 union drsuapi_DsGetMemberships2Request
*req
/* [in] [ref,switch_is(level)] */,
989 int32_t *level_out
/* [out] [ref] */,
990 union drsuapi_DsGetMemberships2Ctr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
993 struct drsuapi_DsGetMemberships2 r
;
997 r
.in
.bind_handle
= bind_handle
;
1001 if (DEBUGLEVEL
>= 10) {
1002 NDR_PRINT_IN_DEBUG(drsuapi_DsGetMemberships2
, &r
);
1005 status
= cli
->dispatch(cli
,
1008 NDR_DRSUAPI_DSGETMEMBERSHIPS2
,
1011 if (!NT_STATUS_IS_OK(status
)) {
1015 if (DEBUGLEVEL
>= 10) {
1016 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetMemberships2
, &r
);
1019 if (NT_STATUS_IS_ERR(status
)) {
1023 /* Return variables */
1024 *level_out
= *r
.out
.level_out
;
1029 *werror
= r
.out
.result
;
1032 return werror_to_ntstatus(r
.out
.result
);
1035 NTSTATUS
rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS(struct rpc_pipe_client
*cli
,
1036 TALLOC_CTX
*mem_ctx
,
1039 struct DRSUAPI_REPLICA_VERIFY_OBJECTS r
;
1044 if (DEBUGLEVEL
>= 10) {
1045 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_VERIFY_OBJECTS
, &r
);
1048 status
= cli
->dispatch(cli
,
1051 NDR_DRSUAPI_REPLICA_VERIFY_OBJECTS
,
1054 if (!NT_STATUS_IS_OK(status
)) {
1058 if (DEBUGLEVEL
>= 10) {
1059 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_VERIFY_OBJECTS
, &r
);
1062 if (NT_STATUS_IS_ERR(status
)) {
1066 /* Return variables */
1070 *werror
= r
.out
.result
;
1073 return werror_to_ntstatus(r
.out
.result
);
1076 NTSTATUS
rpccli_DRSUAPI_GET_OBJECT_EXISTENCE(struct rpc_pipe_client
*cli
,
1077 TALLOC_CTX
*mem_ctx
,
1080 struct DRSUAPI_GET_OBJECT_EXISTENCE r
;
1085 if (DEBUGLEVEL
>= 10) {
1086 NDR_PRINT_IN_DEBUG(DRSUAPI_GET_OBJECT_EXISTENCE
, &r
);
1089 status
= cli
->dispatch(cli
,
1092 NDR_DRSUAPI_GET_OBJECT_EXISTENCE
,
1095 if (!NT_STATUS_IS_OK(status
)) {
1099 if (DEBUGLEVEL
>= 10) {
1100 NDR_PRINT_OUT_DEBUG(DRSUAPI_GET_OBJECT_EXISTENCE
, &r
);
1103 if (NT_STATUS_IS_ERR(status
)) {
1107 /* Return variables */
1111 *werror
= r
.out
.result
;
1114 return werror_to_ntstatus(r
.out
.result
);
1117 NTSTATUS
rpccli_drsuapi_QuerySitesByCost(struct rpc_pipe_client
*cli
,
1118 TALLOC_CTX
*mem_ctx
,
1119 struct policy_handle
*bind_handle
/* [in] [ref] */,
1120 int32_t level
/* [in] */,
1121 union drsuapi_QuerySitesByCostRequest
*req
/* [in] [ref,switch_is(level)] */,
1122 int32_t *level_out
/* [out] [ref] */,
1123 union drsuapi_QuerySitesByCostCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
1126 struct drsuapi_QuerySitesByCost r
;
1130 r
.in
.bind_handle
= bind_handle
;
1134 if (DEBUGLEVEL
>= 10) {
1135 NDR_PRINT_IN_DEBUG(drsuapi_QuerySitesByCost
, &r
);
1138 status
= cli
->dispatch(cli
,
1141 NDR_DRSUAPI_QUERYSITESBYCOST
,
1144 if (!NT_STATUS_IS_OK(status
)) {
1148 if (DEBUGLEVEL
>= 10) {
1149 NDR_PRINT_OUT_DEBUG(drsuapi_QuerySitesByCost
, &r
);
1152 if (NT_STATUS_IS_ERR(status
)) {
1156 /* Return variables */
1157 *level_out
= *r
.out
.level_out
;
1162 *werror
= r
.out
.result
;
1165 return werror_to_ntstatus(r
.out
.result
);