2 * Unix SMB/CIFS implementation.
4 * Copyright (C) Guenther Deschner 2007-2008
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __LIBNETAPI_LIBNETAPI__
21 #define __LIBNETAPI_LIBNETAPI__
22 NET_API_STATUS
NetJoinDomain(const char * server
/* [in] [unique] */,
23 const char * domain
/* [in] [ref] */,
24 const char * account_ou
/* [in] [unique] */,
25 const char * account
/* [in] [unique] */,
26 const char * password
/* [in] [unique] */,
27 uint32_t join_flags
/* [in] */);
28 WERROR
NetJoinDomain_r(struct libnetapi_ctx
*ctx
,
29 struct NetJoinDomain
*r
);
30 WERROR
NetJoinDomain_l(struct libnetapi_ctx
*ctx
,
31 struct NetJoinDomain
*r
);
32 NET_API_STATUS
NetUnjoinDomain(const char * server_name
/* [in] [unique] */,
33 const char * account
/* [in] [unique] */,
34 const char * password
/* [in] [unique] */,
35 uint32_t unjoin_flags
/* [in] */);
36 WERROR
NetUnjoinDomain_r(struct libnetapi_ctx
*ctx
,
37 struct NetUnjoinDomain
*r
);
38 WERROR
NetUnjoinDomain_l(struct libnetapi_ctx
*ctx
,
39 struct NetUnjoinDomain
*r
);
40 NET_API_STATUS
NetGetJoinInformation(const char * server_name
/* [in] [unique] */,
41 const char * *name_buffer
/* [out] [ref] */,
42 uint16_t *name_type
/* [out] [ref] */);
43 WERROR
NetGetJoinInformation_r(struct libnetapi_ctx
*ctx
,
44 struct NetGetJoinInformation
*r
);
45 WERROR
NetGetJoinInformation_l(struct libnetapi_ctx
*ctx
,
46 struct NetGetJoinInformation
*r
);
47 NET_API_STATUS
NetGetJoinableOUs(const char * server_name
/* [in] [unique] */,
48 const char * domain
/* [in] [ref] */,
49 const char * account
/* [in] [unique] */,
50 const char * password
/* [in] [unique] */,
51 uint32_t *ou_count
/* [out] [ref] */,
52 const char * **ous
/* [out] [ref] */);
53 WERROR
NetGetJoinableOUs_r(struct libnetapi_ctx
*ctx
,
54 struct NetGetJoinableOUs
*r
);
55 WERROR
NetGetJoinableOUs_l(struct libnetapi_ctx
*ctx
,
56 struct NetGetJoinableOUs
*r
);
57 NET_API_STATUS
NetRenameMachineInDomain(const char * server_name
/* [in] */,
58 const char * new_machine_name
/* [in] */,
59 const char * account
/* [in] */,
60 const char * password
/* [in] */,
61 uint32_t rename_options
/* [in] */);
62 WERROR
NetRenameMachineInDomain_r(struct libnetapi_ctx
*ctx
,
63 struct NetRenameMachineInDomain
*r
);
64 WERROR
NetRenameMachineInDomain_l(struct libnetapi_ctx
*ctx
,
65 struct NetRenameMachineInDomain
*r
);
66 NET_API_STATUS
NetServerGetInfo(const char * server_name
/* [in] [unique] */,
67 uint32_t level
/* [in] */,
68 uint8_t **buffer
/* [out] [ref] */);
69 WERROR
NetServerGetInfo_r(struct libnetapi_ctx
*ctx
,
70 struct NetServerGetInfo
*r
);
71 WERROR
NetServerGetInfo_l(struct libnetapi_ctx
*ctx
,
72 struct NetServerGetInfo
*r
);
73 NET_API_STATUS
NetServerSetInfo(const char * server_name
/* [in] [unique] */,
74 uint32_t level
/* [in] */,
75 uint8_t *buffer
/* [in] [ref] */,
76 uint32_t *parm_error
/* [out] [ref] */);
77 WERROR
NetServerSetInfo_r(struct libnetapi_ctx
*ctx
,
78 struct NetServerSetInfo
*r
);
79 WERROR
NetServerSetInfo_l(struct libnetapi_ctx
*ctx
,
80 struct NetServerSetInfo
*r
);
81 NET_API_STATUS
NetWkstaGetInfo(const char * wksta_name
/* [in] [unique] */,
82 uint32_t level
/* [in] */,
83 uint8_t **buffer
/* [out] [ref] */);
84 WERROR
NetWkstaGetInfo_r(struct libnetapi_ctx
*ctx
,
85 struct NetWkstaGetInfo
*r
);
86 WERROR
NetWkstaGetInfo_l(struct libnetapi_ctx
*ctx
,
87 struct NetWkstaGetInfo
*r
);
88 NET_API_STATUS
NetGetDCName(const char * server_name
/* [in] [unique] */,
89 const char * domain_name
/* [in] [unique] */,
90 uint8_t **buffer
/* [out] [ref] */);
91 WERROR
NetGetDCName_r(struct libnetapi_ctx
*ctx
,
92 struct NetGetDCName
*r
);
93 WERROR
NetGetDCName_l(struct libnetapi_ctx
*ctx
,
94 struct NetGetDCName
*r
);
95 NET_API_STATUS
NetGetAnyDCName(const char * server_name
/* [in] [unique] */,
96 const char * domain_name
/* [in] [unique] */,
97 uint8_t **buffer
/* [out] [ref] */);
98 WERROR
NetGetAnyDCName_r(struct libnetapi_ctx
*ctx
,
99 struct NetGetAnyDCName
*r
);
100 WERROR
NetGetAnyDCName_l(struct libnetapi_ctx
*ctx
,
101 struct NetGetAnyDCName
*r
);
102 NET_API_STATUS
DsGetDcName(const char * server_name
/* [in] [unique] */,
103 const char * domain_name
/* [in] [ref] */,
104 struct GUID
*domain_guid
/* [in] [unique] */,
105 const char * site_name
/* [in] [unique] */,
106 uint32_t flags
/* [in] */,
107 struct DOMAIN_CONTROLLER_INFO
**dc_info
/* [out] [ref] */);
108 WERROR
DsGetDcName_r(struct libnetapi_ctx
*ctx
,
109 struct DsGetDcName
*r
);
110 WERROR
DsGetDcName_l(struct libnetapi_ctx
*ctx
,
111 struct DsGetDcName
*r
);
112 NET_API_STATUS
NetUserAdd(const char * server_name
/* [in] [unique] */,
113 uint32_t level
/* [in] */,
114 uint8_t *buffer
/* [in] [ref] */,
115 uint32_t *parm_error
/* [out] [ref] */);
116 WERROR
NetUserAdd_r(struct libnetapi_ctx
*ctx
,
117 struct NetUserAdd
*r
);
118 WERROR
NetUserAdd_l(struct libnetapi_ctx
*ctx
,
119 struct NetUserAdd
*r
);
120 NET_API_STATUS
NetUserDel(const char * server_name
/* [in] [unique] */,
121 const char * user_name
/* [in] [ref] */);
122 WERROR
NetUserDel_r(struct libnetapi_ctx
*ctx
,
123 struct NetUserDel
*r
);
124 WERROR
NetUserDel_l(struct libnetapi_ctx
*ctx
,
125 struct NetUserDel
*r
);
126 NET_API_STATUS
NetUserEnum(const char * server_name
/* [in] [unique] */,
127 uint32_t level
/* [in] */,
128 uint32_t filter
/* [in] */,
129 uint8_t **buffer
/* [out] [ref] */,
130 uint32_t prefmaxlen
/* [in] */,
131 uint32_t *entries_read
/* [out] [ref] */,
132 uint32_t *total_entries
/* [out] [ref] */,
133 uint32_t *resume_handle
/* [in,out] [ref] */);
134 WERROR
NetUserEnum_r(struct libnetapi_ctx
*ctx
,
135 struct NetUserEnum
*r
);
136 WERROR
NetUserEnum_l(struct libnetapi_ctx
*ctx
,
137 struct NetUserEnum
*r
);
138 NET_API_STATUS
NetUserChangePassword(const char * domain_name
/* [in] */,
139 const char * user_name
/* [in] */,
140 const char * old_password
/* [in] */,
141 const char * new_password
/* [in] */);
142 WERROR
NetUserChangePassword_r(struct libnetapi_ctx
*ctx
,
143 struct NetUserChangePassword
*r
);
144 WERROR
NetUserChangePassword_l(struct libnetapi_ctx
*ctx
,
145 struct NetUserChangePassword
*r
);
146 NET_API_STATUS
NetUserGetInfo(const char * server_name
/* [in] */,
147 const char * user_name
/* [in] */,
148 uint32_t level
/* [in] */,
149 uint8_t **buffer
/* [out] [ref] */);
150 WERROR
NetUserGetInfo_r(struct libnetapi_ctx
*ctx
,
151 struct NetUserGetInfo
*r
);
152 WERROR
NetUserGetInfo_l(struct libnetapi_ctx
*ctx
,
153 struct NetUserGetInfo
*r
);
154 NET_API_STATUS
NetUserSetInfo(const char * server_name
/* [in] */,
155 const char * user_name
/* [in] */,
156 uint32_t level
/* [in] */,
157 uint8_t *buffer
/* [in] [ref] */,
158 uint32_t *parm_err
/* [out] [ref] */);
159 WERROR
NetUserSetInfo_r(struct libnetapi_ctx
*ctx
,
160 struct NetUserSetInfo
*r
);
161 WERROR
NetUserSetInfo_l(struct libnetapi_ctx
*ctx
,
162 struct NetUserSetInfo
*r
);
163 NET_API_STATUS
NetUserGetGroups(const char * server_name
/* [in] */,
164 const char * user_name
/* [in] */,
165 uint32_t level
/* [in] */,
166 uint8_t **buffer
/* [out] [ref] */,
167 uint32_t prefmaxlen
/* [in] */,
168 uint32_t *entries_read
/* [out] [ref] */,
169 uint32_t *total_entries
/* [out] [ref] */);
170 WERROR
NetUserGetGroups_r(struct libnetapi_ctx
*ctx
,
171 struct NetUserGetGroups
*r
);
172 WERROR
NetUserGetGroups_l(struct libnetapi_ctx
*ctx
,
173 struct NetUserGetGroups
*r
);
174 NET_API_STATUS
NetUserSetGroups(const char * server_name
/* [in] */,
175 const char * user_name
/* [in] */,
176 uint32_t level
/* [in] */,
177 uint8_t *buffer
/* [in] [ref] */,
178 uint32_t num_entries
/* [in] */);
179 WERROR
NetUserSetGroups_r(struct libnetapi_ctx
*ctx
,
180 struct NetUserSetGroups
*r
);
181 WERROR
NetUserSetGroups_l(struct libnetapi_ctx
*ctx
,
182 struct NetUserSetGroups
*r
);
183 NET_API_STATUS
NetUserGetLocalGroups(const char * server_name
/* [in] */,
184 const char * user_name
/* [in] */,
185 uint32_t level
/* [in] */,
186 uint32_t flags
/* [in] */,
187 uint8_t **buffer
/* [out] [ref] */,
188 uint32_t prefmaxlen
/* [in] */,
189 uint32_t *entries_read
/* [out] [ref] */,
190 uint32_t *total_entries
/* [out] [ref] */);
191 WERROR
NetUserGetLocalGroups_r(struct libnetapi_ctx
*ctx
,
192 struct NetUserGetLocalGroups
*r
);
193 WERROR
NetUserGetLocalGroups_l(struct libnetapi_ctx
*ctx
,
194 struct NetUserGetLocalGroups
*r
);
195 NET_API_STATUS
NetUserModalsGet(const char * server_name
/* [in] */,
196 uint32_t level
/* [in] */,
197 uint8_t **buffer
/* [out] [ref] */);
198 WERROR
NetUserModalsGet_r(struct libnetapi_ctx
*ctx
,
199 struct NetUserModalsGet
*r
);
200 WERROR
NetUserModalsGet_l(struct libnetapi_ctx
*ctx
,
201 struct NetUserModalsGet
*r
);
202 NET_API_STATUS
NetUserModalsSet(const char * server_name
/* [in] */,
203 uint32_t level
/* [in] */,
204 uint8_t *buffer
/* [in] [ref] */,
205 uint32_t *parm_err
/* [out] [ref] */);
206 WERROR
NetUserModalsSet_r(struct libnetapi_ctx
*ctx
,
207 struct NetUserModalsSet
*r
);
208 WERROR
NetUserModalsSet_l(struct libnetapi_ctx
*ctx
,
209 struct NetUserModalsSet
*r
);
210 NET_API_STATUS
NetQueryDisplayInformation(const char * server_name
/* [in] [unique] */,
211 uint32_t level
/* [in] */,
212 uint32_t idx
/* [in] */,
213 uint32_t entries_requested
/* [in] */,
214 uint32_t prefmaxlen
/* [in] */,
215 uint32_t *entries_read
/* [out] [ref] */,
216 void **buffer
/* [out] [noprint,ref] */);
217 WERROR
NetQueryDisplayInformation_r(struct libnetapi_ctx
*ctx
,
218 struct NetQueryDisplayInformation
*r
);
219 WERROR
NetQueryDisplayInformation_l(struct libnetapi_ctx
*ctx
,
220 struct NetQueryDisplayInformation
*r
);
221 NET_API_STATUS
NetGroupAdd(const char * server_name
/* [in] */,
222 uint32_t level
/* [in] */,
223 uint8_t *buffer
/* [in] [ref] */,
224 uint32_t *parm_err
/* [out] [ref] */);
225 WERROR
NetGroupAdd_r(struct libnetapi_ctx
*ctx
,
226 struct NetGroupAdd
*r
);
227 WERROR
NetGroupAdd_l(struct libnetapi_ctx
*ctx
,
228 struct NetGroupAdd
*r
);
229 NET_API_STATUS
NetGroupDel(const char * server_name
/* [in] */,
230 const char * group_name
/* [in] */);
231 WERROR
NetGroupDel_r(struct libnetapi_ctx
*ctx
,
232 struct NetGroupDel
*r
);
233 WERROR
NetGroupDel_l(struct libnetapi_ctx
*ctx
,
234 struct NetGroupDel
*r
);
235 NET_API_STATUS
NetGroupEnum(const char * server_name
/* [in] */,
236 uint32_t level
/* [in] */,
237 uint8_t **buffer
/* [out] [ref] */,
238 uint32_t prefmaxlen
/* [in] */,
239 uint32_t *entries_read
/* [out] [ref] */,
240 uint32_t *total_entries
/* [out] [ref] */,
241 uint32_t *resume_handle
/* [in,out] [ref] */);
242 WERROR
NetGroupEnum_r(struct libnetapi_ctx
*ctx
,
243 struct NetGroupEnum
*r
);
244 WERROR
NetGroupEnum_l(struct libnetapi_ctx
*ctx
,
245 struct NetGroupEnum
*r
);
246 NET_API_STATUS
NetGroupSetInfo(const char * server_name
/* [in] */,
247 const char * group_name
/* [in] */,
248 uint32_t level
/* [in] */,
249 uint8_t *buffer
/* [in] [ref] */,
250 uint32_t *parm_err
/* [out] [ref] */);
251 WERROR
NetGroupSetInfo_r(struct libnetapi_ctx
*ctx
,
252 struct NetGroupSetInfo
*r
);
253 WERROR
NetGroupSetInfo_l(struct libnetapi_ctx
*ctx
,
254 struct NetGroupSetInfo
*r
);
255 NET_API_STATUS
NetGroupGetInfo(const char * server_name
/* [in] */,
256 const char * group_name
/* [in] */,
257 uint32_t level
/* [in] */,
258 uint8_t **buffer
/* [out] [ref] */);
259 WERROR
NetGroupGetInfo_r(struct libnetapi_ctx
*ctx
,
260 struct NetGroupGetInfo
*r
);
261 WERROR
NetGroupGetInfo_l(struct libnetapi_ctx
*ctx
,
262 struct NetGroupGetInfo
*r
);
263 NET_API_STATUS
NetGroupAddUser(const char * server_name
/* [in] */,
264 const char * group_name
/* [in] */,
265 const char * user_name
/* [in] */);
266 WERROR
NetGroupAddUser_r(struct libnetapi_ctx
*ctx
,
267 struct NetGroupAddUser
*r
);
268 WERROR
NetGroupAddUser_l(struct libnetapi_ctx
*ctx
,
269 struct NetGroupAddUser
*r
);
270 NET_API_STATUS
NetGroupDelUser(const char * server_name
/* [in] */,
271 const char * group_name
/* [in] */,
272 const char * user_name
/* [in] */);
273 WERROR
NetGroupDelUser_r(struct libnetapi_ctx
*ctx
,
274 struct NetGroupDelUser
*r
);
275 WERROR
NetGroupDelUser_l(struct libnetapi_ctx
*ctx
,
276 struct NetGroupDelUser
*r
);
277 NET_API_STATUS
NetGroupGetUsers(const char * server_name
/* [in] */,
278 const char * group_name
/* [in] */,
279 uint32_t level
/* [in] */,
280 uint8_t **buffer
/* [out] [ref] */,
281 uint32_t prefmaxlen
/* [in] */,
282 uint32_t *entries_read
/* [out] [ref] */,
283 uint32_t *total_entries
/* [out] [ref] */,
284 uint32_t *resume_handle
/* [in,out] [ref] */);
285 WERROR
NetGroupGetUsers_r(struct libnetapi_ctx
*ctx
,
286 struct NetGroupGetUsers
*r
);
287 WERROR
NetGroupGetUsers_l(struct libnetapi_ctx
*ctx
,
288 struct NetGroupGetUsers
*r
);
289 NET_API_STATUS
NetGroupSetUsers(const char * server_name
/* [in] */,
290 const char * group_name
/* [in] */,
291 uint32_t level
/* [in] */,
292 uint8_t *buffer
/* [in] [ref] */,
293 uint32_t num_entries
/* [in] */);
294 WERROR
NetGroupSetUsers_r(struct libnetapi_ctx
*ctx
,
295 struct NetGroupSetUsers
*r
);
296 WERROR
NetGroupSetUsers_l(struct libnetapi_ctx
*ctx
,
297 struct NetGroupSetUsers
*r
);
298 NET_API_STATUS
NetLocalGroupAdd(const char * server_name
/* [in] */,
299 uint32_t level
/* [in] */,
300 uint8_t *buffer
/* [in] [ref] */,
301 uint32_t *parm_err
/* [out] [ref] */);
302 WERROR
NetLocalGroupAdd_r(struct libnetapi_ctx
*ctx
,
303 struct NetLocalGroupAdd
*r
);
304 WERROR
NetLocalGroupAdd_l(struct libnetapi_ctx
*ctx
,
305 struct NetLocalGroupAdd
*r
);
306 NET_API_STATUS
NetLocalGroupDel(const char * server_name
/* [in] */,
307 const char * group_name
/* [in] */);
308 WERROR
NetLocalGroupDel_r(struct libnetapi_ctx
*ctx
,
309 struct NetLocalGroupDel
*r
);
310 WERROR
NetLocalGroupDel_l(struct libnetapi_ctx
*ctx
,
311 struct NetLocalGroupDel
*r
);
312 NET_API_STATUS
NetLocalGroupGetInfo(const char * server_name
/* [in] */,
313 const char * group_name
/* [in] */,
314 uint32_t level
/* [in] */,
315 uint8_t **buffer
/* [out] [ref] */);
316 WERROR
NetLocalGroupGetInfo_r(struct libnetapi_ctx
*ctx
,
317 struct NetLocalGroupGetInfo
*r
);
318 WERROR
NetLocalGroupGetInfo_l(struct libnetapi_ctx
*ctx
,
319 struct NetLocalGroupGetInfo
*r
);
320 NET_API_STATUS
NetLocalGroupSetInfo(const char * server_name
/* [in] */,
321 const char * group_name
/* [in] */,
322 uint32_t level
/* [in] */,
323 uint8_t *buffer
/* [in] [ref] */,
324 uint32_t *parm_err
/* [out] [ref] */);
325 WERROR
NetLocalGroupSetInfo_r(struct libnetapi_ctx
*ctx
,
326 struct NetLocalGroupSetInfo
*r
);
327 WERROR
NetLocalGroupSetInfo_l(struct libnetapi_ctx
*ctx
,
328 struct NetLocalGroupSetInfo
*r
);
329 NET_API_STATUS
NetLocalGroupEnum(const char * server_name
/* [in] */,
330 uint32_t level
/* [in] */,
331 uint8_t **buffer
/* [out] [ref] */,
332 uint32_t prefmaxlen
/* [in] */,
333 uint32_t *entries_read
/* [out] [ref] */,
334 uint32_t *total_entries
/* [out] [ref] */,
335 uint32_t *resume_handle
/* [in,out] [ref] */);
336 WERROR
NetLocalGroupEnum_r(struct libnetapi_ctx
*ctx
,
337 struct NetLocalGroupEnum
*r
);
338 WERROR
NetLocalGroupEnum_l(struct libnetapi_ctx
*ctx
,
339 struct NetLocalGroupEnum
*r
);
340 NET_API_STATUS
NetLocalGroupAddMembers(const char * server_name
/* [in] */,
341 const char * group_name
/* [in] */,
342 uint32_t level
/* [in] */,
343 uint8_t *buffer
/* [in] [ref] */,
344 uint32_t total_entries
/* [in] */);
345 WERROR
NetLocalGroupAddMembers_r(struct libnetapi_ctx
*ctx
,
346 struct NetLocalGroupAddMembers
*r
);
347 WERROR
NetLocalGroupAddMembers_l(struct libnetapi_ctx
*ctx
,
348 struct NetLocalGroupAddMembers
*r
);
349 NET_API_STATUS
NetLocalGroupDelMembers(const char * server_name
/* [in] */,
350 const char * group_name
/* [in] */,
351 uint32_t level
/* [in] */,
352 uint8_t *buffer
/* [in] [ref] */,
353 uint32_t total_entries
/* [in] */);
354 WERROR
NetLocalGroupDelMembers_r(struct libnetapi_ctx
*ctx
,
355 struct NetLocalGroupDelMembers
*r
);
356 WERROR
NetLocalGroupDelMembers_l(struct libnetapi_ctx
*ctx
,
357 struct NetLocalGroupDelMembers
*r
);
358 NET_API_STATUS
NetLocalGroupGetMembers(const char * server_name
/* [in] */,
359 const char * local_group_name
/* [in] */,
360 uint32_t level
/* [in] */,
361 uint8_t **buffer
/* [out] [ref] */,
362 uint32_t prefmaxlen
/* [in] */,
363 uint32_t *entries_read
/* [out] [ref] */,
364 uint32_t *total_entries
/* [out] [ref] */,
365 uint32_t *resume_handle
/* [in,out] [ref] */);
366 WERROR
NetLocalGroupGetMembers_r(struct libnetapi_ctx
*ctx
,
367 struct NetLocalGroupGetMembers
*r
);
368 WERROR
NetLocalGroupGetMembers_l(struct libnetapi_ctx
*ctx
,
369 struct NetLocalGroupGetMembers
*r
);
370 NET_API_STATUS
NetLocalGroupSetMembers(const char * server_name
/* [in] */,
371 const char * group_name
/* [in] */,
372 uint32_t level
/* [in] */,
373 uint8_t *buffer
/* [in] [ref] */,
374 uint32_t total_entries
/* [in] */);
375 WERROR
NetLocalGroupSetMembers_r(struct libnetapi_ctx
*ctx
,
376 struct NetLocalGroupSetMembers
*r
);
377 WERROR
NetLocalGroupSetMembers_l(struct libnetapi_ctx
*ctx
,
378 struct NetLocalGroupSetMembers
*r
);
379 NET_API_STATUS
NetRemoteTOD(const char * server_name
/* [in] */,
380 uint8_t **buffer
/* [out] [ref] */);
381 WERROR
NetRemoteTOD_r(struct libnetapi_ctx
*ctx
,
382 struct NetRemoteTOD
*r
);
383 WERROR
NetRemoteTOD_l(struct libnetapi_ctx
*ctx
,
384 struct NetRemoteTOD
*r
);
385 NET_API_STATUS
NetShareAdd(const char * server_name
/* [in] */,
386 uint32_t level
/* [in] */,
387 uint8_t *buffer
/* [in] [ref] */,
388 uint32_t *parm_err
/* [out] [ref] */);
389 WERROR
NetShareAdd_r(struct libnetapi_ctx
*ctx
,
390 struct NetShareAdd
*r
);
391 WERROR
NetShareAdd_l(struct libnetapi_ctx
*ctx
,
392 struct NetShareAdd
*r
);
393 NET_API_STATUS
NetShareDel(const char * server_name
/* [in] */,
394 const char * net_name
/* [in] */,
395 uint32_t reserved
/* [in] */);
396 WERROR
NetShareDel_r(struct libnetapi_ctx
*ctx
,
397 struct NetShareDel
*r
);
398 WERROR
NetShareDel_l(struct libnetapi_ctx
*ctx
,
399 struct NetShareDel
*r
);
400 NET_API_STATUS
NetShareEnum(const char * server_name
/* [in] */,
401 uint32_t level
/* [in] */,
402 uint8_t **buffer
/* [out] [ref] */,
403 uint32_t prefmaxlen
/* [in] */,
404 uint32_t *entries_read
/* [out] [ref] */,
405 uint32_t *total_entries
/* [out] [ref] */,
406 uint32_t *resume_handle
/* [in,out] [ref] */);
407 WERROR
NetShareEnum_r(struct libnetapi_ctx
*ctx
,
408 struct NetShareEnum
*r
);
409 WERROR
NetShareEnum_l(struct libnetapi_ctx
*ctx
,
410 struct NetShareEnum
*r
);
411 NET_API_STATUS
NetShareGetInfo(const char * server_name
/* [in] */,
412 const char * net_name
/* [in] */,
413 uint32_t level
/* [in] */,
414 uint8_t **buffer
/* [out] [ref] */);
415 WERROR
NetShareGetInfo_r(struct libnetapi_ctx
*ctx
,
416 struct NetShareGetInfo
*r
);
417 WERROR
NetShareGetInfo_l(struct libnetapi_ctx
*ctx
,
418 struct NetShareGetInfo
*r
);
419 NET_API_STATUS
NetShareSetInfo(const char * server_name
/* [in] */,
420 const char * net_name
/* [in] */,
421 uint32_t level
/* [in] */,
422 uint8_t *buffer
/* [in] [ref] */,
423 uint32_t *parm_err
/* [out] [ref] */);
424 WERROR
NetShareSetInfo_r(struct libnetapi_ctx
*ctx
,
425 struct NetShareSetInfo
*r
);
426 WERROR
NetShareSetInfo_l(struct libnetapi_ctx
*ctx
,
427 struct NetShareSetInfo
*r
);
428 NET_API_STATUS
NetFileClose(const char * server_name
/* [in] */,
429 uint32_t fileid
/* [in] */);
430 WERROR
NetFileClose_r(struct libnetapi_ctx
*ctx
,
431 struct NetFileClose
*r
);
432 WERROR
NetFileClose_l(struct libnetapi_ctx
*ctx
,
433 struct NetFileClose
*r
);
434 NET_API_STATUS
NetFileGetInfo(const char * server_name
/* [in] */,
435 uint32_t fileid
/* [in] */,
436 uint32_t level
/* [in] */,
437 uint8_t **buffer
/* [out] [ref] */);
438 WERROR
NetFileGetInfo_r(struct libnetapi_ctx
*ctx
,
439 struct NetFileGetInfo
*r
);
440 WERROR
NetFileGetInfo_l(struct libnetapi_ctx
*ctx
,
441 struct NetFileGetInfo
*r
);
442 NET_API_STATUS
NetFileEnum(const char * server_name
/* [in] */,
443 const char * base_path
/* [in] */,
444 const char * user_name
/* [in] */,
445 uint32_t level
/* [in] */,
446 uint8_t **buffer
/* [out] [ref] */,
447 uint32_t prefmaxlen
/* [in] */,
448 uint32_t *entries_read
/* [out] [ref] */,
449 uint32_t *total_entries
/* [out] [ref] */,
450 uint32_t *resume_handle
/* [in,out] [ref] */);
451 WERROR
NetFileEnum_r(struct libnetapi_ctx
*ctx
,
452 struct NetFileEnum
*r
);
453 WERROR
NetFileEnum_l(struct libnetapi_ctx
*ctx
,
454 struct NetFileEnum
*r
);
455 NET_API_STATUS
NetShutdownInit(const char * server_name
/* [in] */,
456 const char * message
/* [in] */,
457 uint32_t timeout
/* [in] */,
458 uint8_t force_apps
/* [in] */,
459 uint8_t do_reboot
/* [in] */);
460 WERROR
NetShutdownInit_r(struct libnetapi_ctx
*ctx
,
461 struct NetShutdownInit
*r
);
462 WERROR
NetShutdownInit_l(struct libnetapi_ctx
*ctx
,
463 struct NetShutdownInit
*r
);
464 NET_API_STATUS
NetShutdownAbort(const char * server_name
/* [in] */);
465 WERROR
NetShutdownAbort_r(struct libnetapi_ctx
*ctx
,
466 struct NetShutdownAbort
*r
);
467 WERROR
NetShutdownAbort_l(struct libnetapi_ctx
*ctx
,
468 struct NetShutdownAbort
*r
);
469 NET_API_STATUS
I_NetLogonControl(const char * server_name
/* [in] */,
470 uint32_t function_code
/* [in] */,
471 uint32_t query_level
/* [in] */,
472 uint8_t **buffer
/* [out] [ref] */);
473 WERROR
I_NetLogonControl_r(struct libnetapi_ctx
*ctx
,
474 struct I_NetLogonControl
*r
);
475 WERROR
I_NetLogonControl_l(struct libnetapi_ctx
*ctx
,
476 struct I_NetLogonControl
*r
);
477 NET_API_STATUS
I_NetLogonControl2(const char * server_name
/* [in] */,
478 uint32_t function_code
/* [in] */,
479 uint32_t query_level
/* [in] */,
480 uint8_t *data
/* [in] [ref] */,
481 uint8_t **buffer
/* [out] [ref] */);
482 WERROR
I_NetLogonControl2_r(struct libnetapi_ctx
*ctx
,
483 struct I_NetLogonControl2
*r
);
484 WERROR
I_NetLogonControl2_l(struct libnetapi_ctx
*ctx
,
485 struct I_NetLogonControl2
*r
);
486 #endif /* __LIBNETAPI_LIBNETAPI__ */