1 /* header auto-generated by pidl */
5 #define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))
7 #define MAXSUBAUTHS 15 /* max sub authorities in a SID */
9 #ifndef _HEADER_libnetapi
10 #define _HEADER_libnetapi
12 #define ERROR_MORE_DATA ( 234L )
13 #define FILTER_TEMP_DUPLICATE_ACCOUNT ( 0x0001 )
14 #define FILTER_NORMAL_ACCOUNT ( 0x0002 )
15 #define FILTER_INTERDOMAIN_TRUST_ACCOUNT ( 0x0008 )
16 #define FILTER_WORKSTATION_TRUST_ACCOUNT ( 0x0010 )
17 #define FILTER_SERVER_TRUST_ACCOUNT ( 0x0020 )
19 #ifndef USE_UINT_ENUMS
24 { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
25 #define NERR_Success ( 0 )
36 struct SERVER_INFO_1005 {
37 const char * sv1005_comment;
40 struct DOMAIN_CONTROLLER_INFO {
41 const char * domain_controller_name;
42 const char * domain_controller_address;
43 uint32_t domain_controller_address_type;
44 struct GUID domain_guid;
45 const char * domain_name;
46 const char * dns_forest_name;
48 const char * dc_site_name;
49 const char * client_site_name;
53 const char * usri0_name;
57 const char * usri1_name;
58 const char * usri1_password;
59 uint32_t usri1_password_age;
61 const char * usri1_home_dir;
62 const char * usri1_comment;
64 const char * usri1_script_path;
67 struct NET_DISPLAY_USER {
68 const char * usri1_name;
69 const char * usri1_comment;
71 const char * usri1_full_name;
72 uint32_t usri1_user_id;
73 uint32_t usri1_next_index;
76 struct NET_DISPLAY_MACHINE {
77 const char * usri2_name;
78 const char * usri2_comment;
80 uint32_t usri2_user_id;
81 uint32_t usri2_next_index;
84 struct NET_DISPLAY_GROUP {
85 const char * grpi3_name;
86 const char * grpi3_comment;
87 uint32_t grpi3_group_id;
88 uint32_t grpi3_attributes;
89 uint32_t grpi3_next_index;
93 const char * grpi0_name;
97 const char * grpi1_name;
98 const char * grpi1_comment;
101 struct GROUP_INFO_2 {
102 const char * grpi2_name;
103 const char * grpi2_comment;
104 uint32_t grpi2_group_id;
105 uint32_t grpi2_attributes;
108 struct GROUP_INFO_3 {
109 const char * grpi3_name;
110 const char * grpi3_comment;
111 struct domsid grpi3_group_sid;
112 uint32_t grpi3_attributes;
115 struct GROUP_INFO_1002 {
116 const char * grpi1002_comment;
119 struct GROUP_INFO_1005 {
120 uint32_t grpi1005_attributes;
123 struct LOCALGROUP_INFO_0 {
124 const char * lgrpi0_name;
127 struct LOCALGROUP_INFO_1 {
128 const char * lgrpi1_name;
129 const char * lgrpi1_comment;
132 struct LOCALGROUP_INFO_1002 {
133 const char * lgrpi1002_comment;
136 struct TIME_OF_DAY_INFO {
137 uint32_t tod_elapsedt;
143 int32_t tod_timezone;
144 uint32_t tod_tinterval;
148 uint32_t tod_weekday;
152 struct NetJoinDomain {
154 const char * server;/* [unique] */
155 const char * domain;/* [ref] */
156 const char * account_ou;/* [unique] */
157 const char * account;/* [unique] */
158 const char * password;/* [unique] */
163 enum NET_API_STATUS result;
169 struct NetUnjoinDomain {
171 const char * server_name;/* [unique] */
172 const char * account;/* [unique] */
173 const char * password;/* [unique] */
174 uint32_t unjoin_flags;
178 enum NET_API_STATUS result;
184 struct NetGetJoinInformation {
186 const char * server_name;/* [unique] */
190 const char * *name_buffer;/* [ref] */
191 uint16_t *name_type;/* [ref] */
192 enum NET_API_STATUS result;
198 struct NetGetJoinableOUs {
200 const char * server_name;/* [unique] */
201 const char * domain;/* [ref] */
202 const char * account;/* [unique] */
203 const char * password;/* [unique] */
207 uint32_t *ou_count;/* [ref] */
208 const char * **ous;/* [ref] */
209 enum NET_API_STATUS result;
215 struct NetServerGetInfo {
217 const char * server_name;/* [unique] */
222 uint8_t **buffer;/* [ref] */
223 enum NET_API_STATUS result;
229 struct NetServerSetInfo {
231 const char * server_name;/* [unique] */
233 uint8_t *buffer;/* [ref] */
237 uint32_t *parm_error;/* [ref] */
238 enum NET_API_STATUS result;
244 struct NetGetDCName {
246 const char * server_name;/* [unique] */
247 const char * domain_name;/* [unique] */
251 uint8_t **buffer;/* [ref] */
252 enum NET_API_STATUS result;
258 struct NetGetAnyDCName {
260 const char * server_name;/* [unique] */
261 const char * domain_name;/* [unique] */
265 uint8_t **buffer;/* [ref] */
266 enum NET_API_STATUS result;
274 const char * server_name;/* [unique] */
275 const char * domain_name;/* [ref] */
276 struct GUID *domain_guid;/* [unique] */
277 const char * site_name;/* [unique] */
282 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
283 enum NET_API_STATUS result;
291 const char * server_name;/* [unique] */
293 uint8_t *buffer;/* [ref] */
297 uint32_t *parm_error;/* [ref] */
298 enum NET_API_STATUS result;
306 const char * server_name;/* [unique] */
307 const char * user_name;/* [ref] */
311 enum NET_API_STATUS result;
319 const char * server_name;/* [unique] */
323 uint32_t *resume_handle;/* [ref] */
327 uint8_t **buffer;/* [ref] */
328 uint32_t *entries_read;/* [ref] */
329 uint32_t *total_entries;/* [ref] */
330 uint32_t *resume_handle;/* [ref] */
331 enum NET_API_STATUS result;
337 struct NetQueryDisplayInformation {
339 const char * server_name;/* [unique] */
342 uint32_t entries_requested;
347 uint32_t *entries_read;/* [ref] */
348 void **buffer;/* [noprint,ref] */
349 enum NET_API_STATUS result;
357 const char * server_name;
359 uint8_t *buf;/* [ref] */
363 uint32_t *parm_err;/* [ref] */
364 enum NET_API_STATUS result;
372 const char * server_name;
373 const char * group_name;
377 enum NET_API_STATUS result;
383 struct NetGroupSetInfo {
385 const char * server_name;
386 const char * group_name;
388 uint8_t *buf;/* [ref] */
392 uint32_t *parm_err;/* [ref] */
393 enum NET_API_STATUS result;
399 struct NetGroupGetInfo {
401 const char * server_name;
402 const char * group_name;
407 uint8_t **buf;/* [ref] */
408 enum NET_API_STATUS result;
414 struct NetGroupAddUser {
416 const char * server_name;
417 const char * group_name;
418 const char * user_name;
422 enum NET_API_STATUS result;
428 struct NetGroupDelUser {
430 const char * server_name;
431 const char * group_name;
432 const char * user_name;
436 enum NET_API_STATUS result;
442 struct NetLocalGroupAdd {
444 const char * server_name;
446 uint8_t *buf;/* [ref] */
450 uint32_t *parm_err;/* [ref] */
451 enum NET_API_STATUS result;
457 struct NetLocalGroupDel {
459 const char * server_name;
460 const char * group_name;
464 enum NET_API_STATUS result;
470 struct NetLocalGroupGetInfo {
472 const char * server_name;
473 const char * group_name;
478 uint8_t **buf;/* [ref] */
479 enum NET_API_STATUS result;
485 struct NetLocalGroupSetInfo {
487 const char * server_name;
488 const char * group_name;
490 uint8_t *buf;/* [ref] */
494 uint32_t *parm_err;/* [ref] */
495 enum NET_API_STATUS result;
501 struct NetRemoteTOD {
503 const char * server_name;
507 uint8_t **buf;/* [ref] */
508 enum NET_API_STATUS result;
513 #endif /* _HEADER_libnetapi */