2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_dssetup.h"
9 NTSTATUS
rpccli_dssetup_DsRoleGetPrimaryDomainInformation(struct rpc_pipe_client
*cli
,
11 enum dssetup_DsRoleInfoLevel level
/* [in] */,
12 union dssetup_DsRoleInfo
*info
/* [out] [unique,switch_is(level)] */,
15 struct dssetup_DsRoleGetPrimaryDomainInformation r
;
21 if (DEBUGLEVEL
>= 10) {
22 NDR_PRINT_IN_DEBUG(dssetup_DsRoleGetPrimaryDomainInformation
, &r
);
25 status
= cli_do_rpc_ndr(cli
,
28 NDR_DSSETUP_DSROLEGETPRIMARYDOMAININFORMATION
,
31 if (!NT_STATUS_IS_OK(status
)) {
35 if (DEBUGLEVEL
>= 10) {
36 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleGetPrimaryDomainInformation
, &r
);
39 if (NT_STATUS_IS_ERR(status
)) {
43 /* Return variables */
44 if (info
&& r
.out
.info
) {
50 *werror
= r
.out
.result
;
53 return werror_to_ntstatus(r
.out
.result
);
56 NTSTATUS
rpccli_dssetup_DsRoleDnsNameToFlatName(struct rpc_pipe_client
*cli
,
60 struct dssetup_DsRoleDnsNameToFlatName r
;
65 if (DEBUGLEVEL
>= 10) {
66 NDR_PRINT_IN_DEBUG(dssetup_DsRoleDnsNameToFlatName
, &r
);
69 status
= cli_do_rpc_ndr(cli
,
72 NDR_DSSETUP_DSROLEDNSNAMETOFLATNAME
,
75 if (!NT_STATUS_IS_OK(status
)) {
79 if (DEBUGLEVEL
>= 10) {
80 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleDnsNameToFlatName
, &r
);
83 if (NT_STATUS_IS_ERR(status
)) {
87 /* Return variables */
91 *werror
= r
.out
.result
;
94 return werror_to_ntstatus(r
.out
.result
);
97 NTSTATUS
rpccli_dssetup_DsRoleDcAsDc(struct rpc_pipe_client
*cli
,
101 struct dssetup_DsRoleDcAsDc r
;
106 if (DEBUGLEVEL
>= 10) {
107 NDR_PRINT_IN_DEBUG(dssetup_DsRoleDcAsDc
, &r
);
110 status
= cli_do_rpc_ndr(cli
,
113 NDR_DSSETUP_DSROLEDCASDC
,
116 if (!NT_STATUS_IS_OK(status
)) {
120 if (DEBUGLEVEL
>= 10) {
121 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleDcAsDc
, &r
);
124 if (NT_STATUS_IS_ERR(status
)) {
128 /* Return variables */
132 *werror
= r
.out
.result
;
135 return werror_to_ntstatus(r
.out
.result
);
138 NTSTATUS
rpccli_dssetup_DsRoleDcAsReplica(struct rpc_pipe_client
*cli
,
142 struct dssetup_DsRoleDcAsReplica r
;
147 if (DEBUGLEVEL
>= 10) {
148 NDR_PRINT_IN_DEBUG(dssetup_DsRoleDcAsReplica
, &r
);
151 status
= cli_do_rpc_ndr(cli
,
154 NDR_DSSETUP_DSROLEDCASREPLICA
,
157 if (!NT_STATUS_IS_OK(status
)) {
161 if (DEBUGLEVEL
>= 10) {
162 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleDcAsReplica
, &r
);
165 if (NT_STATUS_IS_ERR(status
)) {
169 /* Return variables */
173 *werror
= r
.out
.result
;
176 return werror_to_ntstatus(r
.out
.result
);
179 NTSTATUS
rpccli_dssetup_DsRoleDemoteDc(struct rpc_pipe_client
*cli
,
183 struct dssetup_DsRoleDemoteDc r
;
188 if (DEBUGLEVEL
>= 10) {
189 NDR_PRINT_IN_DEBUG(dssetup_DsRoleDemoteDc
, &r
);
192 status
= cli_do_rpc_ndr(cli
,
195 NDR_DSSETUP_DSROLEDEMOTEDC
,
198 if (!NT_STATUS_IS_OK(status
)) {
202 if (DEBUGLEVEL
>= 10) {
203 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleDemoteDc
, &r
);
206 if (NT_STATUS_IS_ERR(status
)) {
210 /* Return variables */
214 *werror
= r
.out
.result
;
217 return werror_to_ntstatus(r
.out
.result
);
220 NTSTATUS
rpccli_dssetup_DsRoleGetDcOperationProgress(struct rpc_pipe_client
*cli
,
224 struct dssetup_DsRoleGetDcOperationProgress r
;
229 if (DEBUGLEVEL
>= 10) {
230 NDR_PRINT_IN_DEBUG(dssetup_DsRoleGetDcOperationProgress
, &r
);
233 status
= cli_do_rpc_ndr(cli
,
236 NDR_DSSETUP_DSROLEGETDCOPERATIONPROGRESS
,
239 if (!NT_STATUS_IS_OK(status
)) {
243 if (DEBUGLEVEL
>= 10) {
244 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleGetDcOperationProgress
, &r
);
247 if (NT_STATUS_IS_ERR(status
)) {
251 /* Return variables */
255 *werror
= r
.out
.result
;
258 return werror_to_ntstatus(r
.out
.result
);
261 NTSTATUS
rpccli_dssetup_DsRoleGetDcOperationResults(struct rpc_pipe_client
*cli
,
265 struct dssetup_DsRoleGetDcOperationResults r
;
270 if (DEBUGLEVEL
>= 10) {
271 NDR_PRINT_IN_DEBUG(dssetup_DsRoleGetDcOperationResults
, &r
);
274 status
= cli_do_rpc_ndr(cli
,
277 NDR_DSSETUP_DSROLEGETDCOPERATIONRESULTS
,
280 if (!NT_STATUS_IS_OK(status
)) {
284 if (DEBUGLEVEL
>= 10) {
285 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleGetDcOperationResults
, &r
);
288 if (NT_STATUS_IS_ERR(status
)) {
292 /* Return variables */
296 *werror
= r
.out
.result
;
299 return werror_to_ntstatus(r
.out
.result
);
302 NTSTATUS
rpccli_dssetup_DsRoleCancel(struct rpc_pipe_client
*cli
,
306 struct dssetup_DsRoleCancel r
;
311 if (DEBUGLEVEL
>= 10) {
312 NDR_PRINT_IN_DEBUG(dssetup_DsRoleCancel
, &r
);
315 status
= cli_do_rpc_ndr(cli
,
318 NDR_DSSETUP_DSROLECANCEL
,
321 if (!NT_STATUS_IS_OK(status
)) {
325 if (DEBUGLEVEL
>= 10) {
326 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleCancel
, &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_dssetup_DsRoleServerSaveStateForUpgrade(struct rpc_pipe_client
*cli
,
347 struct dssetup_DsRoleServerSaveStateForUpgrade r
;
352 if (DEBUGLEVEL
>= 10) {
353 NDR_PRINT_IN_DEBUG(dssetup_DsRoleServerSaveStateForUpgrade
, &r
);
356 status
= cli_do_rpc_ndr(cli
,
359 NDR_DSSETUP_DSROLESERVERSAVESTATEFORUPGRADE
,
362 if (!NT_STATUS_IS_OK(status
)) {
366 if (DEBUGLEVEL
>= 10) {
367 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleServerSaveStateForUpgrade
, &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_dssetup_DsRoleUpgradeDownlevelServer(struct rpc_pipe_client
*cli
,
388 struct dssetup_DsRoleUpgradeDownlevelServer r
;
393 if (DEBUGLEVEL
>= 10) {
394 NDR_PRINT_IN_DEBUG(dssetup_DsRoleUpgradeDownlevelServer
, &r
);
397 status
= cli_do_rpc_ndr(cli
,
400 NDR_DSSETUP_DSROLEUPGRADEDOWNLEVELSERVER
,
403 if (!NT_STATUS_IS_OK(status
)) {
407 if (DEBUGLEVEL
>= 10) {
408 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleUpgradeDownlevelServer
, &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_dssetup_DsRoleAbortDownlevelServerUpgrade(struct rpc_pipe_client
*cli
,
429 struct dssetup_DsRoleAbortDownlevelServerUpgrade r
;
434 if (DEBUGLEVEL
>= 10) {
435 NDR_PRINT_IN_DEBUG(dssetup_DsRoleAbortDownlevelServerUpgrade
, &r
);
438 status
= cli_do_rpc_ndr(cli
,
441 NDR_DSSETUP_DSROLEABORTDOWNLEVELSERVERUPGRADE
,
444 if (!NT_STATUS_IS_OK(status
)) {
448 if (DEBUGLEVEL
>= 10) {
449 NDR_PRINT_OUT_DEBUG(dssetup_DsRoleAbortDownlevelServerUpgrade
, &r
);
452 if (NT_STATUS_IS_ERR(status
)) {
456 /* Return variables */
460 *werror
= r
.out
.result
;
463 return werror_to_ntstatus(r
.out
.result
);