1 #include "../librpc/gen_ndr/ndr_drsuapi.h"
2 #ifndef __CLI_DRSUAPI__
3 #define __CLI_DRSUAPI__
4 NTSTATUS
rpccli_drsuapi_DsBind(struct rpc_pipe_client
*cli
,
6 struct GUID
*bind_guid
/* [in] [unique] */,
7 struct drsuapi_DsBindInfoCtr
*bind_info
/* [in,out] [unique] */,
8 struct policy_handle
*bind_handle
/* [out] [ref] */,
10 NTSTATUS
rpccli_drsuapi_DsUnbind(struct rpc_pipe_client
*cli
,
12 struct policy_handle
*bind_handle
/* [in,out] [ref] */,
14 NTSTATUS
rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client
*cli
,
16 struct policy_handle
*bind_handle
/* [in] [ref] */,
17 int32_t level
/* [in] */,
18 union drsuapi_DsReplicaSyncRequest req
/* [in] [switch_is(level)] */,
20 NTSTATUS
rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client
*cli
,
22 struct policy_handle
*bind_handle
/* [in] [ref] */,
23 int32_t level
/* [in] */,
24 union drsuapi_DsGetNCChangesRequest
*req
/* [in] [ref,switch_is(level)] */,
25 int32_t *level_out
/* [out] [ref] */,
26 union drsuapi_DsGetNCChangesCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
28 NTSTATUS
rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client
*cli
,
30 struct policy_handle
*bind_handle
/* [in] [ref] */,
31 int32_t level
/* [in] */,
32 union drsuapi_DsReplicaUpdateRefsRequest req
/* [in] [switch_is(level)] */,
34 NTSTATUS
rpccli_DRSUAPI_REPLICA_ADD(struct rpc_pipe_client
*cli
,
37 NTSTATUS
rpccli_DRSUAPI_REPLICA_DEL(struct rpc_pipe_client
*cli
,
40 NTSTATUS
rpccli_DRSUAPI_REPLICA_MODIFY(struct rpc_pipe_client
*cli
,
43 NTSTATUS
rpccli_DRSUAPI_VERIFY_NAMES(struct rpc_pipe_client
*cli
,
46 NTSTATUS
rpccli_drsuapi_DsGetMemberships(struct rpc_pipe_client
*cli
,
48 struct policy_handle
*bind_handle
/* [in] [ref] */,
49 int32_t level
/* [in] */,
50 union drsuapi_DsGetMembershipsRequest
*req
/* [in] [ref,switch_is(level)] */,
51 int32_t *level_out
/* [out] [ref] */,
52 union drsuapi_DsGetMembershipsCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
54 NTSTATUS
rpccli_DRSUAPI_INTER_DOMAIN_MOVE(struct rpc_pipe_client
*cli
,
57 NTSTATUS
rpccli_drsuapi_DsGetNT4ChangeLog(struct rpc_pipe_client
*cli
,
59 struct policy_handle
*bind_handle
/* [in] [ref] */,
60 uint32_t level
/* [in] */,
61 union drsuapi_DsGetNT4ChangeLogRequest
*req
/* [in] [ref,switch_is(level)] */,
62 uint32_t *level_out
/* [out] [ref] */,
63 union drsuapi_DsGetNT4ChangeLogInfo
*info
/* [out] [ref,switch_is(*level_out)] */,
65 NTSTATUS
rpccli_drsuapi_DsCrackNames(struct rpc_pipe_client
*cli
,
67 struct policy_handle
*bind_handle
/* [in] [ref] */,
68 int32_t level
/* [in] */,
69 union drsuapi_DsNameRequest
*req
/* [in] [ref,switch_is(level)] */,
70 int32_t *level_out
/* [out] [ref] */,
71 union drsuapi_DsNameCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
73 NTSTATUS
rpccli_drsuapi_DsWriteAccountSpn(struct rpc_pipe_client
*cli
,
75 struct policy_handle
*bind_handle
/* [in] [ref] */,
76 int32_t level
/* [in] */,
77 union drsuapi_DsWriteAccountSpnRequest
*req
/* [in] [ref,switch_is(level)] */,
78 int32_t *level_out
/* [out] [ref] */,
79 union drsuapi_DsWriteAccountSpnResult
*res
/* [out] [ref,switch_is(*level_out)] */,
81 NTSTATUS
rpccli_drsuapi_DsRemoveDSServer(struct rpc_pipe_client
*cli
,
83 struct policy_handle
*bind_handle
/* [in] [ref] */,
84 int32_t level
/* [in] */,
85 union drsuapi_DsRemoveDSServerRequest
*req
/* [in] [ref,switch_is(level)] */,
86 int32_t *level_out
/* [out] [ref] */,
87 union drsuapi_DsRemoveDSServerResult
*res
/* [out] [ref,switch_is(*level_out)] */,
89 NTSTATUS
rpccli_DRSUAPI_REMOVE_DS_DOMAIN(struct rpc_pipe_client
*cli
,
92 NTSTATUS
rpccli_drsuapi_DsGetDomainControllerInfo(struct rpc_pipe_client
*cli
,
94 struct policy_handle
*bind_handle
/* [in] [ref] */,
95 int32_t level
/* [in] */,
96 union drsuapi_DsGetDCInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
97 int32_t *level_out
/* [out] [ref] */,
98 union drsuapi_DsGetDCInfoCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
100 NTSTATUS
rpccli_drsuapi_DsAddEntry(struct rpc_pipe_client
*cli
,
102 struct policy_handle
*bind_handle
/* [in] [ref] */,
103 int32_t level
/* [in] */,
104 union drsuapi_DsAddEntryRequest
*req
/* [in] [ref,switch_is(level)] */,
105 int32_t *level_out
/* [out] [ref] */,
106 union drsuapi_DsAddEntryCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
108 NTSTATUS
rpccli_DRSUAPI_EXECUTE_KCC(struct rpc_pipe_client
*cli
,
111 NTSTATUS
rpccli_drsuapi_DsReplicaGetInfo(struct rpc_pipe_client
*cli
,
113 struct policy_handle
*bind_handle
/* [in] [ref] */,
114 enum drsuapi_DsReplicaGetInfoLevel level
/* [in] */,
115 union drsuapi_DsReplicaGetInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
116 enum drsuapi_DsReplicaInfoType
*info_type
/* [out] [ref] */,
117 union drsuapi_DsReplicaInfo
*info
/* [out] [ref,switch_is(*info_type)] */,
119 NTSTATUS
rpccli_DRSUAPI_ADD_SID_HISTORY(struct rpc_pipe_client
*cli
,
122 NTSTATUS
rpccli_drsuapi_DsGetMemberships2(struct rpc_pipe_client
*cli
,
124 struct policy_handle
*bind_handle
/* [in] [ref] */,
125 int32_t level
/* [in] */,
126 union drsuapi_DsGetMemberships2Request
*req
/* [in] [ref,switch_is(level)] */,
127 int32_t *level_out
/* [out] [ref] */,
128 union drsuapi_DsGetMemberships2Ctr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
130 NTSTATUS
rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS(struct rpc_pipe_client
*cli
,
133 NTSTATUS
rpccli_DRSUAPI_GET_OBJECT_EXISTENCE(struct rpc_pipe_client
*cli
,
136 NTSTATUS
rpccli_drsuapi_QuerySitesByCost(struct rpc_pipe_client
*cli
,
138 struct policy_handle
*bind_handle
/* [in] [ref] */,
139 int32_t level
/* [in] */,
140 union drsuapi_QuerySitesByCostRequest
*req
/* [in] [ref,switch_is(level)] */,
141 int32_t *level_out
/* [out] [ref] */,
142 union drsuapi_QuerySitesByCostCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
144 #endif /* __CLI_DRSUAPI__ */