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
NetServerGetInfo(const char * server_name
/* [in] [unique] */,
39 uint32_t level
/* [in] */,
40 uint8_t **buffer
/* [out] [ref] */);
41 WERROR
NetServerGetInfo_r(struct libnetapi_ctx
*ctx
,
42 struct NetServerGetInfo
*r
);
43 WERROR
NetServerGetInfo_l(struct libnetapi_ctx
*ctx
,
44 struct NetServerGetInfo
*r
);
45 NET_API_STATUS
NetServerSetInfo(const char * server_name
/* [in] [unique] */,
46 uint32_t level
/* [in] */,
47 uint8_t *buffer
/* [in] [ref] */,
48 uint32_t *parm_error
/* [out] [ref] */);
49 WERROR
NetServerSetInfo_r(struct libnetapi_ctx
*ctx
,
50 struct NetServerSetInfo
*r
);
51 WERROR
NetServerSetInfo_l(struct libnetapi_ctx
*ctx
,
52 struct NetServerSetInfo
*r
);
53 NET_API_STATUS
NetGetDCName(const char * server_name
/* [in] [unique] */,
54 const char * domain_name
/* [in] [unique] */,
55 uint8_t **buffer
/* [out] [ref] */);
56 WERROR
NetGetDCName_r(struct libnetapi_ctx
*ctx
,
57 struct NetGetDCName
*r
);
58 WERROR
NetGetDCName_l(struct libnetapi_ctx
*ctx
,
59 struct NetGetDCName
*r
);
60 NET_API_STATUS
NetGetAnyDCName(const char * server_name
/* [in] [unique] */,
61 const char * domain_name
/* [in] [unique] */,
62 uint8_t **buffer
/* [out] [ref] */);
63 WERROR
NetGetAnyDCName_r(struct libnetapi_ctx
*ctx
,
64 struct NetGetAnyDCName
*r
);
65 WERROR
NetGetAnyDCName_l(struct libnetapi_ctx
*ctx
,
66 struct NetGetAnyDCName
*r
);
67 NET_API_STATUS
DsGetDcName(const char * server_name
/* [in] [unique] */,
68 const char * domain_name
/* [in] [ref] */,
69 struct GUID
*domain_guid
/* [in] [unique] */,
70 const char * site_name
/* [in] [unique] */,
71 uint32_t flags
/* [in] */,
72 struct DOMAIN_CONTROLLER_INFO
**dc_info
/* [out] [ref] */);
73 WERROR
DsGetDcName_r(struct libnetapi_ctx
*ctx
,
74 struct DsGetDcName
*r
);
75 WERROR
DsGetDcName_l(struct libnetapi_ctx
*ctx
,
76 struct DsGetDcName
*r
);
77 NET_API_STATUS
NetUserAdd(const char * server_name
/* [in] [unique] */,
78 uint32_t level
/* [in] */,
79 uint8_t *buffer
/* [in] [ref] */,
80 uint32_t *parm_error
/* [out] [ref] */);
81 WERROR
NetUserAdd_r(struct libnetapi_ctx
*ctx
,
82 struct NetUserAdd
*r
);
83 WERROR
NetUserAdd_l(struct libnetapi_ctx
*ctx
,
84 struct NetUserAdd
*r
);
85 NET_API_STATUS
NetUserDel(const char * server_name
/* [in] [unique] */,
86 const char * user_name
/* [in] [ref] */);
87 WERROR
NetUserDel_r(struct libnetapi_ctx
*ctx
,
88 struct NetUserDel
*r
);
89 WERROR
NetUserDel_l(struct libnetapi_ctx
*ctx
,
90 struct NetUserDel
*r
);
91 NET_API_STATUS
NetUserEnum(const char * server_name
/* [in] [unique] */,
92 uint32_t level
/* [in] */,
93 uint32_t filter
/* [in] */,
94 uint8_t **buffer
/* [out] [ref] */,
95 uint32_t prefmaxlen
/* [in] */,
96 uint32_t *entries_read
/* [out] [ref] */,
97 uint32_t *total_entries
/* [out] [ref] */,
98 uint32_t *resume_handle
/* [in,out] [ref] */);
99 WERROR
NetUserEnum_r(struct libnetapi_ctx
*ctx
,
100 struct NetUserEnum
*r
);
101 WERROR
NetUserEnum_l(struct libnetapi_ctx
*ctx
,
102 struct NetUserEnum
*r
);
103 NET_API_STATUS
NetUserChangePassword(const char * domain_name
/* [in] */,
104 const char * user_name
/* [in] */,
105 const char * old_password
/* [in] */,
106 const char * new_password
/* [in] */);
107 WERROR
NetUserChangePassword_r(struct libnetapi_ctx
*ctx
,
108 struct NetUserChangePassword
*r
);
109 WERROR
NetUserChangePassword_l(struct libnetapi_ctx
*ctx
,
110 struct NetUserChangePassword
*r
);
111 NET_API_STATUS
NetUserGetInfo(const char * server_name
/* [in] */,
112 const char * user_name
/* [in] */,
113 uint32_t level
/* [in] */,
114 uint8_t **buffer
/* [out] [ref] */);
115 WERROR
NetUserGetInfo_r(struct libnetapi_ctx
*ctx
,
116 struct NetUserGetInfo
*r
);
117 WERROR
NetUserGetInfo_l(struct libnetapi_ctx
*ctx
,
118 struct NetUserGetInfo
*r
);
119 NET_API_STATUS
NetUserSetInfo(const char * server_name
/* [in] */,
120 const char * user_name
/* [in] */,
121 uint32_t level
/* [in] */,
122 uint8_t *buffer
/* [in] [ref] */,
123 uint32_t *parm_err
/* [out] [ref] */);
124 WERROR
NetUserSetInfo_r(struct libnetapi_ctx
*ctx
,
125 struct NetUserSetInfo
*r
);
126 WERROR
NetUserSetInfo_l(struct libnetapi_ctx
*ctx
,
127 struct NetUserSetInfo
*r
);
128 NET_API_STATUS
NetUserGetGroups(const char * server_name
/* [in] */,
129 const char * user_name
/* [in] */,
130 uint32_t level
/* [in] */,
131 uint8_t **buffer
/* [out] [ref] */,
132 uint32_t prefmaxlen
/* [in] */,
133 uint32_t *entries_read
/* [out] [ref] */,
134 uint32_t *total_entries
/* [out] [ref] */);
135 WERROR
NetUserGetGroups_r(struct libnetapi_ctx
*ctx
,
136 struct NetUserGetGroups
*r
);
137 WERROR
NetUserGetGroups_l(struct libnetapi_ctx
*ctx
,
138 struct NetUserGetGroups
*r
);
139 NET_API_STATUS
NetUserModalsGet(const char * server_name
/* [in] */,
140 uint32_t level
/* [in] */,
141 uint8_t **buffer
/* [out] [ref] */);
142 WERROR
NetUserModalsGet_r(struct libnetapi_ctx
*ctx
,
143 struct NetUserModalsGet
*r
);
144 WERROR
NetUserModalsGet_l(struct libnetapi_ctx
*ctx
,
145 struct NetUserModalsGet
*r
);
146 NET_API_STATUS
NetUserModalsSet(const char * server_name
/* [in] */,
147 uint32_t level
/* [in] */,
148 uint8_t *buffer
/* [in] [ref] */,
149 uint32_t *parm_err
/* [out] [ref] */);
150 WERROR
NetUserModalsSet_r(struct libnetapi_ctx
*ctx
,
151 struct NetUserModalsSet
*r
);
152 WERROR
NetUserModalsSet_l(struct libnetapi_ctx
*ctx
,
153 struct NetUserModalsSet
*r
);
154 NET_API_STATUS
NetQueryDisplayInformation(const char * server_name
/* [in] [unique] */,
155 uint32_t level
/* [in] */,
156 uint32_t idx
/* [in] */,
157 uint32_t entries_requested
/* [in] */,
158 uint32_t prefmaxlen
/* [in] */,
159 uint32_t *entries_read
/* [out] [ref] */,
160 void **buffer
/* [out] [noprint,ref] */);
161 WERROR
NetQueryDisplayInformation_r(struct libnetapi_ctx
*ctx
,
162 struct NetQueryDisplayInformation
*r
);
163 WERROR
NetQueryDisplayInformation_l(struct libnetapi_ctx
*ctx
,
164 struct NetQueryDisplayInformation
*r
);
165 NET_API_STATUS
NetGroupAdd(const char * server_name
/* [in] */,
166 uint32_t level
/* [in] */,
167 uint8_t *buffer
/* [in] [ref] */,
168 uint32_t *parm_err
/* [out] [ref] */);
169 WERROR
NetGroupAdd_r(struct libnetapi_ctx
*ctx
,
170 struct NetGroupAdd
*r
);
171 WERROR
NetGroupAdd_l(struct libnetapi_ctx
*ctx
,
172 struct NetGroupAdd
*r
);
173 NET_API_STATUS
NetGroupDel(const char * server_name
/* [in] */,
174 const char * group_name
/* [in] */);
175 WERROR
NetGroupDel_r(struct libnetapi_ctx
*ctx
,
176 struct NetGroupDel
*r
);
177 WERROR
NetGroupDel_l(struct libnetapi_ctx
*ctx
,
178 struct NetGroupDel
*r
);
179 NET_API_STATUS
NetGroupEnum(const char * server_name
/* [in] */,
180 uint32_t level
/* [in] */,
181 uint8_t **buffer
/* [out] [ref] */,
182 uint32_t prefmaxlen
/* [in] */,
183 uint32_t *entries_read
/* [out] [ref] */,
184 uint32_t *total_entries
/* [out] [ref] */,
185 uint32_t *resume_handle
/* [in,out] [ref] */);
186 WERROR
NetGroupEnum_r(struct libnetapi_ctx
*ctx
,
187 struct NetGroupEnum
*r
);
188 WERROR
NetGroupEnum_l(struct libnetapi_ctx
*ctx
,
189 struct NetGroupEnum
*r
);
190 NET_API_STATUS
NetGroupSetInfo(const char * server_name
/* [in] */,
191 const char * group_name
/* [in] */,
192 uint32_t level
/* [in] */,
193 uint8_t *buffer
/* [in] [ref] */,
194 uint32_t *parm_err
/* [out] [ref] */);
195 WERROR
NetGroupSetInfo_r(struct libnetapi_ctx
*ctx
,
196 struct NetGroupSetInfo
*r
);
197 WERROR
NetGroupSetInfo_l(struct libnetapi_ctx
*ctx
,
198 struct NetGroupSetInfo
*r
);
199 NET_API_STATUS
NetGroupGetInfo(const char * server_name
/* [in] */,
200 const char * group_name
/* [in] */,
201 uint32_t level
/* [in] */,
202 uint8_t **buffer
/* [out] [ref] */);
203 WERROR
NetGroupGetInfo_r(struct libnetapi_ctx
*ctx
,
204 struct NetGroupGetInfo
*r
);
205 WERROR
NetGroupGetInfo_l(struct libnetapi_ctx
*ctx
,
206 struct NetGroupGetInfo
*r
);
207 NET_API_STATUS
NetGroupAddUser(const char * server_name
/* [in] */,
208 const char * group_name
/* [in] */,
209 const char * user_name
/* [in] */);
210 WERROR
NetGroupAddUser_r(struct libnetapi_ctx
*ctx
,
211 struct NetGroupAddUser
*r
);
212 WERROR
NetGroupAddUser_l(struct libnetapi_ctx
*ctx
,
213 struct NetGroupAddUser
*r
);
214 NET_API_STATUS
NetGroupDelUser(const char * server_name
/* [in] */,
215 const char * group_name
/* [in] */,
216 const char * user_name
/* [in] */);
217 WERROR
NetGroupDelUser_r(struct libnetapi_ctx
*ctx
,
218 struct NetGroupDelUser
*r
);
219 WERROR
NetGroupDelUser_l(struct libnetapi_ctx
*ctx
,
220 struct NetGroupDelUser
*r
);
221 NET_API_STATUS
NetGroupGetUsers(const char * server_name
/* [in] */,
222 const char * group_name
/* [in] */,
223 uint32_t level
/* [in] */,
224 uint8_t **buffer
/* [out] [ref] */,
225 uint32_t prefmaxlen
/* [in] */,
226 uint32_t *entries_read
/* [out] [ref] */,
227 uint32_t *total_entries
/* [out] [ref] */,
228 uint32_t *resume_handle
/* [in,out] [ref] */);
229 WERROR
NetGroupGetUsers_r(struct libnetapi_ctx
*ctx
,
230 struct NetGroupGetUsers
*r
);
231 WERROR
NetGroupGetUsers_l(struct libnetapi_ctx
*ctx
,
232 struct NetGroupGetUsers
*r
);
233 NET_API_STATUS
NetLocalGroupAdd(const char * server_name
/* [in] */,
234 uint32_t level
/* [in] */,
235 uint8_t *buffer
/* [in] [ref] */,
236 uint32_t *parm_err
/* [out] [ref] */);
237 WERROR
NetLocalGroupAdd_r(struct libnetapi_ctx
*ctx
,
238 struct NetLocalGroupAdd
*r
);
239 WERROR
NetLocalGroupAdd_l(struct libnetapi_ctx
*ctx
,
240 struct NetLocalGroupAdd
*r
);
241 NET_API_STATUS
NetLocalGroupDel(const char * server_name
/* [in] */,
242 const char * group_name
/* [in] */);
243 WERROR
NetLocalGroupDel_r(struct libnetapi_ctx
*ctx
,
244 struct NetLocalGroupDel
*r
);
245 WERROR
NetLocalGroupDel_l(struct libnetapi_ctx
*ctx
,
246 struct NetLocalGroupDel
*r
);
247 NET_API_STATUS
NetLocalGroupGetInfo(const char * server_name
/* [in] */,
248 const char * group_name
/* [in] */,
249 uint32_t level
/* [in] */,
250 uint8_t **buffer
/* [out] [ref] */);
251 WERROR
NetLocalGroupGetInfo_r(struct libnetapi_ctx
*ctx
,
252 struct NetLocalGroupGetInfo
*r
);
253 WERROR
NetLocalGroupGetInfo_l(struct libnetapi_ctx
*ctx
,
254 struct NetLocalGroupGetInfo
*r
);
255 NET_API_STATUS
NetLocalGroupSetInfo(const char * server_name
/* [in] */,
256 const char * group_name
/* [in] */,
257 uint32_t level
/* [in] */,
258 uint8_t *buffer
/* [in] [ref] */,
259 uint32_t *parm_err
/* [out] [ref] */);
260 WERROR
NetLocalGroupSetInfo_r(struct libnetapi_ctx
*ctx
,
261 struct NetLocalGroupSetInfo
*r
);
262 WERROR
NetLocalGroupSetInfo_l(struct libnetapi_ctx
*ctx
,
263 struct NetLocalGroupSetInfo
*r
);
264 NET_API_STATUS
NetLocalGroupEnum(const char * server_name
/* [in] */,
265 uint32_t level
/* [in] */,
266 uint8_t **buffer
/* [out] [ref] */,
267 uint32_t prefmaxlen
/* [in] */,
268 uint32_t *entries_read
/* [out] [ref] */,
269 uint32_t *total_entries
/* [out] [ref] */,
270 uint32_t *resume_handle
/* [in,out] [ref] */);
271 WERROR
NetLocalGroupEnum_r(struct libnetapi_ctx
*ctx
,
272 struct NetLocalGroupEnum
*r
);
273 WERROR
NetLocalGroupEnum_l(struct libnetapi_ctx
*ctx
,
274 struct NetLocalGroupEnum
*r
);
275 NET_API_STATUS
NetLocalGroupAddMembers(const char * server_name
/* [in] */,
276 const char * group_name
/* [in] */,
277 uint32_t level
/* [in] */,
278 uint8_t *buffer
/* [in] [ref] */,
279 uint32_t total_entries
/* [in] */);
280 WERROR
NetLocalGroupAddMembers_r(struct libnetapi_ctx
*ctx
,
281 struct NetLocalGroupAddMembers
*r
);
282 WERROR
NetLocalGroupAddMembers_l(struct libnetapi_ctx
*ctx
,
283 struct NetLocalGroupAddMembers
*r
);
284 NET_API_STATUS
NetLocalGroupDelMembers(const char * server_name
/* [in] */,
285 const char * group_name
/* [in] */,
286 uint32_t level
/* [in] */,
287 uint8_t *buffer
/* [in] [ref] */,
288 uint32_t total_entries
/* [in] */);
289 WERROR
NetLocalGroupDelMembers_r(struct libnetapi_ctx
*ctx
,
290 struct NetLocalGroupDelMembers
*r
);
291 WERROR
NetLocalGroupDelMembers_l(struct libnetapi_ctx
*ctx
,
292 struct NetLocalGroupDelMembers
*r
);
293 NET_API_STATUS
NetLocalGroupGetMembers(const char * server_name
/* [in] */,
294 const char * local_group_name
/* [in] */,
295 uint32_t level
/* [in] */,
296 uint8_t **buffer
/* [out] [ref] */,
297 uint32_t prefmaxlen
/* [in] */,
298 uint32_t *entries_read
/* [out] [ref] */,
299 uint32_t *total_entries
/* [out] [ref] */,
300 uint32_t *resume_handle
/* [in,out] [ref] */);
301 WERROR
NetLocalGroupGetMembers_r(struct libnetapi_ctx
*ctx
,
302 struct NetLocalGroupGetMembers
*r
);
303 WERROR
NetLocalGroupGetMembers_l(struct libnetapi_ctx
*ctx
,
304 struct NetLocalGroupGetMembers
*r
);
305 NET_API_STATUS
NetLocalGroupSetMembers(const char * server_name
/* [in] */,
306 const char * group_name
/* [in] */,
307 uint32_t level
/* [in] */,
308 uint8_t *buffer
/* [in] [ref] */,
309 uint32_t total_entries
/* [in] */);
310 WERROR
NetLocalGroupSetMembers_r(struct libnetapi_ctx
*ctx
,
311 struct NetLocalGroupSetMembers
*r
);
312 WERROR
NetLocalGroupSetMembers_l(struct libnetapi_ctx
*ctx
,
313 struct NetLocalGroupSetMembers
*r
);
314 NET_API_STATUS
NetRemoteTOD(const char * server_name
/* [in] */,
315 uint8_t **buffer
/* [out] [ref] */);
316 WERROR
NetRemoteTOD_r(struct libnetapi_ctx
*ctx
,
317 struct NetRemoteTOD
*r
);
318 WERROR
NetRemoteTOD_l(struct libnetapi_ctx
*ctx
,
319 struct NetRemoteTOD
*r
);
320 #endif /* __LIBNETAPI_LIBNETAPI__ */