1 #include "../librpc/gen_ndr/ndr_drsuapi.h"
2 #ifndef __CLI_DRSUAPI__
3 #define __CLI_DRSUAPI__
4 struct tevent_req
*rpccli_drsuapi_DsBind_send(TALLOC_CTX
*mem_ctx
,
5 struct tevent_context
*ev
,
6 struct rpc_pipe_client
*cli
,
7 struct GUID
*_bind_guid
/* [in] [unique] */,
8 struct drsuapi_DsBindInfoCtr
*_bind_info
/* [in,out] [unique] */,
9 struct policy_handle
*_bind_handle
/* [out] [ref] */);
10 NTSTATUS
rpccli_drsuapi_DsBind_recv(struct tevent_req
*req
,
13 NTSTATUS
rpccli_drsuapi_DsBind(struct rpc_pipe_client
*cli
,
15 struct GUID
*bind_guid
/* [in] [unique] */,
16 struct drsuapi_DsBindInfoCtr
*bind_info
/* [in,out] [unique] */,
17 struct policy_handle
*bind_handle
/* [out] [ref] */,
19 struct tevent_req
*rpccli_drsuapi_DsUnbind_send(TALLOC_CTX
*mem_ctx
,
20 struct tevent_context
*ev
,
21 struct rpc_pipe_client
*cli
,
22 struct policy_handle
*_bind_handle
/* [in,out] [ref] */);
23 NTSTATUS
rpccli_drsuapi_DsUnbind_recv(struct tevent_req
*req
,
26 NTSTATUS
rpccli_drsuapi_DsUnbind(struct rpc_pipe_client
*cli
,
28 struct policy_handle
*bind_handle
/* [in,out] [ref] */,
30 struct tevent_req
*rpccli_drsuapi_DsReplicaSync_send(TALLOC_CTX
*mem_ctx
,
31 struct tevent_context
*ev
,
32 struct rpc_pipe_client
*cli
,
33 struct policy_handle
*_bind_handle
/* [in] [ref] */,
34 int32_t _level
/* [in] */,
35 union drsuapi_DsReplicaSyncRequest _req
/* [in] [switch_is(level)] */);
36 NTSTATUS
rpccli_drsuapi_DsReplicaSync_recv(struct tevent_req
*req
,
39 NTSTATUS
rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client
*cli
,
41 struct policy_handle
*bind_handle
/* [in] [ref] */,
42 int32_t level
/* [in] */,
43 union drsuapi_DsReplicaSyncRequest req
/* [in] [switch_is(level)] */,
45 struct tevent_req
*rpccli_drsuapi_DsGetNCChanges_send(TALLOC_CTX
*mem_ctx
,
46 struct tevent_context
*ev
,
47 struct rpc_pipe_client
*cli
,
48 struct policy_handle
*_bind_handle
/* [in] [ref] */,
49 int32_t _level
/* [in] */,
50 union drsuapi_DsGetNCChangesRequest
*_req
/* [in] [ref,switch_is(level)] */,
51 int32_t *_level_out
/* [out] [ref] */,
52 union drsuapi_DsGetNCChangesCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
53 NTSTATUS
rpccli_drsuapi_DsGetNCChanges_recv(struct tevent_req
*req
,
56 NTSTATUS
rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client
*cli
,
58 struct policy_handle
*bind_handle
/* [in] [ref] */,
59 int32_t level
/* [in] */,
60 union drsuapi_DsGetNCChangesRequest
*req
/* [in] [ref,switch_is(level)] */,
61 int32_t *level_out
/* [out] [ref] */,
62 union drsuapi_DsGetNCChangesCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
64 struct tevent_req
*rpccli_drsuapi_DsReplicaUpdateRefs_send(TALLOC_CTX
*mem_ctx
,
65 struct tevent_context
*ev
,
66 struct rpc_pipe_client
*cli
,
67 struct policy_handle
*_bind_handle
/* [in] [ref] */,
68 int32_t _level
/* [in] */,
69 union drsuapi_DsReplicaUpdateRefsRequest _req
/* [in] [switch_is(level)] */);
70 NTSTATUS
rpccli_drsuapi_DsReplicaUpdateRefs_recv(struct tevent_req
*req
,
73 NTSTATUS
rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client
*cli
,
75 struct policy_handle
*bind_handle
/* [in] [ref] */,
76 int32_t level
/* [in] */,
77 union drsuapi_DsReplicaUpdateRefsRequest req
/* [in] [switch_is(level)] */,
79 struct tevent_req
*rpccli_drsuapi_DsReplicaAdd_send(TALLOC_CTX
*mem_ctx
,
80 struct tevent_context
*ev
,
81 struct rpc_pipe_client
*cli
,
82 struct policy_handle
*_bind_handle
/* [in] [ref] */,
83 int32_t _level
/* [in] */,
84 union drsuapi_DsReplicaAddRequest _req
/* [in] [switch_is(level)] */);
85 NTSTATUS
rpccli_drsuapi_DsReplicaAdd_recv(struct tevent_req
*req
,
88 NTSTATUS
rpccli_drsuapi_DsReplicaAdd(struct rpc_pipe_client
*cli
,
90 struct policy_handle
*bind_handle
/* [in] [ref] */,
91 int32_t level
/* [in] */,
92 union drsuapi_DsReplicaAddRequest req
/* [in] [switch_is(level)] */,
94 struct tevent_req
*rpccli_drsuapi_DsReplicaDel_send(TALLOC_CTX
*mem_ctx
,
95 struct tevent_context
*ev
,
96 struct rpc_pipe_client
*cli
,
97 struct policy_handle
*_bind_handle
/* [in] [ref] */,
98 int32_t _level
/* [in] */,
99 union drsuapi_DsReplicaDelRequest _req
/* [in] [switch_is(level)] */);
100 NTSTATUS
rpccli_drsuapi_DsReplicaDel_recv(struct tevent_req
*req
,
103 NTSTATUS
rpccli_drsuapi_DsReplicaDel(struct rpc_pipe_client
*cli
,
105 struct policy_handle
*bind_handle
/* [in] [ref] */,
106 int32_t level
/* [in] */,
107 union drsuapi_DsReplicaDelRequest req
/* [in] [switch_is(level)] */,
109 struct tevent_req
*rpccli_drsuapi_DsReplicaMod_send(TALLOC_CTX
*mem_ctx
,
110 struct tevent_context
*ev
,
111 struct rpc_pipe_client
*cli
,
112 struct policy_handle
*_bind_handle
/* [in] [ref] */,
113 int32_t _level
/* [in] */,
114 union drsuapi_DsReplicaModRequest _req
/* [in] [switch_is(level)] */);
115 NTSTATUS
rpccli_drsuapi_DsReplicaMod_recv(struct tevent_req
*req
,
118 NTSTATUS
rpccli_drsuapi_DsReplicaMod(struct rpc_pipe_client
*cli
,
120 struct policy_handle
*bind_handle
/* [in] [ref] */,
121 int32_t level
/* [in] */,
122 union drsuapi_DsReplicaModRequest req
/* [in] [switch_is(level)] */,
124 struct tevent_req
*rpccli_DRSUAPI_VERIFY_NAMES_send(TALLOC_CTX
*mem_ctx
,
125 struct tevent_context
*ev
,
126 struct rpc_pipe_client
*cli
);
127 NTSTATUS
rpccli_DRSUAPI_VERIFY_NAMES_recv(struct tevent_req
*req
,
130 NTSTATUS
rpccli_DRSUAPI_VERIFY_NAMES(struct rpc_pipe_client
*cli
,
133 struct tevent_req
*rpccli_drsuapi_DsGetMemberships_send(TALLOC_CTX
*mem_ctx
,
134 struct tevent_context
*ev
,
135 struct rpc_pipe_client
*cli
,
136 struct policy_handle
*_bind_handle
/* [in] [ref] */,
137 int32_t _level
/* [in] */,
138 union drsuapi_DsGetMembershipsRequest
*_req
/* [in] [ref,switch_is(level)] */,
139 int32_t *_level_out
/* [out] [ref] */,
140 union drsuapi_DsGetMembershipsCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
141 NTSTATUS
rpccli_drsuapi_DsGetMemberships_recv(struct tevent_req
*req
,
144 NTSTATUS
rpccli_drsuapi_DsGetMemberships(struct rpc_pipe_client
*cli
,
146 struct policy_handle
*bind_handle
/* [in] [ref] */,
147 int32_t level
/* [in] */,
148 union drsuapi_DsGetMembershipsRequest
*req
/* [in] [ref,switch_is(level)] */,
149 int32_t *level_out
/* [out] [ref] */,
150 union drsuapi_DsGetMembershipsCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
152 struct tevent_req
*rpccli_DRSUAPI_INTER_DOMAIN_MOVE_send(TALLOC_CTX
*mem_ctx
,
153 struct tevent_context
*ev
,
154 struct rpc_pipe_client
*cli
);
155 NTSTATUS
rpccli_DRSUAPI_INTER_DOMAIN_MOVE_recv(struct tevent_req
*req
,
158 NTSTATUS
rpccli_DRSUAPI_INTER_DOMAIN_MOVE(struct rpc_pipe_client
*cli
,
161 struct tevent_req
*rpccli_drsuapi_DsGetNT4ChangeLog_send(TALLOC_CTX
*mem_ctx
,
162 struct tevent_context
*ev
,
163 struct rpc_pipe_client
*cli
,
164 struct policy_handle
*_bind_handle
/* [in] [ref] */,
165 uint32_t _level
/* [in] */,
166 union drsuapi_DsGetNT4ChangeLogRequest
*_req
/* [in] [ref,switch_is(level)] */,
167 uint32_t *_level_out
/* [out] [ref] */,
168 union drsuapi_DsGetNT4ChangeLogInfo
*_info
/* [out] [ref,switch_is(*level_out)] */);
169 NTSTATUS
rpccli_drsuapi_DsGetNT4ChangeLog_recv(struct tevent_req
*req
,
172 NTSTATUS
rpccli_drsuapi_DsGetNT4ChangeLog(struct rpc_pipe_client
*cli
,
174 struct policy_handle
*bind_handle
/* [in] [ref] */,
175 uint32_t level
/* [in] */,
176 union drsuapi_DsGetNT4ChangeLogRequest
*req
/* [in] [ref,switch_is(level)] */,
177 uint32_t *level_out
/* [out] [ref] */,
178 union drsuapi_DsGetNT4ChangeLogInfo
*info
/* [out] [ref,switch_is(*level_out)] */,
180 struct tevent_req
*rpccli_drsuapi_DsCrackNames_send(TALLOC_CTX
*mem_ctx
,
181 struct tevent_context
*ev
,
182 struct rpc_pipe_client
*cli
,
183 struct policy_handle
*_bind_handle
/* [in] [ref] */,
184 int32_t _level
/* [in] */,
185 union drsuapi_DsNameRequest
*_req
/* [in] [ref,switch_is(level)] */,
186 int32_t *_level_out
/* [out] [ref] */,
187 union drsuapi_DsNameCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
188 NTSTATUS
rpccli_drsuapi_DsCrackNames_recv(struct tevent_req
*req
,
191 NTSTATUS
rpccli_drsuapi_DsCrackNames(struct rpc_pipe_client
*cli
,
193 struct policy_handle
*bind_handle
/* [in] [ref] */,
194 int32_t level
/* [in] */,
195 union drsuapi_DsNameRequest
*req
/* [in] [ref,switch_is(level)] */,
196 int32_t *level_out
/* [out] [ref] */,
197 union drsuapi_DsNameCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
199 struct tevent_req
*rpccli_drsuapi_DsWriteAccountSpn_send(TALLOC_CTX
*mem_ctx
,
200 struct tevent_context
*ev
,
201 struct rpc_pipe_client
*cli
,
202 struct policy_handle
*_bind_handle
/* [in] [ref] */,
203 int32_t _level
/* [in] */,
204 union drsuapi_DsWriteAccountSpnRequest
*_req
/* [in] [ref,switch_is(level)] */,
205 int32_t *_level_out
/* [out] [ref] */,
206 union drsuapi_DsWriteAccountSpnResult
*_res
/* [out] [ref,switch_is(*level_out)] */);
207 NTSTATUS
rpccli_drsuapi_DsWriteAccountSpn_recv(struct tevent_req
*req
,
210 NTSTATUS
rpccli_drsuapi_DsWriteAccountSpn(struct rpc_pipe_client
*cli
,
212 struct policy_handle
*bind_handle
/* [in] [ref] */,
213 int32_t level
/* [in] */,
214 union drsuapi_DsWriteAccountSpnRequest
*req
/* [in] [ref,switch_is(level)] */,
215 int32_t *level_out
/* [out] [ref] */,
216 union drsuapi_DsWriteAccountSpnResult
*res
/* [out] [ref,switch_is(*level_out)] */,
218 struct tevent_req
*rpccli_drsuapi_DsRemoveDSServer_send(TALLOC_CTX
*mem_ctx
,
219 struct tevent_context
*ev
,
220 struct rpc_pipe_client
*cli
,
221 struct policy_handle
*_bind_handle
/* [in] [ref] */,
222 int32_t _level
/* [in] */,
223 union drsuapi_DsRemoveDSServerRequest
*_req
/* [in] [ref,switch_is(level)] */,
224 int32_t *_level_out
/* [out] [ref] */,
225 union drsuapi_DsRemoveDSServerResult
*_res
/* [out] [ref,switch_is(*level_out)] */);
226 NTSTATUS
rpccli_drsuapi_DsRemoveDSServer_recv(struct tevent_req
*req
,
229 NTSTATUS
rpccli_drsuapi_DsRemoveDSServer(struct rpc_pipe_client
*cli
,
231 struct policy_handle
*bind_handle
/* [in] [ref] */,
232 int32_t level
/* [in] */,
233 union drsuapi_DsRemoveDSServerRequest
*req
/* [in] [ref,switch_is(level)] */,
234 int32_t *level_out
/* [out] [ref] */,
235 union drsuapi_DsRemoveDSServerResult
*res
/* [out] [ref,switch_is(*level_out)] */,
237 struct tevent_req
*rpccli_DRSUAPI_REMOVE_DS_DOMAIN_send(TALLOC_CTX
*mem_ctx
,
238 struct tevent_context
*ev
,
239 struct rpc_pipe_client
*cli
);
240 NTSTATUS
rpccli_DRSUAPI_REMOVE_DS_DOMAIN_recv(struct tevent_req
*req
,
243 NTSTATUS
rpccli_DRSUAPI_REMOVE_DS_DOMAIN(struct rpc_pipe_client
*cli
,
246 struct tevent_req
*rpccli_drsuapi_DsGetDomainControllerInfo_send(TALLOC_CTX
*mem_ctx
,
247 struct tevent_context
*ev
,
248 struct rpc_pipe_client
*cli
,
249 struct policy_handle
*_bind_handle
/* [in] [ref] */,
250 int32_t _level
/* [in] */,
251 union drsuapi_DsGetDCInfoRequest
*_req
/* [in] [ref,switch_is(level)] */,
252 int32_t *_level_out
/* [out] [ref] */,
253 union drsuapi_DsGetDCInfoCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
254 NTSTATUS
rpccli_drsuapi_DsGetDomainControllerInfo_recv(struct tevent_req
*req
,
257 NTSTATUS
rpccli_drsuapi_DsGetDomainControllerInfo(struct rpc_pipe_client
*cli
,
259 struct policy_handle
*bind_handle
/* [in] [ref] */,
260 int32_t level
/* [in] */,
261 union drsuapi_DsGetDCInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
262 int32_t *level_out
/* [out] [ref] */,
263 union drsuapi_DsGetDCInfoCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
265 struct tevent_req
*rpccli_drsuapi_DsAddEntry_send(TALLOC_CTX
*mem_ctx
,
266 struct tevent_context
*ev
,
267 struct rpc_pipe_client
*cli
,
268 struct policy_handle
*_bind_handle
/* [in] [ref] */,
269 int32_t _level
/* [in] */,
270 union drsuapi_DsAddEntryRequest
*_req
/* [in] [ref,switch_is(level)] */,
271 int32_t *_level_out
/* [out] [ref] */,
272 union drsuapi_DsAddEntryCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
273 NTSTATUS
rpccli_drsuapi_DsAddEntry_recv(struct tevent_req
*req
,
276 NTSTATUS
rpccli_drsuapi_DsAddEntry(struct rpc_pipe_client
*cli
,
278 struct policy_handle
*bind_handle
/* [in] [ref] */,
279 int32_t level
/* [in] */,
280 union drsuapi_DsAddEntryRequest
*req
/* [in] [ref,switch_is(level)] */,
281 int32_t *level_out
/* [out] [ref] */,
282 union drsuapi_DsAddEntryCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
284 struct tevent_req
*rpccli_drsuapi_DsExecuteKCC_send(TALLOC_CTX
*mem_ctx
,
285 struct tevent_context
*ev
,
286 struct rpc_pipe_client
*cli
,
287 struct policy_handle
*_bind_handle
/* [in] [ref] */,
288 uint32_t _level
/* [in] */,
289 union drsuapi_DsExecuteKCCRequest
*_req
/* [in] [ref,switch_is(level)] */);
290 NTSTATUS
rpccli_drsuapi_DsExecuteKCC_recv(struct tevent_req
*req
,
293 NTSTATUS
rpccli_drsuapi_DsExecuteKCC(struct rpc_pipe_client
*cli
,
295 struct policy_handle
*bind_handle
/* [in] [ref] */,
296 uint32_t level
/* [in] */,
297 union drsuapi_DsExecuteKCCRequest
*req
/* [in] [ref,switch_is(level)] */,
299 struct tevent_req
*rpccli_drsuapi_DsReplicaGetInfo_send(TALLOC_CTX
*mem_ctx
,
300 struct tevent_context
*ev
,
301 struct rpc_pipe_client
*cli
,
302 struct policy_handle
*_bind_handle
/* [in] [ref] */,
303 enum drsuapi_DsReplicaGetInfoLevel _level
/* [in] */,
304 union drsuapi_DsReplicaGetInfoRequest
*_req
/* [in] [ref,switch_is(level)] */,
305 enum drsuapi_DsReplicaInfoType
*_info_type
/* [out] [ref] */,
306 union drsuapi_DsReplicaInfo
*_info
/* [out] [ref,switch_is(*info_type)] */);
307 NTSTATUS
rpccli_drsuapi_DsReplicaGetInfo_recv(struct tevent_req
*req
,
310 NTSTATUS
rpccli_drsuapi_DsReplicaGetInfo(struct rpc_pipe_client
*cli
,
312 struct policy_handle
*bind_handle
/* [in] [ref] */,
313 enum drsuapi_DsReplicaGetInfoLevel level
/* [in] */,
314 union drsuapi_DsReplicaGetInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
315 enum drsuapi_DsReplicaInfoType
*info_type
/* [out] [ref] */,
316 union drsuapi_DsReplicaInfo
*info
/* [out] [ref,switch_is(*info_type)] */,
318 struct tevent_req
*rpccli_DRSUAPI_ADD_SID_HISTORY_send(TALLOC_CTX
*mem_ctx
,
319 struct tevent_context
*ev
,
320 struct rpc_pipe_client
*cli
);
321 NTSTATUS
rpccli_DRSUAPI_ADD_SID_HISTORY_recv(struct tevent_req
*req
,
324 NTSTATUS
rpccli_DRSUAPI_ADD_SID_HISTORY(struct rpc_pipe_client
*cli
,
327 struct tevent_req
*rpccli_drsuapi_DsGetMemberships2_send(TALLOC_CTX
*mem_ctx
,
328 struct tevent_context
*ev
,
329 struct rpc_pipe_client
*cli
,
330 struct policy_handle
*_bind_handle
/* [in] [ref] */,
331 int32_t _level
/* [in] */,
332 union drsuapi_DsGetMemberships2Request
*_req
/* [in] [ref,switch_is(level)] */,
333 int32_t *_level_out
/* [out] [ref] */,
334 union drsuapi_DsGetMemberships2Ctr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
335 NTSTATUS
rpccli_drsuapi_DsGetMemberships2_recv(struct tevent_req
*req
,
338 NTSTATUS
rpccli_drsuapi_DsGetMemberships2(struct rpc_pipe_client
*cli
,
340 struct policy_handle
*bind_handle
/* [in] [ref] */,
341 int32_t level
/* [in] */,
342 union drsuapi_DsGetMemberships2Request
*req
/* [in] [ref,switch_is(level)] */,
343 int32_t *level_out
/* [out] [ref] */,
344 union drsuapi_DsGetMemberships2Ctr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
346 struct tevent_req
*rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS_send(TALLOC_CTX
*mem_ctx
,
347 struct tevent_context
*ev
,
348 struct rpc_pipe_client
*cli
);
349 NTSTATUS
rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS_recv(struct tevent_req
*req
,
352 NTSTATUS
rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS(struct rpc_pipe_client
*cli
,
355 struct tevent_req
*rpccli_DRSUAPI_GET_OBJECT_EXISTENCE_send(TALLOC_CTX
*mem_ctx
,
356 struct tevent_context
*ev
,
357 struct rpc_pipe_client
*cli
);
358 NTSTATUS
rpccli_DRSUAPI_GET_OBJECT_EXISTENCE_recv(struct tevent_req
*req
,
361 NTSTATUS
rpccli_DRSUAPI_GET_OBJECT_EXISTENCE(struct rpc_pipe_client
*cli
,
364 struct tevent_req
*rpccli_drsuapi_QuerySitesByCost_send(TALLOC_CTX
*mem_ctx
,
365 struct tevent_context
*ev
,
366 struct rpc_pipe_client
*cli
,
367 struct policy_handle
*_bind_handle
/* [in] [ref] */,
368 int32_t _level
/* [in] */,
369 union drsuapi_QuerySitesByCostRequest
*_req
/* [in] [ref,switch_is(level)] */,
370 int32_t *_level_out
/* [out] [ref] */,
371 union drsuapi_QuerySitesByCostCtr
*_ctr
/* [out] [ref,switch_is(*level_out)] */);
372 NTSTATUS
rpccli_drsuapi_QuerySitesByCost_recv(struct tevent_req
*req
,
375 NTSTATUS
rpccli_drsuapi_QuerySitesByCost(struct rpc_pipe_client
*cli
,
377 struct policy_handle
*bind_handle
/* [in] [ref] */,
378 int32_t level
/* [in] */,
379 union drsuapi_QuerySitesByCostRequest
*req
/* [in] [ref,switch_is(level)] */,
380 int32_t *level_out
/* [out] [ref] */,
381 union drsuapi_QuerySitesByCostCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
383 #endif /* __CLI_DRSUAPI__ */