re-run make idl.
[amitay/samba.git] / source3 / librpc / gen_ndr / libnetapi.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))
6 #ifndef MAXSUBAUTHS
7 #define MAXSUBAUTHS 15 /* max sub authorities in a SID */
8 #endif
9 #ifndef _HEADER_libnetapi
10 #define _HEADER_libnetapi
11
12 #define ERROR_MORE_DATA ( 234L )
13 #define USER_PRIV_GUEST ( 0 )
14 #define USER_PRIV_USER  ( 1 )
15 #define USER_PRIV_ADMIN ( 2 )
16 #define AF_OP_PRINT     ( 0x1 )
17 #define AF_OP_COMM      ( 0x2 )
18 #define AF_OP_SERVER    ( 0x4 )
19 #define AF_OP_ACCOUNTS  ( 0x8 )
20 #define AF_SETTABLE_BITS        ( (AF_OP_PRINT|AF_OP_COMM|AF_OP_SERVER|AF_OP_ACCOUNTS) )
21 #define USER_MAXSTORAGE_UNLIMITED       ( (uint32_t)-1L )
22 #define ENCRYPTED_PWLEN ( 16 )
23 #define FILTER_TEMP_DUPLICATE_ACCOUNT   ( 0x0001 )
24 #define FILTER_NORMAL_ACCOUNT   ( 0x0002 )
25 #define FILTER_INTERDOMAIN_TRUST_ACCOUNT        ( 0x0008 )
26 #define FILTER_WORKSTATION_TRUST_ACCOUNT        ( 0x0010 )
27 #define FILTER_SERVER_TRUST_ACCOUNT     ( 0x0020 )
28 #define TIMEQ_FOREVER   ( (uint32_t)-1L )
29 enum NET_API_STATUS
30 #ifndef USE_UINT_ENUMS
31  {
32         NERR_Success=0
33 }
34 #else
35  { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
36 #define NERR_Success ( 0 )
37 #endif
38 ;
39
40 struct domsid {
41         uint8_t sid_rev_num;
42         uint8_t num_auths;
43         uint8_t id_auth[6];
44         uint32_t *sub_auths;
45 };
46
47 /* bitmap NetJoinFlags */
48 #define NETSETUP_JOIN_DOMAIN ( 0x00000001 )
49 #define NETSETUP_ACCT_CREATE ( 0x00000002 )
50 #define NETSETUP_ACCT_DELETE ( 0x00000004 )
51 #define NETSETUP_WIN9X_UPGRADE ( 0x00000010 )
52 #define NETSETUP_DOMAIN_JOIN_IF_JOINED ( 0x00000020 )
53 #define NETSETUP_JOIN_UNSECURE ( 0x00000040 )
54 #define NETSETUP_MACHINE_PWD_PASSED ( 0x00000080 )
55 #define NETSETUP_DEFER_SPN_SET ( 0x00000100 )
56 #define NETSETUP_JOIN_DC_ACCOUNT ( 0x00000200 )
57 #define NETSETUP_JOIN_WITH_NEW_NAME ( 0x00000400 )
58 #define NETSETUP_INSTALL_INVOCATION ( 0x00040000 )
59 #define NETSETUP_IGNORE_UNSUPPORTED_FLAGS ( 0x10000000 )
60
61 struct SERVER_INFO_100 {
62         uint32_t sv100_platform_id;
63         const char * sv100_name;
64 };
65
66 struct SERVER_INFO_101 {
67         uint32_t sv101_platform_id;
68         const char * sv101_name;
69         uint32_t sv101_version_major;
70         uint32_t sv101_version_minor;
71         uint32_t sv101_type;
72         const char * sv101_comment;
73 };
74
75 struct SERVER_INFO_102 {
76         uint32_t sv102_platform_id;
77         const char * sv102_name;
78         uint32_t sv102_version_major;
79         uint32_t sv102_version_minor;
80         uint32_t sv102_type;
81         const char * sv102_comment;
82         uint32_t sv102_users;
83         uint32_t sv102_disc;
84         uint8_t sv102_hidden;
85         uint32_t sv102_announce;
86         uint32_t sv102_anndelta;
87         uint32_t sv102_licenses;
88         const char * sv102_userpath;
89 };
90
91 struct SERVER_INFO_1005 {
92         const char * sv1005_comment;
93 };
94
95 struct DOMAIN_CONTROLLER_INFO {
96         const char * domain_controller_name;
97         const char * domain_controller_address;
98         uint32_t domain_controller_address_type;
99         struct GUID domain_guid;
100         const char * domain_name;
101         const char * dns_forest_name;
102         uint32_t flags;
103         const char * dc_site_name;
104         const char * client_site_name;
105 };
106
107 struct USER_INFO_0 {
108         const char * usri0_name;
109 };
110
111 struct USER_INFO_1 {
112         const char * usri1_name;
113         const char * usri1_password;
114         uint32_t usri1_password_age;
115         uint32_t usri1_priv;
116         const char * usri1_home_dir;
117         const char * usri1_comment;
118         uint32_t usri1_flags;
119         const char * usri1_script_path;
120 };
121
122 struct USER_INFO_2 {
123         const char * usri2_name;
124         const char * usri2_password;
125         uint32_t usri2_password_age;
126         uint32_t usri2_priv;
127         const char * usri2_home_dir;
128         const char * usri2_comment;
129         uint32_t usri2_flags;
130         const char * usri2_script_path;
131         uint32_t usri2_auth_flags;
132         const char * usri2_full_name;
133         const char * usri2_usr_comment;
134         const char * usri2_parms;
135         const char * usri2_workstations;
136         uint32_t usri2_last_logon;
137         uint32_t usri2_last_logoff;
138         uint32_t usri2_acct_expires;
139         uint32_t usri2_max_storage;
140         uint32_t usri2_units_per_week;
141         uint8_t *usri2_logon_hours;/* [unique] */
142         uint32_t usri2_bad_pw_count;
143         uint32_t usri2_num_logons;
144         const char * usri2_logon_server;
145         uint32_t usri2_country_code;
146         uint32_t usri2_code_page;
147 };
148
149 struct USER_INFO_3 {
150         const char * usri3_name;
151         uint32_t usri3_password_age;
152         uint32_t usri3_priv;
153         const char * usri3_home_dir;
154         const char * usri3_comment;
155         uint32_t usri3_flags;
156         const char * usri3_script_path;
157         uint32_t usri3_auth_flags;
158         const char * usri3_full_name;
159         const char * usri3_usr_comment;
160         const char * usri3_parms;
161         const char * usri3_workstations;
162         uint32_t usri3_last_logon;
163         uint32_t usri3_last_logoff;
164         uint32_t usri3_acct_expires;
165         uint32_t usri3_max_storage;
166         uint32_t usri3_units_per_week;
167         uint8_t *usri3_logon_hours;/* [unique] */
168         uint32_t usri3_bad_pw_count;
169         uint32_t usri3_num_logons;
170         const char * usri3_logon_server;
171         uint32_t usri3_country_code;
172         uint32_t usri3_code_page;
173         uint32_t usri3_user_id;
174         uint32_t usri3_primary_group_id;
175         const char * usri3_profile;
176         const char * usri3_home_dir_drive;
177         uint32_t usri3_password_expired;
178 };
179
180 struct USER_INFO_4 {
181         const char * usri4_name;
182         const char * usri4_password;
183         uint32_t usri4_password_age;
184         uint32_t usri4_priv;
185         const char * usri4_home_dir;
186         const char * usri4_comment;
187         uint32_t usri4_flags;
188         const char * usri4_script_path;
189         uint32_t usri4_auth_flags;
190         const char * usri4_full_name;
191         const char * usri4_usr_comment;
192         const char * usri4_parms;
193         const char * usri4_workstations;
194         uint32_t usri4_last_logon;
195         uint32_t usri4_last_logoff;
196         uint32_t usri4_acct_expires;
197         uint32_t usri4_max_storage;
198         uint32_t usri4_units_per_week;
199         uint8_t *usri4_logon_hours;/* [unique] */
200         uint32_t usri4_bad_pw_count;
201         uint32_t usri4_num_logons;
202         const char * usri4_logon_server;
203         uint32_t usri4_country_code;
204         uint32_t usri4_code_page;
205         struct domsid *usri4_user_sid;/* [unique] */
206         uint32_t usri4_primary_group_id;
207         const char * usri4_profile;
208         const char * usri4_home_dir_drive;
209         uint32_t usri4_password_expired;
210 };
211
212 struct USER_INFO_10 {
213         const char * usri10_name;
214         const char * usri10_comment;
215         const char * usri10_usr_comment;
216         const char * usri10_full_name;
217 };
218
219 struct USER_INFO_11 {
220         const char * usri11_name;
221         const char * usri11_comment;
222         const char * usri11_usr_comment;
223         const char * usri11_full_name;
224         uint32_t usri11_priv;
225         uint32_t usri11_auth_flags;
226         uint32_t usri11_password_age;
227         const char * usri11_home_dir;
228         const char * usri11_parms;
229         uint32_t usri11_last_logon;
230         uint32_t usri11_last_logoff;
231         uint32_t usri11_bad_pw_count;
232         uint32_t usri11_num_logons;
233         const char * usri11_logon_server;
234         uint32_t usri11_country_code;
235         const char * usri11_workstations;
236         uint32_t usri11_max_storage;
237         uint32_t usri11_units_per_week;
238         uint8_t *usri11_logon_hours;/* [unique] */
239         uint32_t usri11_code_page;
240 };
241
242 struct USER_INFO_20 {
243         const char * usri20_name;
244         const char * usri20_full_name;
245         const char * usri20_comment;
246         uint32_t usri20_flags;
247         uint32_t usri20_user_id;
248 };
249
250 struct USER_INFO_21 {
251         uint8_t *usri21_password;
252 };
253
254 struct USER_INFO_22 {
255         const char * usri22_name;
256         uint8_t *usri22_password;
257         uint32_t usri22_password_age;
258         uint32_t usri22_priv;
259         const char * usri22_home_dir;
260         const char * usri22_comment;
261         uint32_t usri22_flags;
262         uint32_t usri22_script_path;
263         uint32_t usri22_auth_flags;
264         const char * usri22_full_name;
265         const char * usri22_usr_comment;
266         const char * usri22_parms;
267         const char * usri22_workstations;
268         uint32_t usri22_last_logon;
269         uint32_t usri22_last_logoff;
270         uint32_t usri22_acct_expires;
271         uint32_t usri22_max_storage;
272         uint32_t usri22_units_per_week;
273         uint8_t *usri22_logon_hours;/* [unique] */
274         uint32_t usri22_bad_pw_count;
275         uint32_t usri22_num_logons;
276         const char * usri22_logon_server;
277         uint32_t usri22_country_code;
278         uint32_t usri22_code_page;
279 };
280
281 struct USER_INFO_23 {
282         const char * usri23_name;
283         const char * usri23_full_name;
284         const char * usri23_comment;
285         uint32_t usri23_flags;
286         struct domsid *usri23_user_sid;/* [unique] */
287 };
288
289 struct USER_INFO_1003 {
290         const char * usri1003_password;
291 };
292
293 struct USER_INFO_1005 {
294         uint32_t usri1005_priv;
295 };
296
297 struct USER_INFO_1006 {
298         const char * usri1006_home_dir;
299 };
300
301 struct USER_INFO_1007 {
302         const char * usri1007_comment;
303 };
304
305 struct USER_INFO_1008 {
306         uint32_t usri1008_flags;
307 };
308
309 struct USER_INFO_1009 {
310         const char * usri1009_script_path;
311 };
312
313 struct USER_INFO_1010 {
314         uint32_t usri1010_auth_flags;
315 };
316
317 struct USER_INFO_1011 {
318         const char * usri1011_full_name;
319 };
320
321 struct USER_INFO_1012 {
322         const char * usri1012_usr_comment;
323 };
324
325 struct USER_INFO_1013 {
326         const char * usri1013_parms;
327 };
328
329 struct USER_INFO_1014 {
330         const char * usri1014_workstations;
331 };
332
333 struct USER_INFO_1017 {
334         uint32_t usri1017_acct_expires;
335 };
336
337 struct USER_INFO_1018 {
338         uint32_t usri1018_max_storage;
339 };
340
341 struct USER_INFO_1020 {
342         uint32_t usri1020_units_per_week;
343         uint8_t *usri1020_logon_hours;/* [unique] */
344 };
345
346 struct USER_INFO_1023 {
347         const char * usri1023_logon_server;
348 };
349
350 struct USER_INFO_1024 {
351         uint32_t usri1024_country_code;
352 };
353
354 struct USER_INFO_1025 {
355         uint32_t usri1025_code_page;
356 };
357
358 struct USER_INFO_1051 {
359         uint32_t usri1051_primary_group_id;
360 };
361
362 struct USER_INFO_1052 {
363         const char * usri1052_profile;
364 };
365
366 struct USER_INFO_1053 {
367         const char * usri1053_home_dir_drive;
368 };
369
370 struct USER_INFO_X {
371         const char * usriX_name;
372         const char * usriX_password;
373         uint32_t usriX_password_age;
374         uint32_t usriX_priv;
375         const char * usriX_home_dir;
376         const char * usriX_comment;
377         uint32_t usriX_flags;
378         const char * usriX_script_path;
379         uint32_t usriX_auth_flags;
380         const char * usriX_full_name;
381         const char * usriX_usr_comment;
382         const char * usriX_parms;
383         const char * usriX_workstations;
384         uint32_t usriX_last_logon;
385         uint32_t usriX_last_logoff;
386         uint32_t usriX_acct_expires;
387         uint32_t usriX_max_storage;
388         uint32_t usriX_units_per_week;
389         uint8_t *usriX_logon_hours;/* [unique] */
390         uint32_t usriX_bad_pw_count;
391         uint32_t usriX_num_logons;
392         const char * usriX_logon_server;
393         uint32_t usriX_country_code;
394         uint32_t usriX_code_page;
395         const char * usriX_profile;
396         const char * usriX_home_dir_drive;
397         uint32_t usriX_primary_group_id;
398 };
399
400 struct GROUP_USERS_INFO_0 {
401         const char * grui0_name;
402 };
403
404 struct GROUP_USERS_INFO_1 {
405         const char * grui1_name;
406         uint32_t grui1_attributes;
407 };
408
409 struct USER_MODALS_INFO_0 {
410         uint32_t usrmod0_min_passwd_len;
411         uint32_t usrmod0_max_passwd_age;
412         uint32_t usrmod0_min_passwd_age;
413         uint32_t usrmod0_force_logoff;
414         uint32_t usrmod0_password_hist_len;
415 };
416
417 struct USER_MODALS_INFO_1 {
418         uint32_t usrmod1_role;
419         const char * usrmod1_primary;
420 };
421
422 struct USER_MODALS_INFO_2 {
423         const char * usrmod2_domain_name;
424         struct domsid *usrmod2_domain_id;/* [unique] */
425 };
426
427 struct USER_MODALS_INFO_3 {
428         uint32_t usrmod3_lockout_duration;
429         uint32_t usrmod3_lockout_observation_window;
430         uint32_t usrmod3_lockout_threshold;
431 };
432
433 struct USER_MODALS_INFO_1001 {
434         uint32_t usrmod1001_min_passwd_len;
435 };
436
437 struct USER_MODALS_INFO_1002 {
438         uint32_t usrmod1002_max_passwd_age;
439 };
440
441 struct USER_MODALS_INFO_1003 {
442         uint32_t usrmod1003_min_passwd_age;
443 };
444
445 struct USER_MODALS_INFO_1004 {
446         uint32_t usrmod1004_force_logoff;
447 };
448
449 struct USER_MODALS_INFO_1005 {
450         uint32_t usrmod1005_password_hist_len;
451 };
452
453 struct USER_MODALS_INFO_1006 {
454         uint32_t usrmod1006_role;
455 };
456
457 struct USER_MODALS_INFO_1007 {
458         const char * usrmod1007_primary;
459 };
460
461 struct NET_DISPLAY_USER {
462         const char * usri1_name;
463         const char * usri1_comment;
464         uint32_t usri1_flags;
465         const char * usri1_full_name;
466         uint32_t usri1_user_id;
467         uint32_t usri1_next_index;
468 };
469
470 struct NET_DISPLAY_MACHINE {
471         const char * usri2_name;
472         const char * usri2_comment;
473         uint32_t usri2_flags;
474         uint32_t usri2_user_id;
475         uint32_t usri2_next_index;
476 };
477
478 struct NET_DISPLAY_GROUP {
479         const char * grpi3_name;
480         const char * grpi3_comment;
481         uint32_t grpi3_group_id;
482         uint32_t grpi3_attributes;
483         uint32_t grpi3_next_index;
484 };
485
486 struct GROUP_INFO_0 {
487         const char * grpi0_name;
488 };
489
490 struct GROUP_INFO_1 {
491         const char * grpi1_name;
492         const char * grpi1_comment;
493 };
494
495 struct GROUP_INFO_2 {
496         const char * grpi2_name;
497         const char * grpi2_comment;
498         uint32_t grpi2_group_id;
499         uint32_t grpi2_attributes;
500 };
501
502 struct GROUP_INFO_3 {
503         const char * grpi3_name;
504         const char * grpi3_comment;
505         struct domsid *grpi3_group_sid;/* [unique] */
506         uint32_t grpi3_attributes;
507 };
508
509 struct GROUP_INFO_1002 {
510         const char * grpi1002_comment;
511 };
512
513 struct GROUP_INFO_1005 {
514         uint32_t grpi1005_attributes;
515 };
516
517 struct LOCALGROUP_INFO_0 {
518         const char * lgrpi0_name;
519 };
520
521 struct LOCALGROUP_INFO_1 {
522         const char * lgrpi1_name;
523         const char * lgrpi1_comment;
524 };
525
526 struct LOCALGROUP_INFO_1002 {
527         const char * lgrpi1002_comment;
528 };
529
530 enum SID_NAME_USE
531 #ifndef USE_UINT_ENUMS
532  {
533         SidTypeUser=1,
534         SidTypeGroup=2,
535         SidTypeDomain=3,
536         SidTypeAlias=4,
537         SidTypeWellKnownGroup=5,
538         SidTypeDeletedAccount=6,
539         SidTypeInvalid=7,
540         SidTypeUnknown=8,
541         SidTypeComputer=9,
542         SidTypeLabel=10
543 }
544 #else
545  { __donnot_use_enum_SID_NAME_USE=0x7FFFFFFF}
546 #define SidTypeUser ( 1 )
547 #define SidTypeGroup ( 2 )
548 #define SidTypeDomain ( 3 )
549 #define SidTypeAlias ( 4 )
550 #define SidTypeWellKnownGroup ( 5 )
551 #define SidTypeDeletedAccount ( 6 )
552 #define SidTypeInvalid ( 7 )
553 #define SidTypeUnknown ( 8 )
554 #define SidTypeComputer ( 9 )
555 #define SidTypeLabel ( 10 )
556 #endif
557 ;
558
559 struct LOCALGROUP_MEMBERS_INFO_0 {
560         struct domsid *lgrmi0_sid;/* [unique] */
561 };
562
563 struct LOCALGROUP_MEMBERS_INFO_1 {
564         struct domsid *lgrmi1_sid;/* [unique] */
565         enum SID_NAME_USE lgrmi1_sidusage;
566         const char * lgrmi1_name;
567 };
568
569 struct LOCALGROUP_MEMBERS_INFO_2 {
570         struct domsid *lgrmi2_sid;/* [unique] */
571         enum SID_NAME_USE lgrmi2_sidusage;
572         const char * lgrmi2_domainandname;
573 };
574
575 struct LOCALGROUP_MEMBERS_INFO_3 {
576         const char * lgrmi3_domainandname;
577 };
578
579 struct TIME_OF_DAY_INFO {
580         uint32_t tod_elapsedt;
581         uint32_t tod_msecs;
582         uint32_t tod_hours;
583         uint32_t tod_mins;
584         uint32_t tod_secs;
585         uint32_t tod_hunds;
586         int32_t tod_timezone;
587         uint32_t tod_tinterval;
588         uint32_t tod_day;
589         uint32_t tod_month;
590         uint32_t tod_year;
591         uint32_t tod_weekday;
592 };
593
594 struct SHARE_INFO_0 {
595         const char * shi0_netname;
596 };
597
598 struct SHARE_INFO_1 {
599         const char * shi1_netname;
600         uint32_t shi1_type;
601         const char * shi1_remark;
602 };
603
604 struct SHARE_INFO_2 {
605         const char * shi2_netname;
606         uint32_t shi2_type;
607         const char * shi2_remark;
608         uint32_t shi2_permissions;
609         uint32_t shi2_max_uses;
610         uint32_t shi2_current_uses;
611         const char * shi2_path;
612         const char * shi2_passwd;
613 };
614
615 struct SHARE_INFO_501 {
616         const char * shi501_netname;
617         uint32_t shi501_type;
618         const char * shi501_remark;
619         uint32_t shi501_flags;
620 };
621
622 struct SHARE_INFO_1004 {
623         const char * shi1004_remark;
624 };
625
626 struct SHARE_INFO_1005 {
627         uint32_t shi1005_flags;
628 };
629
630 struct SHARE_INFO_1006 {
631         uint32_t shi1006_max_uses;
632 };
633
634
635 struct NetJoinDomain {
636         struct {
637                 const char * server;/* [unique] */
638                 const char * domain;/* [ref] */
639                 const char * account_ou;/* [unique] */
640                 const char * account;/* [unique] */
641                 const char * password;/* [unique] */
642                 uint32_t join_flags;
643         } in;
644
645         struct {
646                 enum NET_API_STATUS result;
647         } out;
648
649 };
650
651
652 struct NetUnjoinDomain {
653         struct {
654                 const char * server_name;/* [unique] */
655                 const char * account;/* [unique] */
656                 const char * password;/* [unique] */
657                 uint32_t unjoin_flags;
658         } in;
659
660         struct {
661                 enum NET_API_STATUS result;
662         } out;
663
664 };
665
666
667 struct NetGetJoinInformation {
668         struct {
669                 const char * server_name;/* [unique] */
670         } in;
671
672         struct {
673                 const char * *name_buffer;/* [ref] */
674                 uint16_t *name_type;/* [ref] */
675                 enum NET_API_STATUS result;
676         } out;
677
678 };
679
680
681 struct NetGetJoinableOUs {
682         struct {
683                 const char * server_name;/* [unique] */
684                 const char * domain;/* [ref] */
685                 const char * account;/* [unique] */
686                 const char * password;/* [unique] */
687         } in;
688
689         struct {
690                 uint32_t *ou_count;/* [ref] */
691                 const char * **ous;/* [ref] */
692                 enum NET_API_STATUS result;
693         } out;
694
695 };
696
697
698 struct NetRenameMachineInDomain {
699         struct {
700                 const char * server_name;
701                 const char * new_machine_name;
702                 const char * account;
703                 const char * password;
704                 uint32_t rename_options;
705         } in;
706
707         struct {
708                 enum NET_API_STATUS result;
709         } out;
710
711 };
712
713
714 struct NetServerGetInfo {
715         struct {
716                 const char * server_name;/* [unique] */
717                 uint32_t level;
718         } in;
719
720         struct {
721                 uint8_t **buffer;/* [ref] */
722                 enum NET_API_STATUS result;
723         } out;
724
725 };
726
727
728 struct NetServerSetInfo {
729         struct {
730                 const char * server_name;/* [unique] */
731                 uint32_t level;
732                 uint8_t *buffer;/* [ref] */
733         } in;
734
735         struct {
736                 uint32_t *parm_error;/* [ref] */
737                 enum NET_API_STATUS result;
738         } out;
739
740 };
741
742
743 struct NetGetDCName {
744         struct {
745                 const char * server_name;/* [unique] */
746                 const char * domain_name;/* [unique] */
747         } in;
748
749         struct {
750                 uint8_t **buffer;/* [ref] */
751                 enum NET_API_STATUS result;
752         } out;
753
754 };
755
756
757 struct NetGetAnyDCName {
758         struct {
759                 const char * server_name;/* [unique] */
760                 const char * domain_name;/* [unique] */
761         } in;
762
763         struct {
764                 uint8_t **buffer;/* [ref] */
765                 enum NET_API_STATUS result;
766         } out;
767
768 };
769
770
771 struct DsGetDcName {
772         struct {
773                 const char * server_name;/* [unique] */
774                 const char * domain_name;/* [ref] */
775                 struct GUID *domain_guid;/* [unique] */
776                 const char * site_name;/* [unique] */
777                 uint32_t flags;
778         } in;
779
780         struct {
781                 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
782                 enum NET_API_STATUS result;
783         } out;
784
785 };
786
787
788 struct NetUserAdd {
789         struct {
790                 const char * server_name;/* [unique] */
791                 uint32_t level;
792                 uint8_t *buffer;/* [ref] */
793         } in;
794
795         struct {
796                 uint32_t *parm_error;/* [ref] */
797                 enum NET_API_STATUS result;
798         } out;
799
800 };
801
802
803 struct NetUserDel {
804         struct {
805                 const char * server_name;/* [unique] */
806                 const char * user_name;/* [ref] */
807         } in;
808
809         struct {
810                 enum NET_API_STATUS result;
811         } out;
812
813 };
814
815
816 struct NetUserEnum {
817         struct {
818                 const char * server_name;/* [unique] */
819                 uint32_t level;
820                 uint32_t filter;
821                 uint32_t prefmaxlen;
822                 uint32_t *resume_handle;/* [ref] */
823         } in;
824
825         struct {
826                 uint8_t **buffer;/* [ref] */
827                 uint32_t *entries_read;/* [ref] */
828                 uint32_t *total_entries;/* [ref] */
829                 uint32_t *resume_handle;/* [ref] */
830                 enum NET_API_STATUS result;
831         } out;
832
833 };
834
835
836 struct NetUserChangePassword {
837         struct {
838                 const char * domain_name;
839                 const char * user_name;
840                 const char * old_password;
841                 const char * new_password;
842         } in;
843
844         struct {
845                 enum NET_API_STATUS result;
846         } out;
847
848 };
849
850
851 struct NetUserGetInfo {
852         struct {
853                 const char * server_name;
854                 const char * user_name;
855                 uint32_t level;
856         } in;
857
858         struct {
859                 uint8_t **buffer;/* [ref] */
860                 enum NET_API_STATUS result;
861         } out;
862
863 };
864
865
866 struct NetUserSetInfo {
867         struct {
868                 const char * server_name;
869                 const char * user_name;
870                 uint32_t level;
871                 uint8_t *buffer;/* [ref] */
872         } in;
873
874         struct {
875                 uint32_t *parm_err;/* [ref] */
876                 enum NET_API_STATUS result;
877         } out;
878
879 };
880
881
882 struct NetUserGetGroups {
883         struct {
884                 const char * server_name;
885                 const char * user_name;
886                 uint32_t level;
887                 uint32_t prefmaxlen;
888         } in;
889
890         struct {
891                 uint8_t **buffer;/* [ref] */
892                 uint32_t *entries_read;/* [ref] */
893                 uint32_t *total_entries;/* [ref] */
894                 enum NET_API_STATUS result;
895         } out;
896
897 };
898
899
900 struct NetUserModalsGet {
901         struct {
902                 const char * server_name;
903                 uint32_t level;
904         } in;
905
906         struct {
907                 uint8_t **buffer;/* [ref] */
908                 enum NET_API_STATUS result;
909         } out;
910
911 };
912
913
914 struct NetUserModalsSet {
915         struct {
916                 const char * server_name;
917                 uint32_t level;
918                 uint8_t *buffer;/* [ref] */
919         } in;
920
921         struct {
922                 uint32_t *parm_err;/* [ref] */
923                 enum NET_API_STATUS result;
924         } out;
925
926 };
927
928
929 struct NetQueryDisplayInformation {
930         struct {
931                 const char * server_name;/* [unique] */
932                 uint32_t level;
933                 uint32_t idx;
934                 uint32_t entries_requested;
935                 uint32_t prefmaxlen;
936         } in;
937
938         struct {
939                 uint32_t *entries_read;/* [ref] */
940                 void **buffer;/* [noprint,ref] */
941                 enum NET_API_STATUS result;
942         } out;
943
944 };
945
946
947 struct NetGroupAdd {
948         struct {
949                 const char * server_name;
950                 uint32_t level;
951                 uint8_t *buffer;/* [ref] */
952         } in;
953
954         struct {
955                 uint32_t *parm_err;/* [ref] */
956                 enum NET_API_STATUS result;
957         } out;
958
959 };
960
961
962 struct NetGroupDel {
963         struct {
964                 const char * server_name;
965                 const char * group_name;
966         } in;
967
968         struct {
969                 enum NET_API_STATUS result;
970         } out;
971
972 };
973
974
975 struct NetGroupEnum {
976         struct {
977                 const char * server_name;
978                 uint32_t level;
979                 uint32_t prefmaxlen;
980                 uint32_t *resume_handle;/* [ref] */
981         } in;
982
983         struct {
984                 uint8_t **buffer;/* [ref] */
985                 uint32_t *entries_read;/* [ref] */
986                 uint32_t *total_entries;/* [ref] */
987                 uint32_t *resume_handle;/* [ref] */
988                 enum NET_API_STATUS result;
989         } out;
990
991 };
992
993
994 struct NetGroupSetInfo {
995         struct {
996                 const char * server_name;
997                 const char * group_name;
998                 uint32_t level;
999                 uint8_t *buffer;/* [ref] */
1000         } in;
1001
1002         struct {
1003                 uint32_t *parm_err;/* [ref] */
1004                 enum NET_API_STATUS result;
1005         } out;
1006
1007 };
1008
1009
1010 struct NetGroupGetInfo {
1011         struct {
1012                 const char * server_name;
1013                 const char * group_name;
1014                 uint32_t level;
1015         } in;
1016
1017         struct {
1018                 uint8_t **buffer;/* [ref] */
1019                 enum NET_API_STATUS result;
1020         } out;
1021
1022 };
1023
1024
1025 struct NetGroupAddUser {
1026         struct {
1027                 const char * server_name;
1028                 const char * group_name;
1029                 const char * user_name;
1030         } in;
1031
1032         struct {
1033                 enum NET_API_STATUS result;
1034         } out;
1035
1036 };
1037
1038
1039 struct NetGroupDelUser {
1040         struct {
1041                 const char * server_name;
1042                 const char * group_name;
1043                 const char * user_name;
1044         } in;
1045
1046         struct {
1047                 enum NET_API_STATUS result;
1048         } out;
1049
1050 };
1051
1052
1053 struct NetGroupGetUsers {
1054         struct {
1055                 const char * server_name;
1056                 const char * group_name;
1057                 uint32_t level;
1058                 uint32_t prefmaxlen;
1059                 uint32_t *resume_handle;/* [ref] */
1060         } in;
1061
1062         struct {
1063                 uint8_t **buffer;/* [ref] */
1064                 uint32_t *entries_read;/* [ref] */
1065                 uint32_t *total_entries;/* [ref] */
1066                 uint32_t *resume_handle;/* [ref] */
1067                 enum NET_API_STATUS result;
1068         } out;
1069
1070 };
1071
1072
1073 struct NetLocalGroupAdd {
1074         struct {
1075                 const char * server_name;
1076                 uint32_t level;
1077                 uint8_t *buffer;/* [ref] */
1078         } in;
1079
1080         struct {
1081                 uint32_t *parm_err;/* [ref] */
1082                 enum NET_API_STATUS result;
1083         } out;
1084
1085 };
1086
1087
1088 struct NetLocalGroupDel {
1089         struct {
1090                 const char * server_name;
1091                 const char * group_name;
1092         } in;
1093
1094         struct {
1095                 enum NET_API_STATUS result;
1096         } out;
1097
1098 };
1099
1100
1101 struct NetLocalGroupGetInfo {
1102         struct {
1103                 const char * server_name;
1104                 const char * group_name;
1105                 uint32_t level;
1106         } in;
1107
1108         struct {
1109                 uint8_t **buffer;/* [ref] */
1110                 enum NET_API_STATUS result;
1111         } out;
1112
1113 };
1114
1115
1116 struct NetLocalGroupSetInfo {
1117         struct {
1118                 const char * server_name;
1119                 const char * group_name;
1120                 uint32_t level;
1121                 uint8_t *buffer;/* [ref] */
1122         } in;
1123
1124         struct {
1125                 uint32_t *parm_err;/* [ref] */
1126                 enum NET_API_STATUS result;
1127         } out;
1128
1129 };
1130
1131
1132 struct NetLocalGroupEnum {
1133         struct {
1134                 const char * server_name;
1135                 uint32_t level;
1136                 uint32_t prefmaxlen;
1137                 uint32_t *resume_handle;/* [ref] */
1138         } in;
1139
1140         struct {
1141                 uint8_t **buffer;/* [ref] */
1142                 uint32_t *entries_read;/* [ref] */
1143                 uint32_t *total_entries;/* [ref] */
1144                 uint32_t *resume_handle;/* [ref] */
1145                 enum NET_API_STATUS result;
1146         } out;
1147
1148 };
1149
1150
1151 struct NetLocalGroupAddMembers {
1152         struct {
1153                 const char * server_name;
1154                 const char * group_name;
1155                 uint32_t level;
1156                 uint8_t *buffer;/* [ref] */
1157                 uint32_t total_entries;
1158         } in;
1159
1160         struct {
1161                 enum NET_API_STATUS result;
1162         } out;
1163
1164 };
1165
1166
1167 struct NetLocalGroupDelMembers {
1168         struct {
1169                 const char * server_name;
1170                 const char * group_name;
1171                 uint32_t level;
1172                 uint8_t *buffer;/* [ref] */
1173                 uint32_t total_entries;
1174         } in;
1175
1176         struct {
1177                 enum NET_API_STATUS result;
1178         } out;
1179
1180 };
1181
1182
1183 struct NetLocalGroupGetMembers {
1184         struct {
1185                 const char * server_name;
1186                 const char * local_group_name;
1187                 uint32_t level;
1188                 uint32_t prefmaxlen;
1189                 uint32_t *resume_handle;/* [ref] */
1190         } in;
1191
1192         struct {
1193                 uint8_t **buffer;/* [ref] */
1194                 uint32_t *entries_read;/* [ref] */
1195                 uint32_t *total_entries;/* [ref] */
1196                 uint32_t *resume_handle;/* [ref] */
1197                 enum NET_API_STATUS result;
1198         } out;
1199
1200 };
1201
1202
1203 struct NetLocalGroupSetMembers {
1204         struct {
1205                 const char * server_name;
1206                 const char * group_name;
1207                 uint32_t level;
1208                 uint8_t *buffer;/* [ref] */
1209                 uint32_t total_entries;
1210         } in;
1211
1212         struct {
1213                 enum NET_API_STATUS result;
1214         } out;
1215
1216 };
1217
1218
1219 struct NetRemoteTOD {
1220         struct {
1221                 const char * server_name;
1222         } in;
1223
1224         struct {
1225                 uint8_t **buffer;/* [ref] */
1226                 enum NET_API_STATUS result;
1227         } out;
1228
1229 };
1230
1231
1232 struct NetShareAdd {
1233         struct {
1234                 const char * server_name;
1235                 uint32_t level;
1236                 uint8_t *buffer;/* [ref] */
1237         } in;
1238
1239         struct {
1240                 uint32_t *parm_err;/* [ref] */
1241                 enum NET_API_STATUS result;
1242         } out;
1243
1244 };
1245
1246
1247 struct NetShareDel {
1248         struct {
1249                 const char * server_name;
1250                 const char * net_name;
1251                 uint32_t reserved;
1252         } in;
1253
1254         struct {
1255                 enum NET_API_STATUS result;
1256         } out;
1257
1258 };
1259
1260
1261 struct NetShareEnum {
1262         struct {
1263                 const char * server_name;
1264                 uint32_t level;
1265                 uint32_t prefmaxlen;
1266                 uint32_t *resume_handle;/* [ref] */
1267         } in;
1268
1269         struct {
1270                 uint8_t **buffer;/* [ref] */
1271                 uint32_t *entries_read;/* [ref] */
1272                 uint32_t *total_entries;/* [ref] */
1273                 uint32_t *resume_handle;/* [ref] */
1274                 enum NET_API_STATUS result;
1275         } out;
1276
1277 };
1278
1279 #endif /* _HEADER_libnetapi */