netapi: add remaining NetLocalGroup*Member calls to IDL.
[Samba.git] / source / librpc / idl / libnetapi.idl
blob1bb0aafe94a41b6c1082227a24ad00d19e3ef29d
1 /*
2 libnetapi interface definition
3 */
5 cpp_quote("#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))")
6 cpp_quote("#ifndef MAXSUBAUTHS")
7 cpp_quote("#define MAXSUBAUTHS 15 /* max sub authorities in a SID */")
8 cpp_quote("#endif")
11 pointer_default(unique)
13 interface libnetapi
15 const int ERROR_MORE_DATA = 234L;
17 [public] typedef [v1_enum] enum {
18 NERR_Success=0
19 } NET_API_STATUS;
21 [public] typedef struct {
22 uint8 sid_rev_num;
23 uint8 num_auths;
24 uint8 id_auth[6];
25 uint32 sub_auths[MAXSUBAUTHS];
26 } domsid;
28 /*******************************************/
29 /* NetJoinDomain */
30 /*******************************************/
32 [nopush,nopull] NET_API_STATUS NetJoinDomain(
33 [in,unique] string *server,
34 [in,ref] string *domain,
35 [in,unique] string *account_ou,
36 [in,unique] string *account,
37 [in,unique] string *password,
38 [in] uint32 join_flags
41 /*******************************************/
42 /* NetUnjoinDomain */
43 /*******************************************/
45 [nopush,nopull] NET_API_STATUS NetUnjoinDomain(
46 [in,unique] string *server_name,
47 [in,unique] string *account,
48 [in,unique] string *password,
49 [in] uint32 unjoin_flags
52 /*******************************************/
53 /* NetGetJoinInformation */
54 /*******************************************/
56 [nopush,nopull] NET_API_STATUS NetGetJoinInformation(
57 [in,unique] string *server_name,
58 [out] string **name_buffer,
59 [out] uint16 *name_type
62 /*******************************************/
63 /* NetGetJoinableOUs */
64 /*******************************************/
66 [nopush,nopull] NET_API_STATUS NetGetJoinableOUs(
67 [in,unique] string *server_name,
68 [in,ref] string *domain,
69 [in,unique] string *account,
70 [in,unique] string *password,
71 [out] uint32 *ou_count,
72 [out] string ***ous
75 /*******************************************/
76 /* NetServerGetInfo */
77 /*******************************************/
79 [public] typedef struct {
80 string sv1005_comment;
81 } SERVER_INFO_1005;
83 [nopush,nopull] NET_API_STATUS NetServerGetInfo(
84 [in,unique] string *server_name,
85 [in] uint32 level,
86 [out] uint8 **buffer
89 /*******************************************/
90 /* NetServerSetInfo */
91 /*******************************************/
93 [nopush,nopull] NET_API_STATUS NetServerSetInfo(
94 [in,unique] string *server_name,
95 [in] uint32 level,
96 [in] uint8 *buffer,
97 [out] uint32 *parm_error
100 /*******************************************/
101 /* NetGetDCName */
102 /*******************************************/
104 [nopush,nopull] NET_API_STATUS NetGetDCName(
105 [in,unique] string *server_name,
106 [in,unique] string *domain_name,
107 [out] uint8 **buffer
110 /*******************************************/
111 /* NetGetAnyDCName */
112 /*******************************************/
114 [nopush,nopull] NET_API_STATUS NetGetAnyDCName(
115 [in,unique] string *server_name,
116 [in,unique] string *domain_name,
117 [out] uint8 **buffer
120 /*******************************************/
121 /* DsGetDcName */
122 /*******************************************/
124 [public] typedef struct {
125 string domain_controller_name;
126 string domain_controller_address;
127 uint32 domain_controller_address_type;
128 GUID domain_guid;
129 string domain_name;
130 string dns_forest_name;
131 uint32 flags;
132 string dc_site_name;
133 string client_site_name;
134 } DOMAIN_CONTROLLER_INFO;
136 [nopush,nopull] NET_API_STATUS DsGetDcName(
137 [in,unique] string *server_name,
138 [in,ref] string *domain_name,
139 [in,unique] GUID *domain_guid,
140 [in,unique] string *site_name,
141 [in] uint32 flags,
142 [out,ref] DOMAIN_CONTROLLER_INFO **dc_info
145 /*******************************************/
146 /* NetUserAdd */
147 /*******************************************/
149 [public] typedef struct {
150 string usri0_name;
151 } USER_INFO_0;
153 [public] typedef struct {
154 string usri1_name;
155 string usri1_password;
156 uint32 usri1_password_age;
157 uint32 usri1_priv;
158 string usri1_home_dir;
159 string usri1_comment;
160 uint32 usri1_flags;
161 string usri1_script_path;
162 } USER_INFO_1;
164 [public] typedef struct {
165 string usri2_name;
166 string usri2_password;
167 uint32 usri2_password_age;
168 uint32 usri2_priv;
169 string usri2_home_dir;
170 string usri2_comment;
171 uint32 usri2_flags;
172 string usri2_script_path;
173 uint32 usri2_auth_flags;
174 string usri2_full_name;
175 string usri2_usr_comment;
176 string usri2_parms;
177 string usri2_workstations;
178 uint32 usri2_last_logon;
179 uint32 usri2_last_logoff;
180 uint32 usri2_acct_expires;
181 uint32 usri2_max_storage;
182 uint32 usri2_units_per_week;
183 uint8 *usri2_logon_hours;
184 uint32 usri2_bad_pw_count;
185 uint32 usri2_num_logons;
186 string usri2_logon_server;
187 uint32 usri2_country_code;
188 uint32 usri2_code_page;
189 } USER_INFO_2;
191 [public] typedef struct {
192 string usri3_name;
193 uint32 usri3_password_age;
194 uint32 usri3_priv;
195 string usri3_home_dir;
196 string usri3_comment;
197 uint32 usri3_flags;
198 string usri3_script_path;
199 uint32 usri3_auth_flags;
200 string usri3_full_name;
201 string usri3_usr_comment;
202 string usri3_parms;
203 string usri3_workstations;
204 uint32 usri3_last_logon;
205 uint32 usri3_last_logoff;
206 uint32 usri3_acct_expires;
207 uint32 usri3_max_storage;
208 uint32 usri3_units_per_week;
209 uint8 *usri3_logon_hours;
210 uint32 usri3_bad_pw_count;
211 uint32 usri3_num_logons;
212 string usri3_logon_server;
213 uint32 usri3_country_code;
214 uint32 usri3_code_page;
215 uint32 usri3_user_id;
216 uint32 usri3_primary_group_id;
217 string usri3_profile;
218 string usri3_home_dir_drive;
219 uint32 usri3_password_expired;
220 } USER_INFO_3;
222 [public] typedef struct {
223 string usri4_name;
224 string usri4_password;
225 uint32 usri4_password_age;
226 uint32 usri4_priv;
227 string usri4_home_dir;
228 string usri4_comment;
229 uint32 usri4_flags;
230 string usri4_script_path;
231 uint32 usri4_auth_flags;
232 string usri4_full_name;
233 string usri4_usr_comment;
234 string usri4_parms;
235 string usri4_workstations;
236 uint32 usri4_last_logon;
237 uint32 usri4_last_logoff;
238 uint32 usri4_acct_expires;
239 uint32 usri4_max_storage;
240 uint32 usri4_units_per_week;
241 uint8 *usri4_logon_hours;
242 uint32 usri4_bad_pw_count;
243 uint32 usri4_num_logons;
244 string usri4_logon_server;
245 uint32 usri4_country_code;
246 uint32 usri4_code_page;
247 dom_sid *usri4_user_sid;
248 uint32 usri4_primary_group_id;
249 string usri4_profile;
250 string usri4_home_dir_drive;
251 uint32 usri4_password_expired;
252 } USER_INFO_4;
254 [public] typedef struct {
255 string usri10_name;
256 string usri10_comment;
257 string usri10_usr_comment;
258 string usri10_full_name;
259 } USER_INFO_10;
261 [public] typedef struct {
262 string usri11_name;
263 string usri11_comment;
264 string usri11_usr_comment;
265 string usri11_full_name;
266 uint32 usri11_priv;
267 uint32 usri11_auth_flags;
268 uint32 usri11_password_age;
269 string usri11_home_dir;
270 string usri11_parms;
271 uint32 usri11_last_logon;
272 uint32 usri11_last_logoff;
273 uint32 usri11_bad_pw_count;
274 uint32 usri11_num_logons;
275 string usri11_logon_server;
276 uint32 usri11_country_code;
277 string usri11_workstations;
278 uint32 usri11_max_storage;
279 uint32 usri11_units_per_week;
280 uint8 *usri11_logon_hours;
281 uint32 usri11_code_page;
282 } USER_INFO_11;
284 [public] typedef struct {
285 string usri20_name;
286 string usri20_full_name;
287 string usri20_comment;
288 uint32 usri20_flags;
289 uint32 usri20_user_id;
290 } USER_INFO_20;
292 const int ENCRYPTED_PWLEN = 256;
294 [public] typedef struct {
295 uint8 usri21_password[ENCRYPTED_PWLEN];
296 } USER_INFO_21;
298 [public] typedef struct {
299 string usri22_name;
300 uint8 usri22_password[ENCRYPTED_PWLEN];
301 uint32 usri22_password_age;
302 uint32 usri22_priv;
303 string usri22_home_dir;
304 string usri22_comment;
305 uint32 usri22_flags;
306 uint32 usri22_script_path;
307 uint32 usri22_auth_flags;
308 string usri22_full_name;
309 string usri22_usr_comment;
310 string usri22_parms;
311 string usri22_workstations;
312 uint32 usri22_last_logon;
313 uint32 usri22_last_logoff;
314 uint32 usri22_acct_expires;
315 uint32 usri22_max_storage;
316 uint32 usri22_units_per_week;
317 uint8 *usri22_logon_hours;
318 uint32 usri22_bad_pw_count;
319 uint32 usri22_num_logons;
320 string usri22_logon_server;
321 uint32 usri22_country_code;
322 uint32 usri22_code_page;
323 } USER_INFO_22;
325 [public] typedef struct {
326 string usri23_name;
327 string usri23_full_name;
328 string usri23_comment;
329 uint32 usri23_flags;
330 domsid *usri23_user_sid;
331 } USER_INFO_23;
333 [public] typedef struct {
334 string usri1003_password;
335 } USER_INFO_1003;
337 [public] typedef struct {
338 uint32 usri1005_priv;
339 } USER_INFO_1005;
341 [public] typedef struct {
342 string usri1006_home_dir;
343 } USER_INFO_1006;
345 [public] typedef struct {
346 string usri1007_comment;
347 } USER_INFO_1007;
349 [public] typedef struct {
350 uint32 usri1008_flags;
351 } USER_INFO_1008;
353 [public] typedef struct {
354 string usri1009_script_path;
355 } USER_INFO_1009;
357 [public] typedef struct {
358 uint32 usri1010_auth_flags;
359 } USER_INFO_1010;
361 [public] typedef struct {
362 string usri1011_full_name;
363 } USER_INFO_1011;
365 [public] typedef struct {
366 string usri1012_usr_comment;
367 } USER_INFO_1012;
369 [public] typedef struct {
370 string usri1013_parms;
371 } USER_INFO_1013;
373 [public] typedef struct {
374 string usri1014_workstations;
375 } USER_INFO_1014;
377 [public] typedef struct {
378 uint32 usri1017_acct_expires;
379 } USER_INFO_1017;
381 [public] typedef struct {
382 uint32 usri1018_max_storage;
383 } USER_INFO_1018;
385 [public] typedef struct {
386 uint32 usri1020_units_per_week;
387 uint8 *usri1020_logon_hours;
388 } USER_INFO_1020;
390 [public] typedef struct {
391 string usri1023_logon_server;
392 } USER_INFO_1023;
394 [public] typedef struct {
395 uint32 usri1024_country_code;
396 } USER_INFO_1024;
398 [public] typedef struct {
399 uint32 usri1025_code_page;
400 } USER_INFO_1025;
402 [public] typedef struct {
403 uint32 usri1051_primary_group_id;
404 } USER_INFO_1051;
406 [public] typedef struct {
407 string usri1052_profile;
408 } USER_INFO_1052;
410 [public] typedef struct {
411 string usri1053_home_dir_drive;
412 } USER_INFO_1053;
414 [public] typedef struct {
415 string usriX_name;
416 string usriX_password;
417 uint32 usriX_password_age;
418 uint32 usriX_priv;
419 string usriX_home_dir;
420 string usriX_comment;
421 uint32 usriX_flags;
422 string usriX_script_path;
423 uint32 usriX_auth_flags;
424 string usriX_full_name;
425 string usriX_usr_comment;
426 string usriX_parms;
427 string usriX_workstations;
428 uint32 usriX_last_logon;
429 uint32 usriX_last_logoff;
430 uint32 usriX_acct_expires;
431 uint32 usriX_max_storage;
432 uint32 usriX_units_per_week;
433 uint8 *usriX_logon_hours;
434 uint32 usriX_bad_pw_count;
435 uint32 usriX_num_logons;
436 string usriX_logon_server;
437 uint32 usriX_country_code;
438 uint32 usriX_code_page;
439 } USER_INFO_X;
441 [nopush,nopull] NET_API_STATUS NetUserAdd(
442 [in,unique] string *server_name,
443 [in] uint32 level,
444 [in,ref] uint8 *buffer,
445 [out,ref] uint32 *parm_error
448 /*******************************************/
449 /* NetUserDel */
450 /*******************************************/
452 [nopush,nopull] NET_API_STATUS NetUserDel(
453 [in,unique] string *server_name,
454 [in,ref] string *user_name
457 /*******************************************/
458 /* NetUserEnum */
459 /*******************************************/
461 const int FILTER_TEMP_DUPLICATE_ACCOUNT = 0x0001;
462 const int FILTER_NORMAL_ACCOUNT = 0x0002;
463 const int FILTER_INTERDOMAIN_TRUST_ACCOUNT = 0x0008;
464 const int FILTER_WORKSTATION_TRUST_ACCOUNT = 0x0010;
465 const int FILTER_SERVER_TRUST_ACCOUNT = 0x0020;
467 [nopush,nopull] NET_API_STATUS NetUserEnum(
468 [in,unique] string *server_name,
469 [in] uint32 level,
470 [in] uint32 filter,
471 [out,ref] uint8 **buffer,
472 [in] uint32 prefmaxlen,
473 [out,ref] uint32 *entries_read,
474 [out,ref] uint32 *total_entries,
475 [in,out,ref] uint32 *resume_handle
478 /*******************************************/
479 /* NetUserChangePassword */
480 /*******************************************/
482 [nopush,nopull] NET_API_STATUS NetUserChangePassword(
483 [in] string domain_name,
484 [in] string user_name,
485 [in] string old_password,
486 [in] string new_password
489 /*******************************************/
490 /* NetUserGetInfo */
491 /*******************************************/
493 [nopush,nopull] NET_API_STATUS NetUserGetInfo(
494 [in] string server_name,
495 [in] string user_name,
496 [in] uint32 level,
497 [out] uint8 **buffer
500 /*******************************************/
501 /* NetUserSetInfo */
502 /*******************************************/
504 [nopush,nopull] NET_API_STATUS NetUserSetInfo(
505 [in] string server_name,
506 [in] string user_name,
507 [in] uint32 level,
508 [in] uint8 *buffer,
509 [out] uint32 *parm_err
512 /*******************************************/
513 /* NetUserModalsGet */
514 /*******************************************/
516 const int TIMEQ_FOREVER = (uint32_t)-1L;
518 typedef struct {
519 uint32 usrmod0_min_passwd_len;
520 uint32 usrmod0_max_passwd_age;
521 uint32 usrmod0_min_passwd_age;
522 uint32 usrmod0_force_logoff;
523 uint32 usrmod0_password_hist_len;
524 } USER_MODALS_INFO_0;
526 typedef struct {
527 uint32 usrmod1_role;
528 string usrmod1_primary;
529 } USER_MODALS_INFO_1;
531 typedef struct {
532 string usrmod2_domain_name;
533 domsid *usrmod2_domain_id;
534 } USER_MODALS_INFO_2;
536 typedef struct {
537 uint32 usrmod3_lockout_duration;
538 uint32 usrmod3_lockout_observation_window;
539 uint32 usrmod3_lockout_threshold;
540 } USER_MODALS_INFO_3;
542 typedef struct {
543 uint32 usrmod1001_min_passwd_len;
544 } USER_MODALS_INFO_1001;
546 typedef struct {
547 uint32 usrmod1002_max_passwd_age;
548 } USER_MODALS_INFO_1002;
550 typedef struct {
551 uint32 usrmod1003_min_passwd_age;
552 } USER_MODALS_INFO_1003;
554 typedef struct {
555 uint32 usrmod1004_force_logoff;
556 } USER_MODALS_INFO_1004;
558 typedef struct {
559 uint32 usrmod1005_password_hist_len;
560 } USER_MODALS_INFO_1005;
562 typedef struct {
563 uint32 usrmod1006_role;
564 } USER_MODALS_INFO_1006;
566 typedef struct {
567 string usrmod1007_primary;
568 } USER_MODALS_INFO_1007;
570 [nopush,nopull] NET_API_STATUS NetUserModalsGet(
571 [in] string server_name,
572 [in] uint32 level,
573 [out,ref] uint8 **buffer
576 /*******************************************/
577 /* NetUserModalsSet */
578 /*******************************************/
580 [nopush,nopull] NET_API_STATUS NetUserModalsSet(
581 [in] string server_name,
582 [in] uint32 level,
583 [in] uint8 *buffer,
584 [out,ref] uint32 *parm_err
587 /*******************************************/
588 /* NetQueryDisplayInformation */
589 /*******************************************/
591 [public] typedef struct {
592 string usri1_name;
593 string usri1_comment;
594 uint32 usri1_flags;
595 string usri1_full_name;
596 uint32 usri1_user_id;
597 uint32 usri1_next_index;
598 } NET_DISPLAY_USER;
600 [public] typedef struct {
601 string usri2_name;
602 string usri2_comment;
603 uint32 usri2_flags;
604 uint32 usri2_user_id;
605 uint32 usri2_next_index;
606 } NET_DISPLAY_MACHINE;
608 [public] typedef struct {
609 string grpi3_name;
610 string grpi3_comment;
611 uint32 grpi3_group_id;
612 uint32 grpi3_attributes;
613 uint32 grpi3_next_index;
614 } NET_DISPLAY_GROUP;
616 [nopush,nopull] NET_API_STATUS NetQueryDisplayInformation(
617 [in,unique] string *server_name,
618 [in] uint32 level,
619 [in] uint32 idx,
620 [in] uint32 entries_requested,
621 [in] uint32 prefmaxlen,
622 [out,ref] uint32 *entries_read,
623 [out,ref,noprint] void **buffer
626 /*******************************************/
627 /* NetGroupAdd */
628 /*******************************************/
630 typedef struct {
631 string grpi0_name;
632 } GROUP_INFO_0;
634 typedef struct {
635 string grpi1_name;
636 string grpi1_comment;
637 } GROUP_INFO_1;
639 typedef struct {
640 string grpi2_name;
641 string grpi2_comment;
642 uint32 grpi2_group_id;
643 uint32 grpi2_attributes;
644 } GROUP_INFO_2;
646 typedef struct {
647 string grpi3_name;
648 string grpi3_comment;
649 domsid *grpi3_group_sid;
650 uint32 grpi3_attributes;
651 } GROUP_INFO_3;
653 typedef struct {
654 string grpi1002_comment;
655 } GROUP_INFO_1002;
657 typedef struct {
658 uint32 grpi1005_attributes;
659 } GROUP_INFO_1005;
661 [nopush,nopull] NET_API_STATUS NetGroupAdd(
662 [in] string server_name,
663 [in] uint32 level,
664 [in] uint8 *buffer,
665 [out] uint32 *parm_err
668 /*******************************************/
669 /* NetGroupDel */
670 /*******************************************/
672 [nopush,nopull] NET_API_STATUS NetGroupDel(
673 [in] string server_name,
674 [in] string group_name
677 /*******************************************/
678 /* NetGroupEnum */
679 /*******************************************/
681 [nopush,nopull] NET_API_STATUS NetGroupEnum(
682 [in] string server_name,
683 [in] uint32 level,
684 [out,ref] uint8 **buffer,
685 [in] uint32 prefmaxlen,
686 [out,ref] uint32 *entries_read,
687 [out,ref] uint32 *total_entries,
688 [in,out,ref] uint32 *resume_handle
691 /*******************************************/
692 /* NetGroupSetInfo */
693 /*******************************************/
695 [nopush,nopull] NET_API_STATUS NetGroupSetInfo(
696 [in] string server_name,
697 [in] string group_name,
698 [in] uint32 level,
699 [in] uint8 *buffer,
700 [out] uint32 *parm_err
703 /*******************************************/
704 /* NetGroupGetInfo */
705 /*******************************************/
707 [nopush,nopull] NET_API_STATUS NetGroupGetInfo(
708 [in] string server_name,
709 [in] string group_name,
710 [in] uint32 level,
711 [out] uint8 **buffer
714 /*******************************************/
715 /* NetGroupAddUser */
716 /*******************************************/
718 [nopush,nopull] NET_API_STATUS NetGroupAddUser(
719 [in] string server_name,
720 [in] string group_name,
721 [in] string user_name
724 /*******************************************/
725 /* NetGroupDelUser */
726 /*******************************************/
728 [nopush,nopull] NET_API_STATUS NetGroupDelUser(
729 [in] string server_name,
730 [in] string group_name,
731 [in] string user_name
734 /*******************************************/
735 /* NetGroupGetUsers */
736 /*******************************************/
738 [public] typedef struct {
739 string grui0_name;
740 } GROUP_USERS_INFO_0;
742 [public] typedef struct {
743 string grui1_name;
744 uint32 grui1_attributes;
745 } GROUP_USERS_INFO_1;
747 [nopush,nopull] NET_API_STATUS NetGroupGetUsers(
748 [in] string server_name,
749 [in] string group_name,
750 [in] uint32 level,
751 [out] uint8 **buffer,
752 [in] uint32 prefmaxlen,
753 [out,ref] uint32 *entries_read,
754 [out,ref] uint32 *total_entries,
755 [in,out,ref] uint32 *resume_handle
758 /*******************************************/
759 /* NetLocalGroupAdd */
760 /*******************************************/
762 typedef struct {
763 string lgrpi0_name;
764 } LOCALGROUP_INFO_0;
766 typedef struct {
767 string lgrpi1_name;
768 string lgrpi1_comment;
769 } LOCALGROUP_INFO_1;
771 typedef struct {
772 string lgrpi1002_comment;
773 } LOCALGROUP_INFO_1002;
775 [nopush,nopull] NET_API_STATUS NetLocalGroupAdd(
776 [in] string server_name,
777 [in] uint32 level,
778 [in] uint8 *buffer,
779 [out,ref] uint32 *parm_err
782 /*******************************************/
783 /* NetLocalGroupDel */
784 /*******************************************/
786 [nopush,nopull] NET_API_STATUS NetLocalGroupDel(
787 [in] string server_name,
788 [in] string group_name
791 /*******************************************/
792 /* NetLocalGroupGetInfo */
793 /*******************************************/
795 [nopush,nopull] NET_API_STATUS NetLocalGroupGetInfo(
796 [in] string server_name,
797 [in] string group_name,
798 [in] uint32 level,
799 [out,ref] uint8 **buffer
802 /*******************************************/
803 /* NetLocalGroupSetInfo */
804 /*******************************************/
806 [nopush,nopull] NET_API_STATUS NetLocalGroupSetInfo(
807 [in] string server_name,
808 [in] string group_name,
809 [in] uint32 level,
810 [in,ref] uint8 *buffer,
811 [out,ref] uint32 *parm_err
814 /*******************************************/
815 /* NetLocalGroupEnum */
816 /*******************************************/
818 [nopush,nopull] NET_API_STATUS NetLocalGroupEnum(
819 [in] string server_name,
820 [in] uint32 level,
821 [out,ref] uint8 **buffer,
822 [in] uint32 prefmaxlen,
823 [out,ref] uint32 *entries_read,
824 [out,ref] uint32 *total_entries,
825 [in,out,ref] uint32 *resume_handle
828 /*******************************************/
829 /* NetLocalGroupAddMembers */
830 /*******************************************/
832 typedef enum {
833 SidTypeUser = 1,
834 SidTypeGroup = 2,
835 SidTypeDomain = 3,
836 SidTypeAlias = 4,
837 SidTypeWellKnownGroup = 5,
838 SidTypeDeletedAccount = 6,
839 SidTypeInvalid = 7,
840 SidTypeUnknown = 8,
841 SidTypeComputer = 9,
842 SidTypeLabel = 10
843 } SID_NAME_USE;
845 typedef struct {
846 domsid *lgrmi0_sid;
847 } LOCALGROUP_MEMBERS_INFO_0;
849 typedef struct {
850 domsid *lgrmi1_sid;
851 SID_NAME_USE lgrmi1_sidusage;
852 string lgrmi1_name;
853 } LOCALGROUP_MEMBERS_INFO_1;
855 typedef struct {
856 domsid *lgrmi2_sid;
857 SID_NAME_USE lgrmi2_sidusage;
858 string lgrmi2_domainandname;
859 } LOCALGROUP_MEMBERS_INFO_2;
861 typedef struct {
862 string lgrmi3_domainandname;
863 } LOCALGROUP_MEMBERS_INFO_3;
865 [nopush,nopull] NET_API_STATUS NetLocalGroupAddMembers(
866 [in] string server_name,
867 [in] string group_name,
868 [in] uint32 level,
869 [in] uint8 *buffer,
870 [in] uint32 total_entries
873 /*******************************************/
874 /* NetLocalGroupDelMembers */
875 /*******************************************/
877 [nopush,nopull] NET_API_STATUS NetLocalGroupDelMembers(
878 [in] string server_name,
879 [in] string group_name,
880 [in] uint32 level,
881 [in] uint8 *buffer,
882 [in] uint32 total_entries
885 /*******************************************/
886 /* NetLocalGroupGetMembers */
887 /*******************************************/
889 [nopush,nopull] NET_API_STATUS NetLocalGroupGetMembers(
890 [in] string server_name,
891 [in] string local_group_name,
892 [in] uint32 level,
893 [out] uint8 **buffer,
894 [in] uint32 prefmaxlen,
895 [out] uint32 *entries_read,
896 [out] uint32 *total_entries,
897 [in,out] uint32 *resume_handle
900 /*******************************************/
901 /* NetLocalGroupSetMembers */
902 /*******************************************/
904 [nopush,nopull] NET_API_STATUS NetLocalGroupSetMembers(
905 [in] string server_name,
906 [in] string group_name,
907 [in] uint32 level,
908 [in] uint8 *buffer,
909 [in] uint32 total_entries
912 /*******************************************/
913 /* NetRemoteTOD */
914 /*******************************************/
916 typedef struct {
917 uint32 tod_elapsedt;
918 uint32 tod_msecs;
919 uint32 tod_hours;
920 uint32 tod_mins;
921 uint32 tod_secs;
922 uint32 tod_hunds;
923 int32 tod_timezone;
924 uint32 tod_tinterval;
925 uint32 tod_day;
926 uint32 tod_month;
927 uint32 tod_year;
928 uint32 tod_weekday;
929 } TIME_OF_DAY_INFO;
931 [nopush,nopull] NET_API_STATUS NetRemoteTOD(
932 [in] string server_name,
933 [out,ref] uint8 **buffer