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 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 )
18 enum NET_API_STATUS
19 #ifndef USE_UINT_ENUMS
20  {
21         NERR_Success=0
22 }
23 #else
24  { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
25 #define NERR_Success ( 0 )
26 #endif
27 ;
28
29 struct domsid {
30         uint8_t sid_rev_num;
31         uint8_t num_auths;
32         uint8_t id_auth[6];
33         uint32_t *sub_auths;
34 };
35
36 struct SERVER_INFO_1005 {
37         const char * sv1005_comment;
38 };
39
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;
47         uint32_t flags;
48         const char * dc_site_name;
49         const char * client_site_name;
50 };
51
52 struct USER_INFO_0 {
53         const char * usri0_name;
54 };
55
56 struct USER_INFO_1 {
57         const char * usri1_name;
58         const char * usri1_password;
59         uint32_t usri1_password_age;
60         uint32_t usri1_priv;
61         const char * usri1_home_dir;
62         const char * usri1_comment;
63         uint32_t usri1_flags;
64         const char * usri1_script_path;
65 };
66
67 struct USER_INFO_2 {
68         const char * usri2_name;
69         const char * usri2_password;
70         uint32_t usri2_password_age;
71         uint32_t usri2_priv;
72         const char * usri2_home_dir;
73         const char * usri2_comment;
74         uint32_t usri2_flags;
75         const char * usri2_script_path;
76         uint32_t usri2_auth_flags;
77         const char * usri2_full_name;
78         const char * usri2_usr_comment;
79         const char * usri2_parms;
80         const char * usri2_workstations;
81         uint32_t usri2_last_logon;
82         uint32_t usri2_last_logoff;
83         uint32_t usri2_acct_expires;
84         uint32_t usri2_max_storage;
85         uint32_t usri2_units_per_week;
86         uint8_t *usri2_logon_hours;/* [unique] */
87         uint32_t usri2_bad_pw_count;
88         uint32_t usri2_num_logons;
89         const char * usri2_logon_server;
90         uint32_t usri2_country_code;
91         uint32_t usri2_code_page;
92 };
93
94 struct USER_INFO_3 {
95         const char * usri3_name;
96         uint32_t usri3_password_age;
97         uint32_t usri3_priv;
98         const char * usri3_home_dir;
99         const char * usri3_comment;
100         uint32_t usri3_flags;
101         const char * usri3_script_path;
102         uint32_t usri3_auth_flags;
103         const char * usri3_full_name;
104         const char * usri3_usr_comment;
105         const char * usri3_parms;
106         const char * usri3_workstations;
107         uint32_t usri3_last_logon;
108         uint32_t usri3_last_logoff;
109         uint32_t usri3_acct_expires;
110         uint32_t usri3_max_storage;
111         uint32_t usri3_units_per_week;
112         uint8_t *usri3_logon_hours;/* [unique] */
113         uint32_t usri3_bad_pw_count;
114         uint32_t usri3_num_logons;
115         const char * usri3_logon_server;
116         uint32_t usri3_country_code;
117         uint32_t usri3_code_page;
118         uint32_t usri3_user_id;
119         uint32_t usri3_primary_group_id;
120         const char * usri3_profile;
121         const char * usri3_home_dir_drive;
122         uint32_t usri3_password_expired;
123 };
124
125 struct USER_INFO_4 {
126         const char * usri4_name;
127         const char * usri4_password;
128         uint32_t usri4_password_age;
129         uint32_t usri4_priv;
130         const char * usri4_home_dir;
131         const char * usri4_comment;
132         uint32_t usri4_flags;
133         const char * usri4_script_path;
134         uint32_t usri4_auth_flags;
135         const char * usri4_full_name;
136         const char * usri4_usr_comment;
137         const char * usri4_parms;
138         const char * usri4_workstations;
139         uint32_t usri4_last_logon;
140         uint32_t usri4_last_logoff;
141         uint32_t usri4_acct_expires;
142         uint32_t usri4_max_storage;
143         uint32_t usri4_units_per_week;
144         uint8_t *usri4_logon_hours;/* [unique] */
145         uint32_t usri4_bad_pw_count;
146         uint32_t usri4_num_logons;
147         const char * usri4_logon_server;
148         uint32_t usri4_country_code;
149         uint32_t usri4_code_page;
150         struct dom_sid *usri4_user_sid;/* [unique] */
151         uint32_t usri4_primary_group_id;
152         const char * usri4_profile;
153         const char * usri4_home_dir_drive;
154         uint32_t usri4_password_expired;
155 };
156
157 struct USER_INFO_10 {
158         const char * usri10_name;
159         const char * usri10_comment;
160         const char * usri10_usr_comment;
161         const char * usri10_full_name;
162 };
163
164 struct USER_INFO_11 {
165         const char * usri11_name;
166         const char * usri11_comment;
167         const char * usri11_usr_comment;
168         const char * usri11_full_name;
169         uint32_t usri11_priv;
170         uint32_t usri11_auth_flags;
171         uint32_t usri11_password_age;
172         const char * usri11_home_dir;
173         const char * usri11_parms;
174         uint32_t usri11_last_logon;
175         uint32_t usri11_last_logoff;
176         uint32_t usri11_bad_pw_count;
177         uint32_t usri11_num_logons;
178         const char * usri11_logon_server;
179         uint32_t usri11_country_code;
180         const char * usri11_workstations;
181         uint32_t usri11_max_storage;
182         uint32_t usri11_units_per_week;
183         uint8_t *usri11_logon_hours;/* [unique] */
184         uint32_t usri11_code_page;
185 };
186
187 struct USER_INFO_20 {
188         const char * usri20_name;
189         const char * usri20_full_name;
190         const char * usri20_comment;
191         uint32_t usri20_flags;
192         uint32_t usri20_user_id;
193 };
194
195 struct USER_INFO_23 {
196         const char * usri23_name;
197         const char * usri23_full_name;
198         const char * usri23_comment;
199         uint32_t usri23_flags;
200         struct domsid *usri23_user_sid;/* [unique] */
201 };
202
203 struct USER_INFO_1007 {
204         const char * usri1007_comment;
205 };
206
207 struct USER_INFO_X {
208         const char * usriX_name;
209         const char * usriX_password;
210         uint32_t usriX_password_age;
211         uint32_t usriX_priv;
212         const char * usriX_home_dir;
213         const char * usriX_comment;
214         uint32_t usriX_flags;
215         const char * usriX_script_path;
216         uint32_t usriX_auth_flags;
217         const char * usriX_full_name;
218         const char * usriX_usr_comment;
219         const char * usriX_parms;
220         const char * usriX_workstations;
221         uint32_t usriX_last_logon;
222         uint32_t usriX_last_logoff;
223         uint32_t usriX_acct_expires;
224         uint32_t usriX_max_storage;
225         uint32_t usriX_units_per_week;
226         uint8_t *usriX_logon_hours;/* [unique] */
227         uint32_t usriX_bad_pw_count;
228         uint32_t usriX_num_logons;
229         const char * usriX_logon_server;
230         uint32_t usriX_country_code;
231         uint32_t usriX_code_page;
232 };
233
234 struct NET_DISPLAY_USER {
235         const char * usri1_name;
236         const char * usri1_comment;
237         uint32_t usri1_flags;
238         const char * usri1_full_name;
239         uint32_t usri1_user_id;
240         uint32_t usri1_next_index;
241 };
242
243 struct NET_DISPLAY_MACHINE {
244         const char * usri2_name;
245         const char * usri2_comment;
246         uint32_t usri2_flags;
247         uint32_t usri2_user_id;
248         uint32_t usri2_next_index;
249 };
250
251 struct NET_DISPLAY_GROUP {
252         const char * grpi3_name;
253         const char * grpi3_comment;
254         uint32_t grpi3_group_id;
255         uint32_t grpi3_attributes;
256         uint32_t grpi3_next_index;
257 };
258
259 struct GROUP_INFO_0 {
260         const char * grpi0_name;
261 };
262
263 struct GROUP_INFO_1 {
264         const char * grpi1_name;
265         const char * grpi1_comment;
266 };
267
268 struct GROUP_INFO_2 {
269         const char * grpi2_name;
270         const char * grpi2_comment;
271         uint32_t grpi2_group_id;
272         uint32_t grpi2_attributes;
273 };
274
275 struct GROUP_INFO_3 {
276         const char * grpi3_name;
277         const char * grpi3_comment;
278         struct domsid *grpi3_group_sid;/* [unique] */
279         uint32_t grpi3_attributes;
280 };
281
282 struct GROUP_INFO_1002 {
283         const char * grpi1002_comment;
284 };
285
286 struct GROUP_INFO_1005 {
287         uint32_t grpi1005_attributes;
288 };
289
290 struct LOCALGROUP_INFO_0 {
291         const char * lgrpi0_name;
292 };
293
294 struct LOCALGROUP_INFO_1 {
295         const char * lgrpi1_name;
296         const char * lgrpi1_comment;
297 };
298
299 struct LOCALGROUP_INFO_1002 {
300         const char * lgrpi1002_comment;
301 };
302
303 struct TIME_OF_DAY_INFO {
304         uint32_t tod_elapsedt;
305         uint32_t tod_msecs;
306         uint32_t tod_hours;
307         uint32_t tod_mins;
308         uint32_t tod_secs;
309         uint32_t tod_hunds;
310         int32_t tod_timezone;
311         uint32_t tod_tinterval;
312         uint32_t tod_day;
313         uint32_t tod_month;
314         uint32_t tod_year;
315         uint32_t tod_weekday;
316 };
317
318
319 struct NetJoinDomain {
320         struct {
321                 const char * server;/* [unique] */
322                 const char * domain;/* [ref] */
323                 const char * account_ou;/* [unique] */
324                 const char * account;/* [unique] */
325                 const char * password;/* [unique] */
326                 uint32_t join_flags;
327         } in;
328
329         struct {
330                 enum NET_API_STATUS result;
331         } out;
332
333 };
334
335
336 struct NetUnjoinDomain {
337         struct {
338                 const char * server_name;/* [unique] */
339                 const char * account;/* [unique] */
340                 const char * password;/* [unique] */
341                 uint32_t unjoin_flags;
342         } in;
343
344         struct {
345                 enum NET_API_STATUS result;
346         } out;
347
348 };
349
350
351 struct NetGetJoinInformation {
352         struct {
353                 const char * server_name;/* [unique] */
354         } in;
355
356         struct {
357                 const char * *name_buffer;/* [ref] */
358                 uint16_t *name_type;/* [ref] */
359                 enum NET_API_STATUS result;
360         } out;
361
362 };
363
364
365 struct NetGetJoinableOUs {
366         struct {
367                 const char * server_name;/* [unique] */
368                 const char * domain;/* [ref] */
369                 const char * account;/* [unique] */
370                 const char * password;/* [unique] */
371         } in;
372
373         struct {
374                 uint32_t *ou_count;/* [ref] */
375                 const char * **ous;/* [ref] */
376                 enum NET_API_STATUS result;
377         } out;
378
379 };
380
381
382 struct NetServerGetInfo {
383         struct {
384                 const char * server_name;/* [unique] */
385                 uint32_t level;
386         } in;
387
388         struct {
389                 uint8_t **buffer;/* [ref] */
390                 enum NET_API_STATUS result;
391         } out;
392
393 };
394
395
396 struct NetServerSetInfo {
397         struct {
398                 const char * server_name;/* [unique] */
399                 uint32_t level;
400                 uint8_t *buffer;/* [ref] */
401         } in;
402
403         struct {
404                 uint32_t *parm_error;/* [ref] */
405                 enum NET_API_STATUS result;
406         } out;
407
408 };
409
410
411 struct NetGetDCName {
412         struct {
413                 const char * server_name;/* [unique] */
414                 const char * domain_name;/* [unique] */
415         } in;
416
417         struct {
418                 uint8_t **buffer;/* [ref] */
419                 enum NET_API_STATUS result;
420         } out;
421
422 };
423
424
425 struct NetGetAnyDCName {
426         struct {
427                 const char * server_name;/* [unique] */
428                 const char * domain_name;/* [unique] */
429         } in;
430
431         struct {
432                 uint8_t **buffer;/* [ref] */
433                 enum NET_API_STATUS result;
434         } out;
435
436 };
437
438
439 struct DsGetDcName {
440         struct {
441                 const char * server_name;/* [unique] */
442                 const char * domain_name;/* [ref] */
443                 struct GUID *domain_guid;/* [unique] */
444                 const char * site_name;/* [unique] */
445                 uint32_t flags;
446         } in;
447
448         struct {
449                 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
450                 enum NET_API_STATUS result;
451         } out;
452
453 };
454
455
456 struct NetUserAdd {
457         struct {
458                 const char * server_name;/* [unique] */
459                 uint32_t level;
460                 uint8_t *buffer;/* [ref] */
461         } in;
462
463         struct {
464                 uint32_t *parm_error;/* [ref] */
465                 enum NET_API_STATUS result;
466         } out;
467
468 };
469
470
471 struct NetUserDel {
472         struct {
473                 const char * server_name;/* [unique] */
474                 const char * user_name;/* [ref] */
475         } in;
476
477         struct {
478                 enum NET_API_STATUS result;
479         } out;
480
481 };
482
483
484 struct NetUserEnum {
485         struct {
486                 const char * server_name;/* [unique] */
487                 uint32_t level;
488                 uint32_t filter;
489                 uint32_t prefmaxlen;
490                 uint32_t *resume_handle;/* [ref] */
491         } in;
492
493         struct {
494                 uint8_t **buffer;/* [ref] */
495                 uint32_t *entries_read;/* [ref] */
496                 uint32_t *total_entries;/* [ref] */
497                 uint32_t *resume_handle;/* [ref] */
498                 enum NET_API_STATUS result;
499         } out;
500
501 };
502
503
504 struct NetUserChangePassword {
505         struct {
506                 const char * domain_name;
507                 const char * user_name;
508                 const char * old_password;
509                 const char * new_password;
510         } in;
511
512         struct {
513                 enum NET_API_STATUS result;
514         } out;
515
516 };
517
518
519 struct NetUserGetInfo {
520         struct {
521                 const char * server_name;
522                 const char * user_name;
523                 uint32_t level;
524         } in;
525
526         struct {
527                 uint8_t **buffer;/* [ref] */
528                 enum NET_API_STATUS result;
529         } out;
530
531 };
532
533
534 struct NetUserSetInfo {
535         struct {
536                 const char * server_name;
537                 const char * user_name;
538                 uint32_t level;
539                 uint8_t *buffer;/* [ref] */
540         } in;
541
542         struct {
543                 uint32_t *parm_err;/* [ref] */
544                 enum NET_API_STATUS result;
545         } out;
546
547 };
548
549
550 struct NetQueryDisplayInformation {
551         struct {
552                 const char * server_name;/* [unique] */
553                 uint32_t level;
554                 uint32_t idx;
555                 uint32_t entries_requested;
556                 uint32_t prefmaxlen;
557         } in;
558
559         struct {
560                 uint32_t *entries_read;/* [ref] */
561                 void **buffer;/* [noprint,ref] */
562                 enum NET_API_STATUS result;
563         } out;
564
565 };
566
567
568 struct NetGroupAdd {
569         struct {
570                 const char * server_name;
571                 uint32_t level;
572                 uint8_t *buffer;/* [ref] */
573         } in;
574
575         struct {
576                 uint32_t *parm_err;/* [ref] */
577                 enum NET_API_STATUS result;
578         } out;
579
580 };
581
582
583 struct NetGroupDel {
584         struct {
585                 const char * server_name;
586                 const char * group_name;
587         } in;
588
589         struct {
590                 enum NET_API_STATUS result;
591         } out;
592
593 };
594
595
596 struct NetGroupEnum {
597         struct {
598                 const char * server_name;
599                 uint32_t level;
600                 uint32_t prefmaxlen;
601                 uint32_t *resume_handle;/* [ref] */
602         } in;
603
604         struct {
605                 uint8_t **buffer;/* [ref] */
606                 uint32_t *entries_read;/* [ref] */
607                 uint32_t *total_entries;/* [ref] */
608                 uint32_t *resume_handle;/* [ref] */
609                 enum NET_API_STATUS result;
610         } out;
611
612 };
613
614
615 struct NetGroupSetInfo {
616         struct {
617                 const char * server_name;
618                 const char * group_name;
619                 uint32_t level;
620                 uint8_t *buffer;/* [ref] */
621         } in;
622
623         struct {
624                 uint32_t *parm_err;/* [ref] */
625                 enum NET_API_STATUS result;
626         } out;
627
628 };
629
630
631 struct NetGroupGetInfo {
632         struct {
633                 const char * server_name;
634                 const char * group_name;
635                 uint32_t level;
636         } in;
637
638         struct {
639                 uint8_t **buffer;/* [ref] */
640                 enum NET_API_STATUS result;
641         } out;
642
643 };
644
645
646 struct NetGroupAddUser {
647         struct {
648                 const char * server_name;
649                 const char * group_name;
650                 const char * user_name;
651         } in;
652
653         struct {
654                 enum NET_API_STATUS result;
655         } out;
656
657 };
658
659
660 struct NetGroupDelUser {
661         struct {
662                 const char * server_name;
663                 const char * group_name;
664                 const char * user_name;
665         } in;
666
667         struct {
668                 enum NET_API_STATUS result;
669         } out;
670
671 };
672
673
674 struct NetLocalGroupAdd {
675         struct {
676                 const char * server_name;
677                 uint32_t level;
678                 uint8_t *buffer;/* [ref] */
679         } in;
680
681         struct {
682                 uint32_t *parm_err;/* [ref] */
683                 enum NET_API_STATUS result;
684         } out;
685
686 };
687
688
689 struct NetLocalGroupDel {
690         struct {
691                 const char * server_name;
692                 const char * group_name;
693         } in;
694
695         struct {
696                 enum NET_API_STATUS result;
697         } out;
698
699 };
700
701
702 struct NetLocalGroupGetInfo {
703         struct {
704                 const char * server_name;
705                 const char * group_name;
706                 uint32_t level;
707         } in;
708
709         struct {
710                 uint8_t **buffer;/* [ref] */
711                 enum NET_API_STATUS result;
712         } out;
713
714 };
715
716
717 struct NetLocalGroupSetInfo {
718         struct {
719                 const char * server_name;
720                 const char * group_name;
721                 uint32_t level;
722                 uint8_t *buffer;/* [ref] */
723         } in;
724
725         struct {
726                 uint32_t *parm_err;/* [ref] */
727                 enum NET_API_STATUS result;
728         } out;
729
730 };
731
732
733 struct NetLocalGroupEnum {
734         struct {
735                 const char * server_name;
736                 uint32_t level;
737                 uint32_t prefmaxlen;
738                 uint32_t *resume_handle;/* [ref] */
739         } in;
740
741         struct {
742                 uint8_t **buffer;/* [ref] */
743                 uint32_t *entries_read;/* [ref] */
744                 uint32_t *total_entries;/* [ref] */
745                 uint32_t *resume_handle;/* [ref] */
746                 enum NET_API_STATUS result;
747         } out;
748
749 };
750
751
752 struct NetRemoteTOD {
753         struct {
754                 const char * server_name;
755         } in;
756
757         struct {
758                 uint8_t **buffer;/* [ref] */
759                 enum NET_API_STATUS result;
760         } out;
761
762 };
763
764 #endif /* _HEADER_libnetapi */