source: branches/samba-3.3.x/source/librpc/gen_ndr/libnetapi.h

Last change on this file was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

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