s3/s4:samr.idl - Corrects the "userPwdChangeFailureInformation" structure
[ira/wip.git] / librpc / gen_ndr / cli_samr.h
1 #include "../librpc/gen_ndr/ndr_samr.h"
2 #ifndef __CLI_SAMR__
3 #define __CLI_SAMR__
4 struct tevent_req *rpccli_samr_Connect_send(TALLOC_CTX *mem_ctx,
5                                             struct tevent_context *ev,
6                                             struct rpc_pipe_client *cli,
7                                             uint16_t *_system_name /* [in] [unique] */,
8                                             uint32_t _access_mask /* [in]  */,
9                                             struct policy_handle *_connect_handle /* [out] [ref] */);
10 NTSTATUS rpccli_samr_Connect_recv(struct tevent_req *req,
11                                   TALLOC_CTX *mem_ctx,
12                                   NTSTATUS *result);
13 NTSTATUS rpccli_samr_Connect(struct rpc_pipe_client *cli,
14                              TALLOC_CTX *mem_ctx,
15                              uint16_t *system_name /* [in] [unique] */,
16                              uint32_t access_mask /* [in]  */,
17                              struct policy_handle *connect_handle /* [out] [ref] */);
18 struct tevent_req *rpccli_samr_Close_send(TALLOC_CTX *mem_ctx,
19                                           struct tevent_context *ev,
20                                           struct rpc_pipe_client *cli,
21                                           struct policy_handle *_handle /* [in,out] [ref] */);
22 NTSTATUS rpccli_samr_Close_recv(struct tevent_req *req,
23                                 TALLOC_CTX *mem_ctx,
24                                 NTSTATUS *result);
25 NTSTATUS rpccli_samr_Close(struct rpc_pipe_client *cli,
26                            TALLOC_CTX *mem_ctx,
27                            struct policy_handle *handle /* [in,out] [ref] */);
28 struct tevent_req *rpccli_samr_SetSecurity_send(TALLOC_CTX *mem_ctx,
29                                                 struct tevent_context *ev,
30                                                 struct rpc_pipe_client *cli,
31                                                 struct policy_handle *_handle /* [in] [ref] */,
32                                                 uint32_t _sec_info /* [in]  */,
33                                                 struct sec_desc_buf *_sdbuf /* [in] [ref] */);
34 NTSTATUS rpccli_samr_SetSecurity_recv(struct tevent_req *req,
35                                       TALLOC_CTX *mem_ctx,
36                                       NTSTATUS *result);
37 NTSTATUS rpccli_samr_SetSecurity(struct rpc_pipe_client *cli,
38                                  TALLOC_CTX *mem_ctx,
39                                  struct policy_handle *handle /* [in] [ref] */,
40                                  uint32_t sec_info /* [in]  */,
41                                  struct sec_desc_buf *sdbuf /* [in] [ref] */);
42 struct tevent_req *rpccli_samr_QuerySecurity_send(TALLOC_CTX *mem_ctx,
43                                                   struct tevent_context *ev,
44                                                   struct rpc_pipe_client *cli,
45                                                   struct policy_handle *_handle /* [in] [ref] */,
46                                                   uint32_t _sec_info /* [in]  */,
47                                                   struct sec_desc_buf **_sdbuf /* [out] [ref] */);
48 NTSTATUS rpccli_samr_QuerySecurity_recv(struct tevent_req *req,
49                                         TALLOC_CTX *mem_ctx,
50                                         NTSTATUS *result);
51 NTSTATUS rpccli_samr_QuerySecurity(struct rpc_pipe_client *cli,
52                                    TALLOC_CTX *mem_ctx,
53                                    struct policy_handle *handle /* [in] [ref] */,
54                                    uint32_t sec_info /* [in]  */,
55                                    struct sec_desc_buf **sdbuf /* [out] [ref] */);
56 struct tevent_req *rpccli_samr_Shutdown_send(TALLOC_CTX *mem_ctx,
57                                              struct tevent_context *ev,
58                                              struct rpc_pipe_client *cli,
59                                              struct policy_handle *_connect_handle /* [in] [ref] */);
60 NTSTATUS rpccli_samr_Shutdown_recv(struct tevent_req *req,
61                                    TALLOC_CTX *mem_ctx,
62                                    NTSTATUS *result);
63 NTSTATUS rpccli_samr_Shutdown(struct rpc_pipe_client *cli,
64                               TALLOC_CTX *mem_ctx,
65                               struct policy_handle *connect_handle /* [in] [ref] */);
66 struct tevent_req *rpccli_samr_LookupDomain_send(TALLOC_CTX *mem_ctx,
67                                                  struct tevent_context *ev,
68                                                  struct rpc_pipe_client *cli,
69                                                  struct policy_handle *_connect_handle /* [in] [ref] */,
70                                                  struct lsa_String *_domain_name /* [in] [ref] */,
71                                                  struct dom_sid2 **_sid /* [out] [ref] */);
72 NTSTATUS rpccli_samr_LookupDomain_recv(struct tevent_req *req,
73                                        TALLOC_CTX *mem_ctx,
74                                        NTSTATUS *result);
75 NTSTATUS rpccli_samr_LookupDomain(struct rpc_pipe_client *cli,
76                                   TALLOC_CTX *mem_ctx,
77                                   struct policy_handle *connect_handle /* [in] [ref] */,
78                                   struct lsa_String *domain_name /* [in] [ref] */,
79                                   struct dom_sid2 **sid /* [out] [ref] */);
80 struct tevent_req *rpccli_samr_EnumDomains_send(TALLOC_CTX *mem_ctx,
81                                                 struct tevent_context *ev,
82                                                 struct rpc_pipe_client *cli,
83                                                 struct policy_handle *_connect_handle /* [in] [ref] */,
84                                                 uint32_t *_resume_handle /* [in,out] [ref] */,
85                                                 struct samr_SamArray **_sam /* [out] [ref] */,
86                                                 uint32_t _buf_size /* [in]  */,
87                                                 uint32_t *_num_entries /* [out] [ref] */);
88 NTSTATUS rpccli_samr_EnumDomains_recv(struct tevent_req *req,
89                                       TALLOC_CTX *mem_ctx,
90                                       NTSTATUS *result);
91 NTSTATUS rpccli_samr_EnumDomains(struct rpc_pipe_client *cli,
92                                  TALLOC_CTX *mem_ctx,
93                                  struct policy_handle *connect_handle /* [in] [ref] */,
94                                  uint32_t *resume_handle /* [in,out] [ref] */,
95                                  struct samr_SamArray **sam /* [out] [ref] */,
96                                  uint32_t buf_size /* [in]  */,
97                                  uint32_t *num_entries /* [out] [ref] */);
98 struct tevent_req *rpccli_samr_OpenDomain_send(TALLOC_CTX *mem_ctx,
99                                                struct tevent_context *ev,
100                                                struct rpc_pipe_client *cli,
101                                                struct policy_handle *_connect_handle /* [in] [ref] */,
102                                                uint32_t _access_mask /* [in]  */,
103                                                struct dom_sid2 *_sid /* [in] [ref] */,
104                                                struct policy_handle *_domain_handle /* [out] [ref] */);
105 NTSTATUS rpccli_samr_OpenDomain_recv(struct tevent_req *req,
106                                      TALLOC_CTX *mem_ctx,
107                                      NTSTATUS *result);
108 NTSTATUS rpccli_samr_OpenDomain(struct rpc_pipe_client *cli,
109                                 TALLOC_CTX *mem_ctx,
110                                 struct policy_handle *connect_handle /* [in] [ref] */,
111                                 uint32_t access_mask /* [in]  */,
112                                 struct dom_sid2 *sid /* [in] [ref] */,
113                                 struct policy_handle *domain_handle /* [out] [ref] */);
114 struct tevent_req *rpccli_samr_QueryDomainInfo_send(TALLOC_CTX *mem_ctx,
115                                                     struct tevent_context *ev,
116                                                     struct rpc_pipe_client *cli,
117                                                     struct policy_handle *_domain_handle /* [in] [ref] */,
118                                                     enum samr_DomainInfoClass _level /* [in]  */,
119                                                     union samr_DomainInfo **_info /* [out] [ref,switch_is(level)] */);
120 NTSTATUS rpccli_samr_QueryDomainInfo_recv(struct tevent_req *req,
121                                           TALLOC_CTX *mem_ctx,
122                                           NTSTATUS *result);
123 NTSTATUS rpccli_samr_QueryDomainInfo(struct rpc_pipe_client *cli,
124                                      TALLOC_CTX *mem_ctx,
125                                      struct policy_handle *domain_handle /* [in] [ref] */,
126                                      enum samr_DomainInfoClass level /* [in]  */,
127                                      union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */);
128 struct tevent_req *rpccli_samr_SetDomainInfo_send(TALLOC_CTX *mem_ctx,
129                                                   struct tevent_context *ev,
130                                                   struct rpc_pipe_client *cli,
131                                                   struct policy_handle *_domain_handle /* [in] [ref] */,
132                                                   enum samr_DomainInfoClass _level /* [in]  */,
133                                                   union samr_DomainInfo *_info /* [in] [ref,switch_is(level)] */);
134 NTSTATUS rpccli_samr_SetDomainInfo_recv(struct tevent_req *req,
135                                         TALLOC_CTX *mem_ctx,
136                                         NTSTATUS *result);
137 NTSTATUS rpccli_samr_SetDomainInfo(struct rpc_pipe_client *cli,
138                                    TALLOC_CTX *mem_ctx,
139                                    struct policy_handle *domain_handle /* [in] [ref] */,
140                                    enum samr_DomainInfoClass level /* [in]  */,
141                                    union samr_DomainInfo *info /* [in] [ref,switch_is(level)] */);
142 struct tevent_req *rpccli_samr_CreateDomainGroup_send(TALLOC_CTX *mem_ctx,
143                                                       struct tevent_context *ev,
144                                                       struct rpc_pipe_client *cli,
145                                                       struct policy_handle *_domain_handle /* [in] [ref] */,
146                                                       struct lsa_String *_name /* [in] [ref] */,
147                                                       uint32_t _access_mask /* [in]  */,
148                                                       struct policy_handle *_group_handle /* [out] [ref] */,
149                                                       uint32_t *_rid /* [out] [ref] */);
150 NTSTATUS rpccli_samr_CreateDomainGroup_recv(struct tevent_req *req,
151                                             TALLOC_CTX *mem_ctx,
152                                             NTSTATUS *result);
153 NTSTATUS rpccli_samr_CreateDomainGroup(struct rpc_pipe_client *cli,
154                                        TALLOC_CTX *mem_ctx,
155                                        struct policy_handle *domain_handle /* [in] [ref] */,
156                                        struct lsa_String *name /* [in] [ref] */,
157                                        uint32_t access_mask /* [in]  */,
158                                        struct policy_handle *group_handle /* [out] [ref] */,
159                                        uint32_t *rid /* [out] [ref] */);
160 struct tevent_req *rpccli_samr_EnumDomainGroups_send(TALLOC_CTX *mem_ctx,
161                                                      struct tevent_context *ev,
162                                                      struct rpc_pipe_client *cli,
163                                                      struct policy_handle *_domain_handle /* [in] [ref] */,
164                                                      uint32_t *_resume_handle /* [in,out] [ref] */,
165                                                      struct samr_SamArray **_sam /* [out] [ref] */,
166                                                      uint32_t _max_size /* [in]  */,
167                                                      uint32_t *_num_entries /* [out] [ref] */);
168 NTSTATUS rpccli_samr_EnumDomainGroups_recv(struct tevent_req *req,
169                                            TALLOC_CTX *mem_ctx,
170                                            NTSTATUS *result);
171 NTSTATUS rpccli_samr_EnumDomainGroups(struct rpc_pipe_client *cli,
172                                       TALLOC_CTX *mem_ctx,
173                                       struct policy_handle *domain_handle /* [in] [ref] */,
174                                       uint32_t *resume_handle /* [in,out] [ref] */,
175                                       struct samr_SamArray **sam /* [out] [ref] */,
176                                       uint32_t max_size /* [in]  */,
177                                       uint32_t *num_entries /* [out] [ref] */);
178 struct tevent_req *rpccli_samr_CreateUser_send(TALLOC_CTX *mem_ctx,
179                                                struct tevent_context *ev,
180                                                struct rpc_pipe_client *cli,
181                                                struct policy_handle *_domain_handle /* [in] [ref] */,
182                                                struct lsa_String *_account_name /* [in] [ref] */,
183                                                uint32_t _access_mask /* [in]  */,
184                                                struct policy_handle *_user_handle /* [out] [ref] */,
185                                                uint32_t *_rid /* [out] [ref] */);
186 NTSTATUS rpccli_samr_CreateUser_recv(struct tevent_req *req,
187                                      TALLOC_CTX *mem_ctx,
188                                      NTSTATUS *result);
189 NTSTATUS rpccli_samr_CreateUser(struct rpc_pipe_client *cli,
190                                 TALLOC_CTX *mem_ctx,
191                                 struct policy_handle *domain_handle /* [in] [ref] */,
192                                 struct lsa_String *account_name /* [in] [ref] */,
193                                 uint32_t access_mask /* [in]  */,
194                                 struct policy_handle *user_handle /* [out] [ref] */,
195                                 uint32_t *rid /* [out] [ref] */);
196 struct tevent_req *rpccli_samr_EnumDomainUsers_send(TALLOC_CTX *mem_ctx,
197                                                     struct tevent_context *ev,
198                                                     struct rpc_pipe_client *cli,
199                                                     struct policy_handle *_domain_handle /* [in] [ref] */,
200                                                     uint32_t *_resume_handle /* [in,out] [ref] */,
201                                                     uint32_t _acct_flags /* [in]  */,
202                                                     struct samr_SamArray **_sam /* [out] [ref] */,
203                                                     uint32_t _max_size /* [in]  */,
204                                                     uint32_t *_num_entries /* [out] [ref] */);
205 NTSTATUS rpccli_samr_EnumDomainUsers_recv(struct tevent_req *req,
206                                           TALLOC_CTX *mem_ctx,
207                                           NTSTATUS *result);
208 NTSTATUS rpccli_samr_EnumDomainUsers(struct rpc_pipe_client *cli,
209                                      TALLOC_CTX *mem_ctx,
210                                      struct policy_handle *domain_handle /* [in] [ref] */,
211                                      uint32_t *resume_handle /* [in,out] [ref] */,
212                                      uint32_t acct_flags /* [in]  */,
213                                      struct samr_SamArray **sam /* [out] [ref] */,
214                                      uint32_t max_size /* [in]  */,
215                                      uint32_t *num_entries /* [out] [ref] */);
216 struct tevent_req *rpccli_samr_CreateDomAlias_send(TALLOC_CTX *mem_ctx,
217                                                    struct tevent_context *ev,
218                                                    struct rpc_pipe_client *cli,
219                                                    struct policy_handle *_domain_handle /* [in] [ref] */,
220                                                    struct lsa_String *_alias_name /* [in] [ref] */,
221                                                    uint32_t _access_mask /* [in]  */,
222                                                    struct policy_handle *_alias_handle /* [out] [ref] */,
223                                                    uint32_t *_rid /* [out] [ref] */);
224 NTSTATUS rpccli_samr_CreateDomAlias_recv(struct tevent_req *req,
225                                          TALLOC_CTX *mem_ctx,
226                                          NTSTATUS *result);
227 NTSTATUS rpccli_samr_CreateDomAlias(struct rpc_pipe_client *cli,
228                                     TALLOC_CTX *mem_ctx,
229                                     struct policy_handle *domain_handle /* [in] [ref] */,
230                                     struct lsa_String *alias_name /* [in] [ref] */,
231                                     uint32_t access_mask /* [in]  */,
232                                     struct policy_handle *alias_handle /* [out] [ref] */,
233                                     uint32_t *rid /* [out] [ref] */);
234 struct tevent_req *rpccli_samr_EnumDomainAliases_send(TALLOC_CTX *mem_ctx,
235                                                       struct tevent_context *ev,
236                                                       struct rpc_pipe_client *cli,
237                                                       struct policy_handle *_domain_handle /* [in] [ref] */,
238                                                       uint32_t *_resume_handle /* [in,out] [ref] */,
239                                                       struct samr_SamArray **_sam /* [out] [ref] */,
240                                                       uint32_t _max_size /* [in]  */,
241                                                       uint32_t *_num_entries /* [out] [ref] */);
242 NTSTATUS rpccli_samr_EnumDomainAliases_recv(struct tevent_req *req,
243                                             TALLOC_CTX *mem_ctx,
244                                             NTSTATUS *result);
245 NTSTATUS rpccli_samr_EnumDomainAliases(struct rpc_pipe_client *cli,
246                                        TALLOC_CTX *mem_ctx,
247                                        struct policy_handle *domain_handle /* [in] [ref] */,
248                                        uint32_t *resume_handle /* [in,out] [ref] */,
249                                        struct samr_SamArray **sam /* [out] [ref] */,
250                                        uint32_t max_size /* [in]  */,
251                                        uint32_t *num_entries /* [out] [ref] */);
252 struct tevent_req *rpccli_samr_GetAliasMembership_send(TALLOC_CTX *mem_ctx,
253                                                        struct tevent_context *ev,
254                                                        struct rpc_pipe_client *cli,
255                                                        struct policy_handle *_domain_handle /* [in] [ref] */,
256                                                        struct lsa_SidArray *_sids /* [in] [ref] */,
257                                                        struct samr_Ids *_rids /* [out] [ref] */);
258 NTSTATUS rpccli_samr_GetAliasMembership_recv(struct tevent_req *req,
259                                              TALLOC_CTX *mem_ctx,
260                                              NTSTATUS *result);
261 NTSTATUS rpccli_samr_GetAliasMembership(struct rpc_pipe_client *cli,
262                                         TALLOC_CTX *mem_ctx,
263                                         struct policy_handle *domain_handle /* [in] [ref] */,
264                                         struct lsa_SidArray *sids /* [in] [ref] */,
265                                         struct samr_Ids *rids /* [out] [ref] */);
266 struct tevent_req *rpccli_samr_LookupNames_send(TALLOC_CTX *mem_ctx,
267                                                 struct tevent_context *ev,
268                                                 struct rpc_pipe_client *cli,
269                                                 struct policy_handle *_domain_handle /* [in] [ref] */,
270                                                 uint32_t _num_names /* [in] [range(0,1000)] */,
271                                                 struct lsa_String *_names /* [in] [length_is(num_names),size_is(1000)] */,
272                                                 struct samr_Ids *_rids /* [out] [ref] */,
273                                                 struct samr_Ids *_types /* [out] [ref] */);
274 NTSTATUS rpccli_samr_LookupNames_recv(struct tevent_req *req,
275                                       TALLOC_CTX *mem_ctx,
276                                       NTSTATUS *result);
277 NTSTATUS rpccli_samr_LookupNames(struct rpc_pipe_client *cli,
278                                  TALLOC_CTX *mem_ctx,
279                                  struct policy_handle *domain_handle /* [in] [ref] */,
280                                  uint32_t num_names /* [in] [range(0,1000)] */,
281                                  struct lsa_String *names /* [in] [length_is(num_names),size_is(1000)] */,
282                                  struct samr_Ids *rids /* [out] [ref] */,
283                                  struct samr_Ids *types /* [out] [ref] */);
284 struct tevent_req *rpccli_samr_LookupRids_send(TALLOC_CTX *mem_ctx,
285                                                struct tevent_context *ev,
286                                                struct rpc_pipe_client *cli,
287                                                struct policy_handle *_domain_handle /* [in] [ref] */,
288                                                uint32_t _num_rids /* [in] [range(0,1000)] */,
289                                                uint32_t *_rids /* [in] [length_is(num_rids),size_is(1000)] */,
290                                                struct lsa_Strings *_names /* [out] [ref] */,
291                                                struct samr_Ids *_types /* [out] [ref] */);
292 NTSTATUS rpccli_samr_LookupRids_recv(struct tevent_req *req,
293                                      TALLOC_CTX *mem_ctx,
294                                      NTSTATUS *result);
295 NTSTATUS rpccli_samr_LookupRids(struct rpc_pipe_client *cli,
296                                 TALLOC_CTX *mem_ctx,
297                                 struct policy_handle *domain_handle /* [in] [ref] */,
298                                 uint32_t num_rids /* [in] [range(0,1000)] */,
299                                 uint32_t *rids /* [in] [length_is(num_rids),size_is(1000)] */,
300                                 struct lsa_Strings *names /* [out] [ref] */,
301                                 struct samr_Ids *types /* [out] [ref] */);
302 struct tevent_req *rpccli_samr_OpenGroup_send(TALLOC_CTX *mem_ctx,
303                                               struct tevent_context *ev,
304                                               struct rpc_pipe_client *cli,
305                                               struct policy_handle *_domain_handle /* [in] [ref] */,
306                                               uint32_t _access_mask /* [in]  */,
307                                               uint32_t _rid /* [in]  */,
308                                               struct policy_handle *_group_handle /* [out] [ref] */);
309 NTSTATUS rpccli_samr_OpenGroup_recv(struct tevent_req *req,
310                                     TALLOC_CTX *mem_ctx,
311                                     NTSTATUS *result);
312 NTSTATUS rpccli_samr_OpenGroup(struct rpc_pipe_client *cli,
313                                TALLOC_CTX *mem_ctx,
314                                struct policy_handle *domain_handle /* [in] [ref] */,
315                                uint32_t access_mask /* [in]  */,
316                                uint32_t rid /* [in]  */,
317                                struct policy_handle *group_handle /* [out] [ref] */);
318 struct tevent_req *rpccli_samr_QueryGroupInfo_send(TALLOC_CTX *mem_ctx,
319                                                    struct tevent_context *ev,
320                                                    struct rpc_pipe_client *cli,
321                                                    struct policy_handle *_group_handle /* [in] [ref] */,
322                                                    enum samr_GroupInfoEnum _level /* [in]  */,
323                                                    union samr_GroupInfo **_info /* [out] [ref,switch_is(level)] */);
324 NTSTATUS rpccli_samr_QueryGroupInfo_recv(struct tevent_req *req,
325                                          TALLOC_CTX *mem_ctx,
326                                          NTSTATUS *result);
327 NTSTATUS rpccli_samr_QueryGroupInfo(struct rpc_pipe_client *cli,
328                                     TALLOC_CTX *mem_ctx,
329                                     struct policy_handle *group_handle /* [in] [ref] */,
330                                     enum samr_GroupInfoEnum level /* [in]  */,
331                                     union samr_GroupInfo **info /* [out] [ref,switch_is(level)] */);
332 struct tevent_req *rpccli_samr_SetGroupInfo_send(TALLOC_CTX *mem_ctx,
333                                                  struct tevent_context *ev,
334                                                  struct rpc_pipe_client *cli,
335                                                  struct policy_handle *_group_handle /* [in] [ref] */,
336                                                  enum samr_GroupInfoEnum _level /* [in]  */,
337                                                  union samr_GroupInfo *_info /* [in] [ref,switch_is(level)] */);
338 NTSTATUS rpccli_samr_SetGroupInfo_recv(struct tevent_req *req,
339                                        TALLOC_CTX *mem_ctx,
340                                        NTSTATUS *result);
341 NTSTATUS rpccli_samr_SetGroupInfo(struct rpc_pipe_client *cli,
342                                   TALLOC_CTX *mem_ctx,
343                                   struct policy_handle *group_handle /* [in] [ref] */,
344                                   enum samr_GroupInfoEnum level /* [in]  */,
345                                   union samr_GroupInfo *info /* [in] [ref,switch_is(level)] */);
346 struct tevent_req *rpccli_samr_AddGroupMember_send(TALLOC_CTX *mem_ctx,
347                                                    struct tevent_context *ev,
348                                                    struct rpc_pipe_client *cli,
349                                                    struct policy_handle *_group_handle /* [in] [ref] */,
350                                                    uint32_t _rid /* [in]  */,
351                                                    uint32_t _flags /* [in]  */);
352 NTSTATUS rpccli_samr_AddGroupMember_recv(struct tevent_req *req,
353                                          TALLOC_CTX *mem_ctx,
354                                          NTSTATUS *result);
355 NTSTATUS rpccli_samr_AddGroupMember(struct rpc_pipe_client *cli,
356                                     TALLOC_CTX *mem_ctx,
357                                     struct policy_handle *group_handle /* [in] [ref] */,
358                                     uint32_t rid /* [in]  */,
359                                     uint32_t flags /* [in]  */);
360 struct tevent_req *rpccli_samr_DeleteDomainGroup_send(TALLOC_CTX *mem_ctx,
361                                                       struct tevent_context *ev,
362                                                       struct rpc_pipe_client *cli,
363                                                       struct policy_handle *_group_handle /* [in,out] [ref] */);
364 NTSTATUS rpccli_samr_DeleteDomainGroup_recv(struct tevent_req *req,
365                                             TALLOC_CTX *mem_ctx,
366                                             NTSTATUS *result);
367 NTSTATUS rpccli_samr_DeleteDomainGroup(struct rpc_pipe_client *cli,
368                                        TALLOC_CTX *mem_ctx,
369                                        struct policy_handle *group_handle /* [in,out] [ref] */);
370 struct tevent_req *rpccli_samr_DeleteGroupMember_send(TALLOC_CTX *mem_ctx,
371                                                       struct tevent_context *ev,
372                                                       struct rpc_pipe_client *cli,
373                                                       struct policy_handle *_group_handle /* [in] [ref] */,
374                                                       uint32_t _rid /* [in]  */);
375 NTSTATUS rpccli_samr_DeleteGroupMember_recv(struct tevent_req *req,
376                                             TALLOC_CTX *mem_ctx,
377                                             NTSTATUS *result);
378 NTSTATUS rpccli_samr_DeleteGroupMember(struct rpc_pipe_client *cli,
379                                        TALLOC_CTX *mem_ctx,
380                                        struct policy_handle *group_handle /* [in] [ref] */,
381                                        uint32_t rid /* [in]  */);
382 struct tevent_req *rpccli_samr_QueryGroupMember_send(TALLOC_CTX *mem_ctx,
383                                                      struct tevent_context *ev,
384                                                      struct rpc_pipe_client *cli,
385                                                      struct policy_handle *_group_handle /* [in] [ref] */,
386                                                      struct samr_RidTypeArray **_rids /* [out] [ref] */);
387 NTSTATUS rpccli_samr_QueryGroupMember_recv(struct tevent_req *req,
388                                            TALLOC_CTX *mem_ctx,
389                                            NTSTATUS *result);
390 NTSTATUS rpccli_samr_QueryGroupMember(struct rpc_pipe_client *cli,
391                                       TALLOC_CTX *mem_ctx,
392                                       struct policy_handle *group_handle /* [in] [ref] */,
393                                       struct samr_RidTypeArray **rids /* [out] [ref] */);
394 struct tevent_req *rpccli_samr_SetMemberAttributesOfGroup_send(TALLOC_CTX *mem_ctx,
395                                                                struct tevent_context *ev,
396                                                                struct rpc_pipe_client *cli,
397                                                                struct policy_handle *_group_handle /* [in] [ref] */,
398                                                                uint32_t _unknown1 /* [in]  */,
399                                                                uint32_t _unknown2 /* [in]  */);
400 NTSTATUS rpccli_samr_SetMemberAttributesOfGroup_recv(struct tevent_req *req,
401                                                      TALLOC_CTX *mem_ctx,
402                                                      NTSTATUS *result);
403 NTSTATUS rpccli_samr_SetMemberAttributesOfGroup(struct rpc_pipe_client *cli,
404                                                 TALLOC_CTX *mem_ctx,
405                                                 struct policy_handle *group_handle /* [in] [ref] */,
406                                                 uint32_t unknown1 /* [in]  */,
407                                                 uint32_t unknown2 /* [in]  */);
408 struct tevent_req *rpccli_samr_OpenAlias_send(TALLOC_CTX *mem_ctx,
409                                               struct tevent_context *ev,
410                                               struct rpc_pipe_client *cli,
411                                               struct policy_handle *_domain_handle /* [in] [ref] */,
412                                               uint32_t _access_mask /* [in]  */,
413                                               uint32_t _rid /* [in]  */,
414                                               struct policy_handle *_alias_handle /* [out] [ref] */);
415 NTSTATUS rpccli_samr_OpenAlias_recv(struct tevent_req *req,
416                                     TALLOC_CTX *mem_ctx,
417                                     NTSTATUS *result);
418 NTSTATUS rpccli_samr_OpenAlias(struct rpc_pipe_client *cli,
419                                TALLOC_CTX *mem_ctx,
420                                struct policy_handle *domain_handle /* [in] [ref] */,
421                                uint32_t access_mask /* [in]  */,
422                                uint32_t rid /* [in]  */,
423                                struct policy_handle *alias_handle /* [out] [ref] */);
424 struct tevent_req *rpccli_samr_QueryAliasInfo_send(TALLOC_CTX *mem_ctx,
425                                                    struct tevent_context *ev,
426                                                    struct rpc_pipe_client *cli,
427                                                    struct policy_handle *_alias_handle /* [in] [ref] */,
428                                                    enum samr_AliasInfoEnum _level /* [in]  */,
429                                                    union samr_AliasInfo **_info /* [out] [ref,switch_is(level)] */);
430 NTSTATUS rpccli_samr_QueryAliasInfo_recv(struct tevent_req *req,
431                                          TALLOC_CTX *mem_ctx,
432                                          NTSTATUS *result);
433 NTSTATUS rpccli_samr_QueryAliasInfo(struct rpc_pipe_client *cli,
434                                     TALLOC_CTX *mem_ctx,
435                                     struct policy_handle *alias_handle /* [in] [ref] */,
436                                     enum samr_AliasInfoEnum level /* [in]  */,
437                                     union samr_AliasInfo **info /* [out] [ref,switch_is(level)] */);
438 struct tevent_req *rpccli_samr_SetAliasInfo_send(TALLOC_CTX *mem_ctx,
439                                                  struct tevent_context *ev,
440                                                  struct rpc_pipe_client *cli,
441                                                  struct policy_handle *_alias_handle /* [in] [ref] */,
442                                                  enum samr_AliasInfoEnum _level /* [in]  */,
443                                                  union samr_AliasInfo *_info /* [in] [ref,switch_is(level)] */);
444 NTSTATUS rpccli_samr_SetAliasInfo_recv(struct tevent_req *req,
445                                        TALLOC_CTX *mem_ctx,
446                                        NTSTATUS *result);
447 NTSTATUS rpccli_samr_SetAliasInfo(struct rpc_pipe_client *cli,
448                                   TALLOC_CTX *mem_ctx,
449                                   struct policy_handle *alias_handle /* [in] [ref] */,
450                                   enum samr_AliasInfoEnum level /* [in]  */,
451                                   union samr_AliasInfo *info /* [in] [ref,switch_is(level)] */);
452 struct tevent_req *rpccli_samr_DeleteDomAlias_send(TALLOC_CTX *mem_ctx,
453                                                    struct tevent_context *ev,
454                                                    struct rpc_pipe_client *cli,
455                                                    struct policy_handle *_alias_handle /* [in,out] [ref] */);
456 NTSTATUS rpccli_samr_DeleteDomAlias_recv(struct tevent_req *req,
457                                          TALLOC_CTX *mem_ctx,
458                                          NTSTATUS *result);
459 NTSTATUS rpccli_samr_DeleteDomAlias(struct rpc_pipe_client *cli,
460                                     TALLOC_CTX *mem_ctx,
461                                     struct policy_handle *alias_handle /* [in,out] [ref] */);
462 struct tevent_req *rpccli_samr_AddAliasMember_send(TALLOC_CTX *mem_ctx,
463                                                    struct tevent_context *ev,
464                                                    struct rpc_pipe_client *cli,
465                                                    struct policy_handle *_alias_handle /* [in] [ref] */,
466                                                    struct dom_sid2 *_sid /* [in] [ref] */);
467 NTSTATUS rpccli_samr_AddAliasMember_recv(struct tevent_req *req,
468                                          TALLOC_CTX *mem_ctx,
469                                          NTSTATUS *result);
470 NTSTATUS rpccli_samr_AddAliasMember(struct rpc_pipe_client *cli,
471                                     TALLOC_CTX *mem_ctx,
472                                     struct policy_handle *alias_handle /* [in] [ref] */,
473                                     struct dom_sid2 *sid /* [in] [ref] */);
474 struct tevent_req *rpccli_samr_DeleteAliasMember_send(TALLOC_CTX *mem_ctx,
475                                                       struct tevent_context *ev,
476                                                       struct rpc_pipe_client *cli,
477                                                       struct policy_handle *_alias_handle /* [in] [ref] */,
478                                                       struct dom_sid2 *_sid /* [in] [ref] */);
479 NTSTATUS rpccli_samr_DeleteAliasMember_recv(struct tevent_req *req,
480                                             TALLOC_CTX *mem_ctx,
481                                             NTSTATUS *result);
482 NTSTATUS rpccli_samr_DeleteAliasMember(struct rpc_pipe_client *cli,
483                                        TALLOC_CTX *mem_ctx,
484                                        struct policy_handle *alias_handle /* [in] [ref] */,
485                                        struct dom_sid2 *sid /* [in] [ref] */);
486 struct tevent_req *rpccli_samr_GetMembersInAlias_send(TALLOC_CTX *mem_ctx,
487                                                       struct tevent_context *ev,
488                                                       struct rpc_pipe_client *cli,
489                                                       struct policy_handle *_alias_handle /* [in] [ref] */,
490                                                       struct lsa_SidArray *_sids /* [out] [ref] */);
491 NTSTATUS rpccli_samr_GetMembersInAlias_recv(struct tevent_req *req,
492                                             TALLOC_CTX *mem_ctx,
493                                             NTSTATUS *result);
494 NTSTATUS rpccli_samr_GetMembersInAlias(struct rpc_pipe_client *cli,
495                                        TALLOC_CTX *mem_ctx,
496                                        struct policy_handle *alias_handle /* [in] [ref] */,
497                                        struct lsa_SidArray *sids /* [out] [ref] */);
498 struct tevent_req *rpccli_samr_OpenUser_send(TALLOC_CTX *mem_ctx,
499                                              struct tevent_context *ev,
500                                              struct rpc_pipe_client *cli,
501                                              struct policy_handle *_domain_handle /* [in] [ref] */,
502                                              uint32_t _access_mask /* [in]  */,
503                                              uint32_t _rid /* [in]  */,
504                                              struct policy_handle *_user_handle /* [out] [ref] */);
505 NTSTATUS rpccli_samr_OpenUser_recv(struct tevent_req *req,
506                                    TALLOC_CTX *mem_ctx,
507                                    NTSTATUS *result);
508 NTSTATUS rpccli_samr_OpenUser(struct rpc_pipe_client *cli,
509                               TALLOC_CTX *mem_ctx,
510                               struct policy_handle *domain_handle /* [in] [ref] */,
511                               uint32_t access_mask /* [in]  */,
512                               uint32_t rid /* [in]  */,
513                               struct policy_handle *user_handle /* [out] [ref] */);
514 struct tevent_req *rpccli_samr_DeleteUser_send(TALLOC_CTX *mem_ctx,
515                                                struct tevent_context *ev,
516                                                struct rpc_pipe_client *cli,
517                                                struct policy_handle *_user_handle /* [in,out] [ref] */);
518 NTSTATUS rpccli_samr_DeleteUser_recv(struct tevent_req *req,
519                                      TALLOC_CTX *mem_ctx,
520                                      NTSTATUS *result);
521 NTSTATUS rpccli_samr_DeleteUser(struct rpc_pipe_client *cli,
522                                 TALLOC_CTX *mem_ctx,
523                                 struct policy_handle *user_handle /* [in,out] [ref] */);
524 struct tevent_req *rpccli_samr_QueryUserInfo_send(TALLOC_CTX *mem_ctx,
525                                                   struct tevent_context *ev,
526                                                   struct rpc_pipe_client *cli,
527                                                   struct policy_handle *_user_handle /* [in] [ref] */,
528                                                   enum samr_UserInfoLevel _level /* [in]  */,
529                                                   union samr_UserInfo **_info /* [out] [ref,switch_is(level)] */);
530 NTSTATUS rpccli_samr_QueryUserInfo_recv(struct tevent_req *req,
531                                         TALLOC_CTX *mem_ctx,
532                                         NTSTATUS *result);
533 NTSTATUS rpccli_samr_QueryUserInfo(struct rpc_pipe_client *cli,
534                                    TALLOC_CTX *mem_ctx,
535                                    struct policy_handle *user_handle /* [in] [ref] */,
536                                    enum samr_UserInfoLevel level /* [in]  */,
537                                    union samr_UserInfo **info /* [out] [ref,switch_is(level)] */);
538 struct tevent_req *rpccli_samr_SetUserInfo_send(TALLOC_CTX *mem_ctx,
539                                                 struct tevent_context *ev,
540                                                 struct rpc_pipe_client *cli,
541                                                 struct policy_handle *_user_handle /* [in] [ref] */,
542                                                 enum samr_UserInfoLevel _level /* [in]  */,
543                                                 union samr_UserInfo *_info /* [in] [ref,switch_is(level)] */);
544 NTSTATUS rpccli_samr_SetUserInfo_recv(struct tevent_req *req,
545                                       TALLOC_CTX *mem_ctx,
546                                       NTSTATUS *result);
547 NTSTATUS rpccli_samr_SetUserInfo(struct rpc_pipe_client *cli,
548                                  TALLOC_CTX *mem_ctx,
549                                  struct policy_handle *user_handle /* [in] [ref] */,
550                                  enum samr_UserInfoLevel level /* [in]  */,
551                                  union samr_UserInfo *info /* [in] [ref,switch_is(level)] */);
552 struct tevent_req *rpccli_samr_ChangePasswordUser_send(TALLOC_CTX *mem_ctx,
553                                                        struct tevent_context *ev,
554                                                        struct rpc_pipe_client *cli,
555                                                        struct policy_handle *_user_handle /* [in] [ref] */,
556                                                        uint8_t _lm_present /* [in]  */,
557                                                        struct samr_Password *_old_lm_crypted /* [in] [unique] */,
558                                                        struct samr_Password *_new_lm_crypted /* [in] [unique] */,
559                                                        uint8_t _nt_present /* [in]  */,
560                                                        struct samr_Password *_old_nt_crypted /* [in] [unique] */,
561                                                        struct samr_Password *_new_nt_crypted /* [in] [unique] */,
562                                                        uint8_t _cross1_present /* [in]  */,
563                                                        struct samr_Password *_nt_cross /* [in] [unique] */,
564                                                        uint8_t _cross2_present /* [in]  */,
565                                                        struct samr_Password *_lm_cross /* [in] [unique] */);
566 NTSTATUS rpccli_samr_ChangePasswordUser_recv(struct tevent_req *req,
567                                              TALLOC_CTX *mem_ctx,
568                                              NTSTATUS *result);
569 NTSTATUS rpccli_samr_ChangePasswordUser(struct rpc_pipe_client *cli,
570                                         TALLOC_CTX *mem_ctx,
571                                         struct policy_handle *user_handle /* [in] [ref] */,
572                                         uint8_t lm_present /* [in]  */,
573                                         struct samr_Password *old_lm_crypted /* [in] [unique] */,
574                                         struct samr_Password *new_lm_crypted /* [in] [unique] */,
575                                         uint8_t nt_present /* [in]  */,
576                                         struct samr_Password *old_nt_crypted /* [in] [unique] */,
577                                         struct samr_Password *new_nt_crypted /* [in] [unique] */,
578                                         uint8_t cross1_present /* [in]  */,
579                                         struct samr_Password *nt_cross /* [in] [unique] */,
580                                         uint8_t cross2_present /* [in]  */,
581                                         struct samr_Password *lm_cross /* [in] [unique] */);
582 struct tevent_req *rpccli_samr_GetGroupsForUser_send(TALLOC_CTX *mem_ctx,
583                                                      struct tevent_context *ev,
584                                                      struct rpc_pipe_client *cli,
585                                                      struct policy_handle *_user_handle /* [in] [ref] */,
586                                                      struct samr_RidWithAttributeArray **_rids /* [out] [ref] */);
587 NTSTATUS rpccli_samr_GetGroupsForUser_recv(struct tevent_req *req,
588                                            TALLOC_CTX *mem_ctx,
589                                            NTSTATUS *result);
590 NTSTATUS rpccli_samr_GetGroupsForUser(struct rpc_pipe_client *cli,
591                                       TALLOC_CTX *mem_ctx,
592                                       struct policy_handle *user_handle /* [in] [ref] */,
593                                       struct samr_RidWithAttributeArray **rids /* [out] [ref] */);
594 struct tevent_req *rpccli_samr_QueryDisplayInfo_send(TALLOC_CTX *mem_ctx,
595                                                      struct tevent_context *ev,
596                                                      struct rpc_pipe_client *cli,
597                                                      struct policy_handle *_domain_handle /* [in] [ref] */,
598                                                      uint16_t _level /* [in]  */,
599                                                      uint32_t _start_idx /* [in]  */,
600                                                      uint32_t _max_entries /* [in]  */,
601                                                      uint32_t _buf_size /* [in]  */,
602                                                      uint32_t *_total_size /* [out] [ref] */,
603                                                      uint32_t *_returned_size /* [out] [ref] */,
604                                                      union samr_DispInfo *_info /* [out] [ref,switch_is(level)] */);
605 NTSTATUS rpccli_samr_QueryDisplayInfo_recv(struct tevent_req *req,
606                                            TALLOC_CTX *mem_ctx,
607                                            NTSTATUS *result);
608 NTSTATUS rpccli_samr_QueryDisplayInfo(struct rpc_pipe_client *cli,
609                                       TALLOC_CTX *mem_ctx,
610                                       struct policy_handle *domain_handle /* [in] [ref] */,
611                                       uint16_t level /* [in]  */,
612                                       uint32_t start_idx /* [in]  */,
613                                       uint32_t max_entries /* [in]  */,
614                                       uint32_t buf_size /* [in]  */,
615                                       uint32_t *total_size /* [out] [ref] */,
616                                       uint32_t *returned_size /* [out] [ref] */,
617                                       union samr_DispInfo *info /* [out] [ref,switch_is(level)] */);
618 struct tevent_req *rpccli_samr_GetDisplayEnumerationIndex_send(TALLOC_CTX *mem_ctx,
619                                                                struct tevent_context *ev,
620                                                                struct rpc_pipe_client *cli,
621                                                                struct policy_handle *_domain_handle /* [in] [ref] */,
622                                                                uint16_t _level /* [in]  */,
623                                                                struct lsa_String *_name /* [in] [ref] */,
624                                                                uint32_t *_idx /* [out] [ref] */);
625 NTSTATUS rpccli_samr_GetDisplayEnumerationIndex_recv(struct tevent_req *req,
626                                                      TALLOC_CTX *mem_ctx,
627                                                      NTSTATUS *result);
628 NTSTATUS rpccli_samr_GetDisplayEnumerationIndex(struct rpc_pipe_client *cli,
629                                                 TALLOC_CTX *mem_ctx,
630                                                 struct policy_handle *domain_handle /* [in] [ref] */,
631                                                 uint16_t level /* [in]  */,
632                                                 struct lsa_String *name /* [in] [ref] */,
633                                                 uint32_t *idx /* [out] [ref] */);
634 struct tevent_req *rpccli_samr_TestPrivateFunctionsDomain_send(TALLOC_CTX *mem_ctx,
635                                                                struct tevent_context *ev,
636                                                                struct rpc_pipe_client *cli,
637                                                                struct policy_handle *_domain_handle /* [in] [ref] */);
638 NTSTATUS rpccli_samr_TestPrivateFunctionsDomain_recv(struct tevent_req *req,
639                                                      TALLOC_CTX *mem_ctx,
640                                                      NTSTATUS *result);
641 NTSTATUS rpccli_samr_TestPrivateFunctionsDomain(struct rpc_pipe_client *cli,
642                                                 TALLOC_CTX *mem_ctx,
643                                                 struct policy_handle *domain_handle /* [in] [ref] */);
644 struct tevent_req *rpccli_samr_TestPrivateFunctionsUser_send(TALLOC_CTX *mem_ctx,
645                                                              struct tevent_context *ev,
646                                                              struct rpc_pipe_client *cli,
647                                                              struct policy_handle *_user_handle /* [in] [ref] */);
648 NTSTATUS rpccli_samr_TestPrivateFunctionsUser_recv(struct tevent_req *req,
649                                                    TALLOC_CTX *mem_ctx,
650                                                    NTSTATUS *result);
651 NTSTATUS rpccli_samr_TestPrivateFunctionsUser(struct rpc_pipe_client *cli,
652                                               TALLOC_CTX *mem_ctx,
653                                               struct policy_handle *user_handle /* [in] [ref] */);
654 struct tevent_req *rpccli_samr_GetUserPwInfo_send(TALLOC_CTX *mem_ctx,
655                                                   struct tevent_context *ev,
656                                                   struct rpc_pipe_client *cli,
657                                                   struct policy_handle *_user_handle /* [in] [ref] */,
658                                                   struct samr_PwInfo *_info /* [out] [ref] */);
659 NTSTATUS rpccli_samr_GetUserPwInfo_recv(struct tevent_req *req,
660                                         TALLOC_CTX *mem_ctx,
661                                         NTSTATUS *result);
662 NTSTATUS rpccli_samr_GetUserPwInfo(struct rpc_pipe_client *cli,
663                                    TALLOC_CTX *mem_ctx,
664                                    struct policy_handle *user_handle /* [in] [ref] */,
665                                    struct samr_PwInfo *info /* [out] [ref] */);
666 struct tevent_req *rpccli_samr_RemoveMemberFromForeignDomain_send(TALLOC_CTX *mem_ctx,
667                                                                   struct tevent_context *ev,
668                                                                   struct rpc_pipe_client *cli,
669                                                                   struct policy_handle *_domain_handle /* [in] [ref] */,
670                                                                   struct dom_sid2 *_sid /* [in] [ref] */);
671 NTSTATUS rpccli_samr_RemoveMemberFromForeignDomain_recv(struct tevent_req *req,
672                                                         TALLOC_CTX *mem_ctx,
673                                                         NTSTATUS *result);
674 NTSTATUS rpccli_samr_RemoveMemberFromForeignDomain(struct rpc_pipe_client *cli,
675                                                    TALLOC_CTX *mem_ctx,
676                                                    struct policy_handle *domain_handle /* [in] [ref] */,
677                                                    struct dom_sid2 *sid /* [in] [ref] */);
678 struct tevent_req *rpccli_samr_QueryDomainInfo2_send(TALLOC_CTX *mem_ctx,
679                                                      struct tevent_context *ev,
680                                                      struct rpc_pipe_client *cli,
681                                                      struct policy_handle *_domain_handle /* [in] [ref] */,
682                                                      enum samr_DomainInfoClass _level /* [in]  */,
683                                                      union samr_DomainInfo **_info /* [out] [ref,switch_is(level)] */);
684 NTSTATUS rpccli_samr_QueryDomainInfo2_recv(struct tevent_req *req,
685                                            TALLOC_CTX *mem_ctx,
686                                            NTSTATUS *result);
687 NTSTATUS rpccli_samr_QueryDomainInfo2(struct rpc_pipe_client *cli,
688                                       TALLOC_CTX *mem_ctx,
689                                       struct policy_handle *domain_handle /* [in] [ref] */,
690                                       enum samr_DomainInfoClass level /* [in]  */,
691                                       union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */);
692 struct tevent_req *rpccli_samr_QueryUserInfo2_send(TALLOC_CTX *mem_ctx,
693                                                    struct tevent_context *ev,
694                                                    struct rpc_pipe_client *cli,
695                                                    struct policy_handle *_user_handle /* [in] [ref] */,
696                                                    enum samr_UserInfoLevel _level /* [in]  */,
697                                                    union samr_UserInfo **_info /* [out] [ref,switch_is(level)] */);
698 NTSTATUS rpccli_samr_QueryUserInfo2_recv(struct tevent_req *req,
699                                          TALLOC_CTX *mem_ctx,
700                                          NTSTATUS *result);
701 NTSTATUS rpccli_samr_QueryUserInfo2(struct rpc_pipe_client *cli,
702                                     TALLOC_CTX *mem_ctx,
703                                     struct policy_handle *user_handle /* [in] [ref] */,
704                                     enum samr_UserInfoLevel level /* [in]  */,
705                                     union samr_UserInfo **info /* [out] [ref,switch_is(level)] */);
706 struct tevent_req *rpccli_samr_QueryDisplayInfo2_send(TALLOC_CTX *mem_ctx,
707                                                       struct tevent_context *ev,
708                                                       struct rpc_pipe_client *cli,
709                                                       struct policy_handle *_domain_handle /* [in] [ref] */,
710                                                       uint16_t _level /* [in]  */,
711                                                       uint32_t _start_idx /* [in]  */,
712                                                       uint32_t _max_entries /* [in]  */,
713                                                       uint32_t _buf_size /* [in]  */,
714                                                       uint32_t *_total_size /* [out] [ref] */,
715                                                       uint32_t *_returned_size /* [out] [ref] */,
716                                                       union samr_DispInfo *_info /* [out] [ref,switch_is(level)] */);
717 NTSTATUS rpccli_samr_QueryDisplayInfo2_recv(struct tevent_req *req,
718                                             TALLOC_CTX *mem_ctx,
719                                             NTSTATUS *result);
720 NTSTATUS rpccli_samr_QueryDisplayInfo2(struct rpc_pipe_client *cli,
721                                        TALLOC_CTX *mem_ctx,
722                                        struct policy_handle *domain_handle /* [in] [ref] */,
723                                        uint16_t level /* [in]  */,
724                                        uint32_t start_idx /* [in]  */,
725                                        uint32_t max_entries /* [in]  */,
726                                        uint32_t buf_size /* [in]  */,
727                                        uint32_t *total_size /* [out] [ref] */,
728                                        uint32_t *returned_size /* [out] [ref] */,
729                                        union samr_DispInfo *info /* [out] [ref,switch_is(level)] */);
730 struct tevent_req *rpccli_samr_GetDisplayEnumerationIndex2_send(TALLOC_CTX *mem_ctx,
731                                                                 struct tevent_context *ev,
732                                                                 struct rpc_pipe_client *cli,
733                                                                 struct policy_handle *_domain_handle /* [in] [ref] */,
734                                                                 uint16_t _level /* [in]  */,
735                                                                 struct lsa_String *_name /* [in] [ref] */,
736                                                                 uint32_t *_idx /* [out] [ref] */);
737 NTSTATUS rpccli_samr_GetDisplayEnumerationIndex2_recv(struct tevent_req *req,
738                                                       TALLOC_CTX *mem_ctx,
739                                                       NTSTATUS *result);
740 NTSTATUS rpccli_samr_GetDisplayEnumerationIndex2(struct rpc_pipe_client *cli,
741                                                  TALLOC_CTX *mem_ctx,
742                                                  struct policy_handle *domain_handle /* [in] [ref] */,
743                                                  uint16_t level /* [in]  */,
744                                                  struct lsa_String *name /* [in] [ref] */,
745                                                  uint32_t *idx /* [out] [ref] */);
746 struct tevent_req *rpccli_samr_CreateUser2_send(TALLOC_CTX *mem_ctx,
747                                                 struct tevent_context *ev,
748                                                 struct rpc_pipe_client *cli,
749                                                 struct policy_handle *_domain_handle /* [in] [ref] */,
750                                                 struct lsa_String *_account_name /* [in] [ref] */,
751                                                 uint32_t _acct_flags /* [in]  */,
752                                                 uint32_t _access_mask /* [in]  */,
753                                                 struct policy_handle *_user_handle /* [out] [ref] */,
754                                                 uint32_t *_access_granted /* [out] [ref] */,
755                                                 uint32_t *_rid /* [out] [ref] */);
756 NTSTATUS rpccli_samr_CreateUser2_recv(struct tevent_req *req,
757                                       TALLOC_CTX *mem_ctx,
758                                       NTSTATUS *result);
759 NTSTATUS rpccli_samr_CreateUser2(struct rpc_pipe_client *cli,
760                                  TALLOC_CTX *mem_ctx,
761                                  struct policy_handle *domain_handle /* [in] [ref] */,
762                                  struct lsa_String *account_name /* [in] [ref] */,
763                                  uint32_t acct_flags /* [in]  */,
764                                  uint32_t access_mask /* [in]  */,
765                                  struct policy_handle *user_handle /* [out] [ref] */,
766                                  uint32_t *access_granted /* [out] [ref] */,
767                                  uint32_t *rid /* [out] [ref] */);
768 struct tevent_req *rpccli_samr_QueryDisplayInfo3_send(TALLOC_CTX *mem_ctx,
769                                                       struct tevent_context *ev,
770                                                       struct rpc_pipe_client *cli,
771                                                       struct policy_handle *_domain_handle /* [in] [ref] */,
772                                                       uint16_t _level /* [in]  */,
773                                                       uint32_t _start_idx /* [in]  */,
774                                                       uint32_t _max_entries /* [in]  */,
775                                                       uint32_t _buf_size /* [in]  */,
776                                                       uint32_t *_total_size /* [out] [ref] */,
777                                                       uint32_t *_returned_size /* [out] [ref] */,
778                                                       union samr_DispInfo *_info /* [out] [ref,switch_is(level)] */);
779 NTSTATUS rpccli_samr_QueryDisplayInfo3_recv(struct tevent_req *req,
780                                             TALLOC_CTX *mem_ctx,
781                                             NTSTATUS *result);
782 NTSTATUS rpccli_samr_QueryDisplayInfo3(struct rpc_pipe_client *cli,
783                                        TALLOC_CTX *mem_ctx,
784                                        struct policy_handle *domain_handle /* [in] [ref] */,
785                                        uint16_t level /* [in]  */,
786                                        uint32_t start_idx /* [in]  */,
787                                        uint32_t max_entries /* [in]  */,
788                                        uint32_t buf_size /* [in]  */,
789                                        uint32_t *total_size /* [out] [ref] */,
790                                        uint32_t *returned_size /* [out] [ref] */,
791                                        union samr_DispInfo *info /* [out] [ref,switch_is(level)] */);
792 struct tevent_req *rpccli_samr_AddMultipleMembersToAlias_send(TALLOC_CTX *mem_ctx,
793                                                               struct tevent_context *ev,
794                                                               struct rpc_pipe_client *cli,
795                                                               struct policy_handle *_alias_handle /* [in] [ref] */,
796                                                               struct lsa_SidArray *_sids /* [in] [ref] */);
797 NTSTATUS rpccli_samr_AddMultipleMembersToAlias_recv(struct tevent_req *req,
798                                                     TALLOC_CTX *mem_ctx,
799                                                     NTSTATUS *result);
800 NTSTATUS rpccli_samr_AddMultipleMembersToAlias(struct rpc_pipe_client *cli,
801                                                TALLOC_CTX *mem_ctx,
802                                                struct policy_handle *alias_handle /* [in] [ref] */,
803                                                struct lsa_SidArray *sids /* [in] [ref] */);
804 struct tevent_req *rpccli_samr_RemoveMultipleMembersFromAlias_send(TALLOC_CTX *mem_ctx,
805                                                                    struct tevent_context *ev,
806                                                                    struct rpc_pipe_client *cli,
807                                                                    struct policy_handle *_alias_handle /* [in] [ref] */,
808                                                                    struct lsa_SidArray *_sids /* [in] [ref] */);
809 NTSTATUS rpccli_samr_RemoveMultipleMembersFromAlias_recv(struct tevent_req *req,
810                                                          TALLOC_CTX *mem_ctx,
811                                                          NTSTATUS *result);
812 NTSTATUS rpccli_samr_RemoveMultipleMembersFromAlias(struct rpc_pipe_client *cli,
813                                                     TALLOC_CTX *mem_ctx,
814                                                     struct policy_handle *alias_handle /* [in] [ref] */,
815                                                     struct lsa_SidArray *sids /* [in] [ref] */);
816 struct tevent_req *rpccli_samr_OemChangePasswordUser2_send(TALLOC_CTX *mem_ctx,
817                                                            struct tevent_context *ev,
818                                                            struct rpc_pipe_client *cli,
819                                                            struct lsa_AsciiString *_server /* [in] [unique] */,
820                                                            struct lsa_AsciiString *_account /* [in] [ref] */,
821                                                            struct samr_CryptPassword *_password /* [in] [unique] */,
822                                                            struct samr_Password *_hash /* [in] [unique] */);
823 NTSTATUS rpccli_samr_OemChangePasswordUser2_recv(struct tevent_req *req,
824                                                  TALLOC_CTX *mem_ctx,
825                                                  NTSTATUS *result);
826 NTSTATUS rpccli_samr_OemChangePasswordUser2(struct rpc_pipe_client *cli,
827                                             TALLOC_CTX *mem_ctx,
828                                             struct lsa_AsciiString *server /* [in] [unique] */,
829                                             struct lsa_AsciiString *account /* [in] [ref] */,
830                                             struct samr_CryptPassword *password /* [in] [unique] */,
831                                             struct samr_Password *hash /* [in] [unique] */);
832 struct tevent_req *rpccli_samr_ChangePasswordUser2_send(TALLOC_CTX *mem_ctx,
833                                                         struct tevent_context *ev,
834                                                         struct rpc_pipe_client *cli,
835                                                         struct lsa_String *_server /* [in] [unique] */,
836                                                         struct lsa_String *_account /* [in] [ref] */,
837                                                         struct samr_CryptPassword *_nt_password /* [in] [unique] */,
838                                                         struct samr_Password *_nt_verifier /* [in] [unique] */,
839                                                         uint8_t _lm_change /* [in]  */,
840                                                         struct samr_CryptPassword *_lm_password /* [in] [unique] */,
841                                                         struct samr_Password *_lm_verifier /* [in] [unique] */);
842 NTSTATUS rpccli_samr_ChangePasswordUser2_recv(struct tevent_req *req,
843                                               TALLOC_CTX *mem_ctx,
844                                               NTSTATUS *result);
845 NTSTATUS rpccli_samr_ChangePasswordUser2(struct rpc_pipe_client *cli,
846                                          TALLOC_CTX *mem_ctx,
847                                          struct lsa_String *server /* [in] [unique] */,
848                                          struct lsa_String *account /* [in] [ref] */,
849                                          struct samr_CryptPassword *nt_password /* [in] [unique] */,
850                                          struct samr_Password *nt_verifier /* [in] [unique] */,
851                                          uint8_t lm_change /* [in]  */,
852                                          struct samr_CryptPassword *lm_password /* [in] [unique] */,
853                                          struct samr_Password *lm_verifier /* [in] [unique] */);
854 struct tevent_req *rpccli_samr_GetDomPwInfo_send(TALLOC_CTX *mem_ctx,
855                                                  struct tevent_context *ev,
856                                                  struct rpc_pipe_client *cli,
857                                                  struct lsa_String *_domain_name /* [in] [unique] */,
858                                                  struct samr_PwInfo *_info /* [out] [ref] */);
859 NTSTATUS rpccli_samr_GetDomPwInfo_recv(struct tevent_req *req,
860                                        TALLOC_CTX *mem_ctx,
861                                        NTSTATUS *result);
862 NTSTATUS rpccli_samr_GetDomPwInfo(struct rpc_pipe_client *cli,
863                                   TALLOC_CTX *mem_ctx,
864                                   struct lsa_String *domain_name /* [in] [unique] */,
865                                   struct samr_PwInfo *info /* [out] [ref] */);
866 struct tevent_req *rpccli_samr_Connect2_send(TALLOC_CTX *mem_ctx,
867                                              struct tevent_context *ev,
868                                              struct rpc_pipe_client *cli,
869                                              const char *_system_name /* [in] [unique,charset(UTF16)] */,
870                                              uint32_t _access_mask /* [in]  */,
871                                              struct policy_handle *_connect_handle /* [out] [ref] */);
872 NTSTATUS rpccli_samr_Connect2_recv(struct tevent_req *req,
873                                    TALLOC_CTX *mem_ctx,
874                                    NTSTATUS *result);
875 NTSTATUS rpccli_samr_Connect2(struct rpc_pipe_client *cli,
876                               TALLOC_CTX *mem_ctx,
877                               const char *system_name /* [in] [unique,charset(UTF16)] */,
878                               uint32_t access_mask /* [in]  */,
879                               struct policy_handle *connect_handle /* [out] [ref] */);
880 struct tevent_req *rpccli_samr_SetUserInfo2_send(TALLOC_CTX *mem_ctx,
881                                                  struct tevent_context *ev,
882                                                  struct rpc_pipe_client *cli,
883                                                  struct policy_handle *_user_handle /* [in] [ref] */,
884                                                  enum samr_UserInfoLevel _level /* [in]  */,
885                                                  union samr_UserInfo *_info /* [in] [ref,switch_is(level)] */);
886 NTSTATUS rpccli_samr_SetUserInfo2_recv(struct tevent_req *req,
887                                        TALLOC_CTX *mem_ctx,
888                                        NTSTATUS *result);
889 NTSTATUS rpccli_samr_SetUserInfo2(struct rpc_pipe_client *cli,
890                                   TALLOC_CTX *mem_ctx,
891                                   struct policy_handle *user_handle /* [in] [ref] */,
892                                   enum samr_UserInfoLevel level /* [in]  */,
893                                   union samr_UserInfo *info /* [in] [ref,switch_is(level)] */);
894 struct tevent_req *rpccli_samr_SetBootKeyInformation_send(TALLOC_CTX *mem_ctx,
895                                                           struct tevent_context *ev,
896                                                           struct rpc_pipe_client *cli,
897                                                           struct policy_handle *_connect_handle /* [in] [ref] */,
898                                                           uint32_t _unknown1 /* [in]  */,
899                                                           uint32_t _unknown2 /* [in]  */,
900                                                           uint32_t _unknown3 /* [in]  */);
901 NTSTATUS rpccli_samr_SetBootKeyInformation_recv(struct tevent_req *req,
902                                                 TALLOC_CTX *mem_ctx,
903                                                 NTSTATUS *result);
904 NTSTATUS rpccli_samr_SetBootKeyInformation(struct rpc_pipe_client *cli,
905                                            TALLOC_CTX *mem_ctx,
906                                            struct policy_handle *connect_handle /* [in] [ref] */,
907                                            uint32_t unknown1 /* [in]  */,
908                                            uint32_t unknown2 /* [in]  */,
909                                            uint32_t unknown3 /* [in]  */);
910 struct tevent_req *rpccli_samr_GetBootKeyInformation_send(TALLOC_CTX *mem_ctx,
911                                                           struct tevent_context *ev,
912                                                           struct rpc_pipe_client *cli,
913                                                           struct policy_handle *_domain_handle /* [in] [ref] */,
914                                                           uint32_t *_unknown /* [out] [ref] */);
915 NTSTATUS rpccli_samr_GetBootKeyInformation_recv(struct tevent_req *req,
916                                                 TALLOC_CTX *mem_ctx,
917                                                 NTSTATUS *result);
918 NTSTATUS rpccli_samr_GetBootKeyInformation(struct rpc_pipe_client *cli,
919                                            TALLOC_CTX *mem_ctx,
920                                            struct policy_handle *domain_handle /* [in] [ref] */,
921                                            uint32_t *unknown /* [out] [ref] */);
922 struct tevent_req *rpccli_samr_Connect3_send(TALLOC_CTX *mem_ctx,
923                                              struct tevent_context *ev,
924                                              struct rpc_pipe_client *cli,
925                                              const char *_system_name /* [in] [unique,charset(UTF16)] */,
926                                              uint32_t _unknown /* [in]  */,
927                                              uint32_t _access_mask /* [in]  */,
928                                              struct policy_handle *_connect_handle /* [out] [ref] */);
929 NTSTATUS rpccli_samr_Connect3_recv(struct tevent_req *req,
930                                    TALLOC_CTX *mem_ctx,
931                                    NTSTATUS *result);
932 NTSTATUS rpccli_samr_Connect3(struct rpc_pipe_client *cli,
933                               TALLOC_CTX *mem_ctx,
934                               const char *system_name /* [in] [unique,charset(UTF16)] */,
935                               uint32_t unknown /* [in]  */,
936                               uint32_t access_mask /* [in]  */,
937                               struct policy_handle *connect_handle /* [out] [ref] */);
938 struct tevent_req *rpccli_samr_Connect4_send(TALLOC_CTX *mem_ctx,
939                                              struct tevent_context *ev,
940                                              struct rpc_pipe_client *cli,
941                                              const char *_system_name /* [in] [unique,charset(UTF16)] */,
942                                              enum samr_ConnectVersion _client_version /* [in]  */,
943                                              uint32_t _access_mask /* [in]  */,
944                                              struct policy_handle *_connect_handle /* [out] [ref] */);
945 NTSTATUS rpccli_samr_Connect4_recv(struct tevent_req *req,
946                                    TALLOC_CTX *mem_ctx,
947                                    NTSTATUS *result);
948 NTSTATUS rpccli_samr_Connect4(struct rpc_pipe_client *cli,
949                               TALLOC_CTX *mem_ctx,
950                               const char *system_name /* [in] [unique,charset(UTF16)] */,
951                               enum samr_ConnectVersion client_version /* [in]  */,
952                               uint32_t access_mask /* [in]  */,
953                               struct policy_handle *connect_handle /* [out] [ref] */);
954 struct tevent_req *rpccli_samr_ChangePasswordUser3_send(TALLOC_CTX *mem_ctx,
955                                                         struct tevent_context *ev,
956                                                         struct rpc_pipe_client *cli,
957                                                         struct lsa_String *_server /* [in] [unique] */,
958                                                         struct lsa_String *_account /* [in] [ref] */,
959                                                         struct samr_CryptPassword *_nt_password /* [in] [unique] */,
960                                                         struct samr_Password *_nt_verifier /* [in] [unique] */,
961                                                         uint8_t _lm_change /* [in]  */,
962                                                         struct samr_CryptPassword *_lm_password /* [in] [unique] */,
963                                                         struct samr_Password *_lm_verifier /* [in] [unique] */,
964                                                         struct samr_CryptPassword *_password3 /* [in] [unique] */,
965                                                         struct samr_DomInfo1 **_dominfo /* [out] [ref] */,
966                                                         struct userPwdChangeFailureInformation **_reject /* [out] [ref] */);
967 NTSTATUS rpccli_samr_ChangePasswordUser3_recv(struct tevent_req *req,
968                                               TALLOC_CTX *mem_ctx,
969                                               NTSTATUS *result);
970 NTSTATUS rpccli_samr_ChangePasswordUser3(struct rpc_pipe_client *cli,
971                                          TALLOC_CTX *mem_ctx,
972                                          struct lsa_String *server /* [in] [unique] */,
973                                          struct lsa_String *account /* [in] [ref] */,
974                                          struct samr_CryptPassword *nt_password /* [in] [unique] */,
975                                          struct samr_Password *nt_verifier /* [in] [unique] */,
976                                          uint8_t lm_change /* [in]  */,
977                                          struct samr_CryptPassword *lm_password /* [in] [unique] */,
978                                          struct samr_Password *lm_verifier /* [in] [unique] */,
979                                          struct samr_CryptPassword *password3 /* [in] [unique] */,
980                                          struct samr_DomInfo1 **dominfo /* [out] [ref] */,
981                                          struct userPwdChangeFailureInformation **reject /* [out] [ref] */);
982 struct tevent_req *rpccli_samr_Connect5_send(TALLOC_CTX *mem_ctx,
983                                              struct tevent_context *ev,
984                                              struct rpc_pipe_client *cli,
985                                              const char *_system_name /* [in] [unique,charset(UTF16)] */,
986                                              uint32_t _access_mask /* [in]  */,
987                                              uint32_t _level_in /* [in]  */,
988                                              union samr_ConnectInfo *_info_in /* [in] [ref,switch_is(level_in)] */,
989                                              uint32_t *_level_out /* [out] [ref] */,
990                                              union samr_ConnectInfo *_info_out /* [out] [ref,switch_is(*level_out)] */,
991                                              struct policy_handle *_connect_handle /* [out] [ref] */);
992 NTSTATUS rpccli_samr_Connect5_recv(struct tevent_req *req,
993                                    TALLOC_CTX *mem_ctx,
994                                    NTSTATUS *result);
995 NTSTATUS rpccli_samr_Connect5(struct rpc_pipe_client *cli,
996                               TALLOC_CTX *mem_ctx,
997                               const char *system_name /* [in] [unique,charset(UTF16)] */,
998                               uint32_t access_mask /* [in]  */,
999                               uint32_t level_in /* [in]  */,
1000                               union samr_ConnectInfo *info_in /* [in] [ref,switch_is(level_in)] */,
1001                               uint32_t *level_out /* [out] [ref] */,
1002                               union samr_ConnectInfo *info_out /* [out] [ref,switch_is(*level_out)] */,
1003                               struct policy_handle *connect_handle /* [out] [ref] */);
1004 struct tevent_req *rpccli_samr_RidToSid_send(TALLOC_CTX *mem_ctx,
1005                                              struct tevent_context *ev,
1006                                              struct rpc_pipe_client *cli,
1007                                              struct policy_handle *_domain_handle /* [in] [ref] */,
1008                                              uint32_t _rid /* [in]  */,
1009                                              struct dom_sid2 **_sid /* [out] [ref] */);
1010 NTSTATUS rpccli_samr_RidToSid_recv(struct tevent_req *req,
1011                                    TALLOC_CTX *mem_ctx,
1012                                    NTSTATUS *result);
1013 NTSTATUS rpccli_samr_RidToSid(struct rpc_pipe_client *cli,
1014                               TALLOC_CTX *mem_ctx,
1015                               struct policy_handle *domain_handle /* [in] [ref] */,
1016                               uint32_t rid /* [in]  */,
1017                               struct dom_sid2 **sid /* [out] [ref] */);
1018 struct tevent_req *rpccli_samr_SetDsrmPassword_send(TALLOC_CTX *mem_ctx,
1019                                                     struct tevent_context *ev,
1020                                                     struct rpc_pipe_client *cli,
1021                                                     struct lsa_String *_name /* [in] [unique] */,
1022                                                     uint32_t _unknown /* [in]  */,
1023                                                     struct samr_Password *_hash /* [in] [unique] */);
1024 NTSTATUS rpccli_samr_SetDsrmPassword_recv(struct tevent_req *req,
1025                                           TALLOC_CTX *mem_ctx,
1026                                           NTSTATUS *result);
1027 NTSTATUS rpccli_samr_SetDsrmPassword(struct rpc_pipe_client *cli,
1028                                      TALLOC_CTX *mem_ctx,
1029                                      struct lsa_String *name /* [in] [unique] */,
1030                                      uint32_t unknown /* [in]  */,
1031                                      struct samr_Password *hash /* [in] [unique] */);
1032 struct tevent_req *rpccli_samr_ValidatePassword_send(TALLOC_CTX *mem_ctx,
1033                                                      struct tevent_context *ev,
1034                                                      struct rpc_pipe_client *cli,
1035                                                      enum samr_ValidatePasswordLevel _level /* [in]  */,
1036                                                      union samr_ValidatePasswordReq *_req /* [in] [ref,switch_is(level)] */,
1037                                                      union samr_ValidatePasswordRep **_rep /* [out] [ref,switch_is(level)] */);
1038 NTSTATUS rpccli_samr_ValidatePassword_recv(struct tevent_req *req,
1039                                            TALLOC_CTX *mem_ctx,
1040                                            NTSTATUS *result);
1041 NTSTATUS rpccli_samr_ValidatePassword(struct rpc_pipe_client *cli,
1042                                       TALLOC_CTX *mem_ctx,
1043                                       enum samr_ValidatePasswordLevel level /* [in]  */,
1044                                       union samr_ValidatePasswordReq *req /* [in] [ref,switch_is(level)] */,
1045                                       union samr_ValidatePasswordRep **rep /* [out] [ref,switch_is(level)] */);
1046 #endif /* __CLI_SAMR__ */