s3-build: re-run make samba3-idl.
[ira/wip.git] / source3 / lib / netapi / libnetapi.h
1 #ifndef __LIBNETAPI_LIBNETAPI__
2 #define __LIBNETAPI_LIBNETAPI__
3 NET_API_STATUS NetJoinDomain(const char * server /* [in] [unique] */,
4                              const char * domain /* [in] [ref] */,
5                              const char * account_ou /* [in] [unique] */,
6                              const char * account /* [in] [unique] */,
7                              const char * password /* [in] [unique] */,
8                              uint32_t join_flags /* [in] */);
9 WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
10                        struct NetJoinDomain *r);
11 WERROR NetJoinDomain_l(struct libnetapi_ctx *ctx,
12                        struct NetJoinDomain *r);
13 NET_API_STATUS NetUnjoinDomain(const char * server_name /* [in] [unique] */,
14                                const char * account /* [in] [unique] */,
15                                const char * password /* [in] [unique] */,
16                                uint32_t unjoin_flags /* [in] */);
17 WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
18                          struct NetUnjoinDomain *r);
19 WERROR NetUnjoinDomain_l(struct libnetapi_ctx *ctx,
20                          struct NetUnjoinDomain *r);
21 NET_API_STATUS NetGetJoinInformation(const char * server_name /* [in] [unique] */,
22                                      const char * *name_buffer /* [out] [ref] */,
23                                      uint16_t *name_type /* [out] [ref] */);
24 WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
25                                struct NetGetJoinInformation *r);
26 WERROR NetGetJoinInformation_l(struct libnetapi_ctx *ctx,
27                                struct NetGetJoinInformation *r);
28 NET_API_STATUS NetGetJoinableOUs(const char * server_name /* [in] [unique] */,
29                                  const char * domain /* [in] [ref] */,
30                                  const char * account /* [in] [unique] */,
31                                  const char * password /* [in] [unique] */,
32                                  uint32_t *ou_count /* [out] [ref] */,
33                                  const char * **ous /* [out] [ref] */);
34 WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
35                            struct NetGetJoinableOUs *r);
36 WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
37                            struct NetGetJoinableOUs *r);
38 NET_API_STATUS NetRenameMachineInDomain(const char * server_name /* [in] */,
39                                         const char * new_machine_name /* [in] */,
40                                         const char * account /* [in] */,
41                                         const char * password /* [in] */,
42                                         uint32_t rename_options /* [in] */);
43 WERROR NetRenameMachineInDomain_r(struct libnetapi_ctx *ctx,
44                                   struct NetRenameMachineInDomain *r);
45 WERROR NetRenameMachineInDomain_l(struct libnetapi_ctx *ctx,
46                                   struct NetRenameMachineInDomain *r);
47 NET_API_STATUS NetServerGetInfo(const char * server_name /* [in] [unique] */,
48                                 uint32_t level /* [in] */,
49                                 uint8_t **buffer /* [out] [ref] */);
50 WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
51                           struct NetServerGetInfo *r);
52 WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
53                           struct NetServerGetInfo *r);
54 NET_API_STATUS NetServerSetInfo(const char * server_name /* [in] [unique] */,
55                                 uint32_t level /* [in] */,
56                                 uint8_t *buffer /* [in] [ref] */,
57                                 uint32_t *parm_error /* [out] [ref] */);
58 WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
59                           struct NetServerSetInfo *r);
60 WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
61                           struct NetServerSetInfo *r);
62 NET_API_STATUS NetGetDCName(const char * server_name /* [in] [unique] */,
63                             const char * domain_name /* [in] [unique] */,
64                             uint8_t **buffer /* [out] [ref] */);
65 WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
66                       struct NetGetDCName *r);
67 WERROR NetGetDCName_l(struct libnetapi_ctx *ctx,
68                       struct NetGetDCName *r);
69 NET_API_STATUS NetGetAnyDCName(const char * server_name /* [in] [unique] */,
70                                const char * domain_name /* [in] [unique] */,
71                                uint8_t **buffer /* [out] [ref] */);
72 WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx,
73                          struct NetGetAnyDCName *r);
74 WERROR NetGetAnyDCName_l(struct libnetapi_ctx *ctx,
75                          struct NetGetAnyDCName *r);
76 NET_API_STATUS DsGetDcName(const char * server_name /* [in] [unique] */,
77                            const char * domain_name /* [in] [ref] */,
78                            struct GUID *domain_guid /* [in] [unique] */,
79                            const char * site_name /* [in] [unique] */,
80                            uint32_t flags /* [in] */,
81                            struct DOMAIN_CONTROLLER_INFO **dc_info /* [out] [ref] */);
82 WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
83                      struct DsGetDcName *r);
84 WERROR DsGetDcName_l(struct libnetapi_ctx *ctx,
85                      struct DsGetDcName *r);
86 NET_API_STATUS NetUserAdd(const char * server_name /* [in] [unique] */,
87                           uint32_t level /* [in] */,
88                           uint8_t *buffer /* [in] [ref] */,
89                           uint32_t *parm_error /* [out] [ref] */);
90 WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
91                     struct NetUserAdd *r);
92 WERROR NetUserAdd_l(struct libnetapi_ctx *ctx,
93                     struct NetUserAdd *r);
94 NET_API_STATUS NetUserDel(const char * server_name /* [in] [unique] */,
95                           const char * user_name /* [in] [ref] */);
96 WERROR NetUserDel_r(struct libnetapi_ctx *ctx,
97                     struct NetUserDel *r);
98 WERROR NetUserDel_l(struct libnetapi_ctx *ctx,
99                     struct NetUserDel *r);
100 NET_API_STATUS NetUserEnum(const char * server_name /* [in] [unique] */,
101                            uint32_t level /* [in] */,
102                            uint32_t filter /* [in] */,
103                            uint8_t **buffer /* [out] [ref] */,
104                            uint32_t prefmaxlen /* [in] */,
105                            uint32_t *entries_read /* [out] [ref] */,
106                            uint32_t *total_entries /* [out] [ref] */,
107                            uint32_t *resume_handle /* [in,out] [ref] */);
108 WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
109                      struct NetUserEnum *r);
110 WERROR NetUserEnum_l(struct libnetapi_ctx *ctx,
111                      struct NetUserEnum *r);
112 NET_API_STATUS NetUserChangePassword(const char * domain_name /* [in] */,
113                                      const char * user_name /* [in] */,
114                                      const char * old_password /* [in] */,
115                                      const char * new_password /* [in] */);
116 WERROR NetUserChangePassword_r(struct libnetapi_ctx *ctx,
117                                struct NetUserChangePassword *r);
118 WERROR NetUserChangePassword_l(struct libnetapi_ctx *ctx,
119                                struct NetUserChangePassword *r);
120 NET_API_STATUS NetUserGetInfo(const char * server_name /* [in] */,
121                               const char * user_name /* [in] */,
122                               uint32_t level /* [in] */,
123                               uint8_t **buffer /* [out] [ref] */);
124 WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
125                         struct NetUserGetInfo *r);
126 WERROR NetUserGetInfo_l(struct libnetapi_ctx *ctx,
127                         struct NetUserGetInfo *r);
128 NET_API_STATUS NetUserSetInfo(const char * server_name /* [in] */,
129                               const char * user_name /* [in] */,
130                               uint32_t level /* [in] */,
131                               uint8_t *buffer /* [in] [ref] */,
132                               uint32_t *parm_err /* [out] [ref] */);
133 WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
134                         struct NetUserSetInfo *r);
135 WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
136                         struct NetUserSetInfo *r);
137 NET_API_STATUS NetUserGetGroups(const char * server_name /* [in] */,
138                                 const char * user_name /* [in] */,
139                                 uint32_t level /* [in] */,
140                                 uint8_t **buffer /* [out] [ref] */,
141                                 uint32_t prefmaxlen /* [in] */,
142                                 uint32_t *entries_read /* [out] [ref] */,
143                                 uint32_t *total_entries /* [out] [ref] */);
144 WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
145                           struct NetUserGetGroups *r);
146 WERROR NetUserGetGroups_l(struct libnetapi_ctx *ctx,
147                           struct NetUserGetGroups *r);
148 NET_API_STATUS NetUserSetGroups(const char * server_name /* [in] */,
149                                 const char * user_name /* [in] */,
150                                 uint32_t level /* [in] */,
151                                 uint8_t *buffer /* [in] [ref] */,
152                                 uint32_t num_entries /* [in] */);
153 WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
154                           struct NetUserSetGroups *r);
155 WERROR NetUserSetGroups_l(struct libnetapi_ctx *ctx,
156                           struct NetUserSetGroups *r);
157 NET_API_STATUS NetUserGetLocalGroups(const char * server_name /* [in] */,
158                                      const char * user_name /* [in] */,
159                                      uint32_t level /* [in] */,
160                                      uint32_t flags /* [in] */,
161                                      uint8_t **buffer /* [out] [ref] */,
162                                      uint32_t prefmaxlen /* [in] */,
163                                      uint32_t *entries_read /* [out] [ref] */,
164                                      uint32_t *total_entries /* [out] [ref] */);
165 WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx,
166                                struct NetUserGetLocalGroups *r);
167 WERROR NetUserGetLocalGroups_l(struct libnetapi_ctx *ctx,
168                                struct NetUserGetLocalGroups *r);
169 NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
170                                 uint32_t level /* [in] */,
171                                 uint8_t **buffer /* [out] [ref] */);
172 WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
173                           struct NetUserModalsGet *r);
174 WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx,
175                           struct NetUserModalsGet *r);
176 NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
177                                 uint32_t level /* [in] */,
178                                 uint8_t *buffer /* [in] [ref] */,
179                                 uint32_t *parm_err /* [out] [ref] */);
180 WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
181                           struct NetUserModalsSet *r);
182 WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx,
183                           struct NetUserModalsSet *r);
184 NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
185                                           uint32_t level /* [in] */,
186                                           uint32_t idx /* [in] */,
187                                           uint32_t entries_requested /* [in] */,
188                                           uint32_t prefmaxlen /* [in] */,
189                                           uint32_t *entries_read /* [out] [ref] */,
190                                           void **buffer /* [out] [noprint,ref] */);
191 WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
192                                     struct NetQueryDisplayInformation *r);
193 WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx,
194                                     struct NetQueryDisplayInformation *r);
195 NET_API_STATUS NetGroupAdd(const char * server_name /* [in] */,
196                            uint32_t level /* [in] */,
197                            uint8_t *buffer /* [in] [ref] */,
198                            uint32_t *parm_err /* [out] [ref] */);
199 WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx,
200                      struct NetGroupAdd *r);
201 WERROR NetGroupAdd_l(struct libnetapi_ctx *ctx,
202                      struct NetGroupAdd *r);
203 NET_API_STATUS NetGroupDel(const char * server_name /* [in] */,
204                            const char * group_name /* [in] */);
205 WERROR NetGroupDel_r(struct libnetapi_ctx *ctx,
206                      struct NetGroupDel *r);
207 WERROR NetGroupDel_l(struct libnetapi_ctx *ctx,
208                      struct NetGroupDel *r);
209 NET_API_STATUS NetGroupEnum(const char * server_name /* [in] */,
210                             uint32_t level /* [in] */,
211                             uint8_t **buffer /* [out] [ref] */,
212                             uint32_t prefmaxlen /* [in] */,
213                             uint32_t *entries_read /* [out] [ref] */,
214                             uint32_t *total_entries /* [out] [ref] */,
215                             uint32_t *resume_handle /* [in,out] [ref] */);
216 WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx,
217                       struct NetGroupEnum *r);
218 WERROR NetGroupEnum_l(struct libnetapi_ctx *ctx,
219                       struct NetGroupEnum *r);
220 NET_API_STATUS NetGroupSetInfo(const char * server_name /* [in] */,
221                                const char * group_name /* [in] */,
222                                uint32_t level /* [in] */,
223                                uint8_t *buffer /* [in] [ref] */,
224                                uint32_t *parm_err /* [out] [ref] */);
225 WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx,
226                          struct NetGroupSetInfo *r);
227 WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx,
228                          struct NetGroupSetInfo *r);
229 NET_API_STATUS NetGroupGetInfo(const char * server_name /* [in] */,
230                                const char * group_name /* [in] */,
231                                uint32_t level /* [in] */,
232                                uint8_t **buffer /* [out] [ref] */);
233 WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx,
234                          struct NetGroupGetInfo *r);
235 WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx,
236                          struct NetGroupGetInfo *r);
237 NET_API_STATUS NetGroupAddUser(const char * server_name /* [in] */,
238                                const char * group_name /* [in] */,
239                                const char * user_name /* [in] */);
240 WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx,
241                          struct NetGroupAddUser *r);
242 WERROR NetGroupAddUser_l(struct libnetapi_ctx *ctx,
243                          struct NetGroupAddUser *r);
244 NET_API_STATUS NetGroupDelUser(const char * server_name /* [in] */,
245                                const char * group_name /* [in] */,
246                                const char * user_name /* [in] */);
247 WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx,
248                          struct NetGroupDelUser *r);
249 WERROR NetGroupDelUser_l(struct libnetapi_ctx *ctx,
250                          struct NetGroupDelUser *r);
251 NET_API_STATUS NetGroupGetUsers(const char * server_name /* [in] */,
252                                 const char * group_name /* [in] */,
253                                 uint32_t level /* [in] */,
254                                 uint8_t **buffer /* [out] [ref] */,
255                                 uint32_t prefmaxlen /* [in] */,
256                                 uint32_t *entries_read /* [out] [ref] */,
257                                 uint32_t *total_entries /* [out] [ref] */,
258                                 uint32_t *resume_handle /* [in,out] [ref] */);
259 WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
260                           struct NetGroupGetUsers *r);
261 WERROR NetGroupGetUsers_l(struct libnetapi_ctx *ctx,
262                           struct NetGroupGetUsers *r);
263 NET_API_STATUS NetGroupSetUsers(const char * server_name /* [in] */,
264                                 const char * group_name /* [in] */,
265                                 uint32_t level /* [in] */,
266                                 uint8_t *buffer /* [in] [ref] */,
267                                 uint32_t num_entries /* [in] */);
268 WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
269                           struct NetGroupSetUsers *r);
270 WERROR NetGroupSetUsers_l(struct libnetapi_ctx *ctx,
271                           struct NetGroupSetUsers *r);
272 NET_API_STATUS NetLocalGroupAdd(const char * server_name /* [in] */,
273                                 uint32_t level /* [in] */,
274                                 uint8_t *buffer /* [in] [ref] */,
275                                 uint32_t *parm_err /* [out] [ref] */);
276 WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
277                           struct NetLocalGroupAdd *r);
278 WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx,
279                           struct NetLocalGroupAdd *r);
280 NET_API_STATUS NetLocalGroupDel(const char * server_name /* [in] */,
281                                 const char * group_name /* [in] */);
282 WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
283                           struct NetLocalGroupDel *r);
284 WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
285                           struct NetLocalGroupDel *r);
286 NET_API_STATUS NetLocalGroupGetInfo(const char * server_name /* [in] */,
287                                     const char * group_name /* [in] */,
288                                     uint32_t level /* [in] */,
289                                     uint8_t **buffer /* [out] [ref] */);
290 WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
291                               struct NetLocalGroupGetInfo *r);
292 WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
293                               struct NetLocalGroupGetInfo *r);
294 NET_API_STATUS NetLocalGroupSetInfo(const char * server_name /* [in] */,
295                                     const char * group_name /* [in] */,
296                                     uint32_t level /* [in] */,
297                                     uint8_t *buffer /* [in] [ref] */,
298                                     uint32_t *parm_err /* [out] [ref] */);
299 WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
300                               struct NetLocalGroupSetInfo *r);
301 WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx,
302                               struct NetLocalGroupSetInfo *r);
303 NET_API_STATUS NetLocalGroupEnum(const char * server_name /* [in] */,
304                                  uint32_t level /* [in] */,
305                                  uint8_t **buffer /* [out] [ref] */,
306                                  uint32_t prefmaxlen /* [in] */,
307                                  uint32_t *entries_read /* [out] [ref] */,
308                                  uint32_t *total_entries /* [out] [ref] */,
309                                  uint32_t *resume_handle /* [in,out] [ref] */);
310 WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx,
311                            struct NetLocalGroupEnum *r);
312 WERROR NetLocalGroupEnum_l(struct libnetapi_ctx *ctx,
313                            struct NetLocalGroupEnum *r);
314 NET_API_STATUS NetLocalGroupAddMembers(const char * server_name /* [in] */,
315                                        const char * group_name /* [in] */,
316                                        uint32_t level /* [in] */,
317                                        uint8_t *buffer /* [in] [ref] */,
318                                        uint32_t total_entries /* [in] */);
319 WERROR NetLocalGroupAddMembers_r(struct libnetapi_ctx *ctx,
320                                  struct NetLocalGroupAddMembers *r);
321 WERROR NetLocalGroupAddMembers_l(struct libnetapi_ctx *ctx,
322                                  struct NetLocalGroupAddMembers *r);
323 NET_API_STATUS NetLocalGroupDelMembers(const char * server_name /* [in] */,
324                                        const char * group_name /* [in] */,
325                                        uint32_t level /* [in] */,
326                                        uint8_t *buffer /* [in] [ref] */,
327                                        uint32_t total_entries /* [in] */);
328 WERROR NetLocalGroupDelMembers_r(struct libnetapi_ctx *ctx,
329                                  struct NetLocalGroupDelMembers *r);
330 WERROR NetLocalGroupDelMembers_l(struct libnetapi_ctx *ctx,
331                                  struct NetLocalGroupDelMembers *r);
332 NET_API_STATUS NetLocalGroupGetMembers(const char * server_name /* [in] */,
333                                        const char * local_group_name /* [in] */,
334                                        uint32_t level /* [in] */,
335                                        uint8_t **buffer /* [out] [ref] */,
336                                        uint32_t prefmaxlen /* [in] */,
337                                        uint32_t *entries_read /* [out] [ref] */,
338                                        uint32_t *total_entries /* [out] [ref] */,
339                                        uint32_t *resume_handle /* [in,out] [ref] */);
340 WERROR NetLocalGroupGetMembers_r(struct libnetapi_ctx *ctx,
341                                  struct NetLocalGroupGetMembers *r);
342 WERROR NetLocalGroupGetMembers_l(struct libnetapi_ctx *ctx,
343                                  struct NetLocalGroupGetMembers *r);
344 NET_API_STATUS NetLocalGroupSetMembers(const char * server_name /* [in] */,
345                                        const char * group_name /* [in] */,
346                                        uint32_t level /* [in] */,
347                                        uint8_t *buffer /* [in] [ref] */,
348                                        uint32_t total_entries /* [in] */);
349 WERROR NetLocalGroupSetMembers_r(struct libnetapi_ctx *ctx,
350                                  struct NetLocalGroupSetMembers *r);
351 WERROR NetLocalGroupSetMembers_l(struct libnetapi_ctx *ctx,
352                                  struct NetLocalGroupSetMembers *r);
353 NET_API_STATUS NetRemoteTOD(const char * server_name /* [in] */,
354                             uint8_t **buffer /* [out] [ref] */);
355 WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx,
356                       struct NetRemoteTOD *r);
357 WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx,
358                       struct NetRemoteTOD *r);
359 NET_API_STATUS NetShareAdd(const char * server_name /* [in] */,
360                            uint32_t level /* [in] */,
361                            uint8_t *buffer /* [in] [ref] */,
362                            uint32_t *parm_err /* [out] [ref] */);
363 WERROR NetShareAdd_r(struct libnetapi_ctx *ctx,
364                      struct NetShareAdd *r);
365 WERROR NetShareAdd_l(struct libnetapi_ctx *ctx,
366                      struct NetShareAdd *r);
367 NET_API_STATUS NetShareDel(const char * server_name /* [in] */,
368                            const char * net_name /* [in] */,
369                            uint32_t reserved /* [in] */);
370 WERROR NetShareDel_r(struct libnetapi_ctx *ctx,
371                      struct NetShareDel *r);
372 WERROR NetShareDel_l(struct libnetapi_ctx *ctx,
373                      struct NetShareDel *r);
374 NET_API_STATUS NetShareEnum(const char * server_name /* [in] */,
375                             uint32_t level /* [in] */,
376                             uint8_t **buffer /* [out] [ref] */,
377                             uint32_t prefmaxlen /* [in] */,
378                             uint32_t *entries_read /* [out] [ref] */,
379                             uint32_t *total_entries /* [out] [ref] */,
380                             uint32_t *resume_handle /* [in,out] [ref] */);
381 WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
382                       struct NetShareEnum *r);
383 WERROR NetShareEnum_l(struct libnetapi_ctx *ctx,
384                       struct NetShareEnum *r);
385 NET_API_STATUS NetShareGetInfo(const char * server_name /* [in] */,
386                                const char * net_name /* [in] */,
387                                uint32_t level /* [in] */,
388                                uint8_t **buffer /* [out] [ref] */);
389 WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx,
390                          struct NetShareGetInfo *r);
391 WERROR NetShareGetInfo_l(struct libnetapi_ctx *ctx,
392                          struct NetShareGetInfo *r);
393 NET_API_STATUS NetShareSetInfo(const char * server_name /* [in] */,
394                                const char * net_name /* [in] */,
395                                uint32_t level /* [in] */,
396                                uint8_t *buffer /* [in] [ref] */,
397                                uint32_t *parm_err /* [out] [ref] */);
398 WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx,
399                          struct NetShareSetInfo *r);
400 WERROR NetShareSetInfo_l(struct libnetapi_ctx *ctx,
401                          struct NetShareSetInfo *r);
402 NET_API_STATUS NetFileClose(const char * server_name /* [in] */,
403                             uint32_t fileid /* [in] */);
404 WERROR NetFileClose_r(struct libnetapi_ctx *ctx,
405                       struct NetFileClose *r);
406 WERROR NetFileClose_l(struct libnetapi_ctx *ctx,
407                       struct NetFileClose *r);
408 NET_API_STATUS NetFileGetInfo(const char * server_name /* [in] */,
409                               uint32_t fileid /* [in] */,
410                               uint32_t level /* [in] */,
411                               uint8_t **buffer /* [out] [ref] */);
412 WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx,
413                         struct NetFileGetInfo *r);
414 WERROR NetFileGetInfo_l(struct libnetapi_ctx *ctx,
415                         struct NetFileGetInfo *r);
416 NET_API_STATUS NetFileEnum(const char * server_name /* [in] */,
417                            const char * base_path /* [in] */,
418                            const char * user_name /* [in] */,
419                            uint32_t level /* [in] */,
420                            uint8_t **buffer /* [out] [ref] */,
421                            uint32_t prefmaxlen /* [in] */,
422                            uint32_t *entries_read /* [out] [ref] */,
423                            uint32_t *total_entries /* [out] [ref] */,
424                            uint32_t *resume_handle /* [in,out] [ref] */);
425 WERROR NetFileEnum_r(struct libnetapi_ctx *ctx,
426                      struct NetFileEnum *r);
427 WERROR NetFileEnum_l(struct libnetapi_ctx *ctx,
428                      struct NetFileEnum *r);
429 #endif /* __LIBNETAPI_LIBNETAPI__ */