a3090cefd6acfc37cf69217b9d757f562d773a7b
[samba.git] / source3 / include / rpc_samr.h
1 /* 
2    Unix SMB/Netbios implementation.
3    Version 1.9.
4    SMB parameters and setup
5    Copyright (C) Andrew Tridgell 1992-1998
6    Copyright (C) Luke Kenneth Casson Leighton 1996-1998
7    Copyright (C) Paul Ashton 1997-1998
8    
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13    
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18    
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 */
23
24 #ifndef _RPC_SAMR_H /* _RPC_SAMR_H */
25 #define _RPC_SAMR_H 
26
27
28 #include "rpc_misc.h"
29
30
31 /*******************************************************************
32  the following information comes from a QuickView on samsrv.dll,
33  and gives an idea of exactly what is needed:
34  
35 x SamrAddMemberToAlias
36 x SamrAddMemberToGroup
37 SamrAddMultipleMembersToAlias
38 x SamrChangePasswordUser
39 x SamrCloseHandle
40 x SamrConnect
41 x SamrCreateAliasInDomain
42 x SamrCreateGroupInDomain
43 SamrCreateUserInDomain
44 ? SamrDeleteAlias
45 SamrDeleteGroup
46 SamrDeleteUser
47 x SamrEnumerateAliasesInDomain
48 SamrEnumerateDomainsInSamServer
49 x SamrEnumerateGroupsInDomain
50 x SamrEnumerateUsersInDomain
51 SamrGetUserDomainPasswordInformation
52 SamrLookupDomainInSamServer
53 ? SamrLookupIdsInDomain
54 x SamrLookupNamesInDomain
55 x SamrOpenAlias
56 x SamrOpenDomain
57 x SamrOpenGroup
58 x SamrOpenUser
59 x SamrQueryDisplayInformation
60 x SamrQueryInformationAlias
61 SamrQueryInformationDomain
62 ? SamrQueryInformationUser
63 SamrQuerySecurityObject
64 SamrRemoveMemberFromAlias
65 SamrRemoveMemberFromForiegnDomain
66 SamrRemoveMemberFromGroup
67 SamrRemoveMultipleMembersFromAlias
68 x SamrSetInformationAlias
69 SamrSetInformationDomain
70 x SamrSetInformationGroup
71 SamrSetInformationUser
72 SamrSetMemberAttributesOfGroup
73 SamrSetSecurityObject
74 SamrShutdownSamServer
75 SamrTestPrivateFunctionsDomain
76 SamrTestPrivateFunctionsUser
77
78 ********************************************************************/
79
80 #define SAMR_CONNECT_ANON      0x00
81 #define SAMR_CLOSE_HND         0x01
82
83 #define SAMR_UNKNOWN_3         0x03
84 #define SAMR_OPEN_DOMAIN       0x07
85
86 #define SAMR_QUERY_DOMAIN_INFO 0x08
87
88 #define SAMR_CREATE_DOM_GROUP  0x0a
89 #define SAMR_ENUM_DOM_USERS    0x0d
90 #define SAMR_CREATE_DOM_ALIAS  0x0e
91 #define SAMR_ENUM_DOM_ALIASES  0x0f
92 #define SAMR_QUERY_USERALIASES 0x10
93
94 #define SAMR_LOOKUP_NAMES      0x11
95 #define SAMR_LOOKUP_RIDS       0x12
96
97 #define SAMR_OPEN_GROUP        0x13
98 #define SAMR_QUERY_GROUPINFO   0x14
99 #define SAMR_SET_GROUPINFO     0x15
100 #define SAMR_ADD_GROUPMEM      0x16
101 #define SAMR_DELETE_DOM_GROUP  0x17
102 #define SAMR_DEL_GROUPMEM      0x18
103 #define SAMR_QUERY_GROUPMEM    0x19
104
105 #define SAMR_OPEN_ALIAS        0x1b
106 #define SAMR_QUERY_ALIASINFO   0x1c
107 #define SAMR_SET_ALIASINFO     0x1d
108 #define SAMR_DELETE_DOM_ALIAS  0x1e
109 #define SAMR_ADD_ALIASMEM      0x1f
110 #define SAMR_DEL_ALIASMEM      0x20
111 #define SAMR_QUERY_ALIASMEM    0x21
112
113 #define SAMR_OPEN_USER         0x22
114
115 #define SAMR_QUERY_USERINFO    0x24
116 #define SAMR_QUERY_USERGROUPS  0x27
117 #define SAMR_QUERY_DISPINFO    0x28
118
119 #define SAMR_UNKNOWN_2C        0x2c
120 #define SAMR_ENUM_DOM_GROUPS   0x30
121 #define SAMR_UNKNOWN_32        0x32
122 #define SAMR_UNKNOWN_34        0x34
123
124 #define SAMR_CHGPASSWD_USER    0x37
125 #define SAMR_UNKNOWN_38        0x38
126
127 #define SAMR_CONNECT           0x39
128
129
130 typedef struct logon_hours_info
131 {
132         uint32 len; /* normally 21 bytes */
133         uint8 hours[32];
134
135 } LOGON_HRS;
136
137 /* SAM_USER_INFO_21 */
138 typedef struct sam_user_info_21
139 {
140         NTTIME logon_time;            /* logon time */
141         NTTIME logoff_time;           /* logoff time */
142         NTTIME kickoff_time;          /* kickoff time */
143         NTTIME pass_last_set_time;    /* password last set time */
144         NTTIME pass_can_change_time;  /* password can change time */
145         NTTIME pass_must_change_time; /* password must change time */
146
147         UNIHDR hdr_user_name;    /* username unicode string header */
148         UNIHDR hdr_full_name;    /* user's full name unicode string header */
149         UNIHDR hdr_home_dir;     /* home directory unicode string header */
150         UNIHDR hdr_dir_drive;    /* home drive unicode string header */
151         UNIHDR hdr_logon_script; /* logon script unicode string header */
152         UNIHDR hdr_profile_path; /* profile path unicode string header */
153         UNIHDR hdr_acct_desc  ;  /* user description */
154         UNIHDR hdr_workstations; /* comma-separated workstations user can log in from */
155         UNIHDR hdr_unknown_str ; /* don't know what this is, yet. */
156         UNIHDR hdr_munged_dial ; /* munged path name and dial-back tel number */
157
158         uint8 lm_pwd[16];    /* lm user passwords */
159         uint8 nt_pwd[16];    /* nt user passwords */
160
161         uint32 user_rid;      /* Primary User ID */
162         uint32 group_rid;     /* Primary Group ID */
163
164         uint16 acb_info; /* account info (ACB_xxxx bit-mask) */
165         /* uint8 pad[2] */
166
167         uint32 unknown_3; /* 0x00ff ffff */
168
169         uint16 logon_divs; /* 0x0000 00a8 which is 168 which is num hrs in a week */
170         /* uint8 pad[2] */
171         uint32 ptr_logon_hrs; /* unknown pointer */
172
173         uint32 unknown_5;     /* 0x0002 0000 */
174
175         uint8 padding1[8];
176
177         UNISTR2 uni_user_name;    /* username unicode string */
178         UNISTR2 uni_full_name;    /* user's full name unicode string */
179         UNISTR2 uni_home_dir;     /* home directory unicode string */
180         UNISTR2 uni_dir_drive;    /* home directory drive unicode string */
181         UNISTR2 uni_logon_script; /* logon script unicode string */
182         UNISTR2 uni_profile_path; /* profile path unicode string */
183         UNISTR2 uni_acct_desc  ;  /* user description unicode string */
184         UNISTR2 uni_workstations; /* login from workstations unicode string */
185         UNISTR2 uni_unknown_str ; /* don't know what this is, yet. */
186         UNISTR2 uni_munged_dial ; /* munged path name and dial-back tel number */
187
188         uint32 unknown_6; /* 0x0000 04ec */
189         uint32 padding4;
190
191         LOGON_HRS logon_hrs;
192
193 } SAM_USER_INFO_21;
194
195
196 /* SAM_USER_INFO_11 */
197 typedef struct sam_user_info_11
198 {
199         uint8  padding_0[16];  /* 0 - padding 16 bytes */
200         NTTIME expiry;         /* expiry time or something? */
201         uint8  padding_1[24];  /* 0 - padding 24 bytes */
202
203         UNIHDR hdr_mach_acct;  /* unicode header for machine account */
204         uint32 padding_2;      /* 0 - padding 4 bytes */
205
206         uint32 ptr_1;          /* pointer */
207         uint8  padding_3[32];  /* 0 - padding 32 bytes */
208         uint32 padding_4;      /* 0 - padding 4 bytes */
209
210         uint32 ptr_2;          /* pointer */
211         uint32 padding_5;      /* 0 - padding 4 bytes */
212
213         uint32 ptr_3;          /* pointer */
214         uint8  padding_6[32];  /* 0 - padding 32 bytes */
215
216         uint32 rid_user;       /* user RID */
217         uint32 rid_group;      /* group RID */
218
219         uint16 acct_ctrl;      /* 0080 - ACB_XXXX */
220         uint16 unknown_3;      /* 16 bit padding */
221
222         uint16 unknown_4;      /* 0x003f      - 16 bit unknown */
223         uint16 unknown_5;      /* 0x003c      - 16 bit unknown */
224
225         uint8  padding_7[16];  /* 0 - padding 16 bytes */
226         uint32 padding_8;      /* 0 - padding 4 bytes */
227         
228         UNISTR2 uni_mach_acct; /* unicode string for machine account */
229
230         uint8  padding_9[48];  /* 0 - padding 48 bytes */
231
232 } SAM_USER_INFO_11;
233
234
235 /* SAM_USER_INFO_10 */
236 typedef struct sam_user_info_10
237 {
238         uint32 acb_info;
239
240 } SAM_USER_INFO_10;
241
242
243
244 /* SAMR_Q_CLOSE_HND - probably a policy handle close */
245 typedef struct q_samr_close_hnd_info
246 {
247     POLICY_HND pol;          /* policy handle */
248
249 } SAMR_Q_CLOSE_HND;
250
251
252 /* SAMR_R_CLOSE_HND - probably a policy handle close */
253 typedef struct r_samr_close_hnd_info
254 {
255         POLICY_HND pol;       /* policy handle */
256         uint32 status;         /* return status */
257
258 } SAMR_R_CLOSE_HND;
259
260
261 /****************************************************************************
262 SAMR_Q_UNKNOWN_2C - a "set user info" occurs just after this
263 *****************************************************************************/
264
265 /* SAMR_Q_UNKNOWN_2C */
266 typedef struct q_samr_unknown_2c_info
267 {
268         POLICY_HND user_pol;          /* policy handle */
269
270 } SAMR_Q_UNKNOWN_2C;
271
272
273 /****************************************************************************
274 SAMR_R_UNKNOWN_2C - a "set user info" occurs just after this
275 *****************************************************************************/
276
277 /* SAMR_R_UNKNOWN_2C */
278 typedef struct r_samr_unknown_2c_info
279 {
280         uint32 unknown_0; /* 0x0016 0000 */
281         uint32 unknown_1; /* 0x0000 0000 */
282         uint32 status; 
283
284 } SAMR_R_UNKNOWN_2C;
285
286
287 /****************************************************************************
288 SAMR_Q_UNKNOWN_3 - info level 4.  returns SIDs.
289 *****************************************************************************/
290
291 /* SAMR_Q_UNKNOWN_3 - probably get domain info... */
292 typedef struct q_samr_unknown_3_info
293 {
294         POLICY_HND user_pol;          /* policy handle */
295         uint16 switch_value;     /* 0x0000 0004 */
296         /* uint8 pad[2] */
297
298 } SAMR_Q_UNKNOWN_3;
299
300 /* DOM_SID3 example:
301    0x14 0x035b 0x0002 S-1-1
302    0x18 0x07ff 0x000f S-1-5-20-DOMAIN_ALIAS_RID_ADMINS
303    0x18 0x07ff 0x000f S-1-5-20-DOMAIN_ALIAS_RID_ACCOUNT_OPS
304    0x24 0x0044 0x0002 S-1-5-21-nnn-nnn-nnn-0x03f1
305  */
306
307 /* DOM_SID3 example:
308    0x24 0x0044 0x0002 S-1-5-21-nnn-nnn-nnn-0x03ee
309    0x18 0x07ff 0x000f S-1-5-20-DOMAIN_ALIAS_RID_ADMINS
310    0x14 0x035b 0x0002 S-1-1
311  */
312
313 /* DOM_SID3 - security id */
314 typedef struct sid_info_3
315 {
316         uint16 len; /* length, bytes, including length of len :-) */
317         /* uint8  pad[2]; */
318         
319         DOM_SID sid;
320
321 } DOM_SID3;
322
323
324 #define MAX_SAM_SIDS 15
325
326 /* SAM_SID_STUFF */
327 typedef struct sid_stuff_info
328 {
329         uint16 unknown_2; /* 0x0001 */
330         uint16 unknown_3; /* 0x8004 */
331
332         uint8 padding1[8];
333
334         uint32 unknown_4; /* 0x0000 0014 */
335         uint32 unknown_5; /* 0x0000 0014 */
336
337         uint16 unknown_6; /* 0x0002 */
338         uint16 unknown_7; /* 0x5800 */
339
340         uint32 num_sids;
341
342         uint16 padding2;
343
344         DOM_SID3 sid[MAX_SAM_SIDS];
345
346 } SAM_SID_STUFF;
347
348 /* SAMR_R_UNKNOWN_3 - probably an open */
349 typedef struct r_samr_unknown_3_info
350 {
351         uint32 ptr_0;
352         uint32 sid_stuff_len0;
353
354         uint32 ptr_1;
355         uint32 sid_stuff_len1;
356
357         SAM_SID_STUFF sid_stuff;
358
359         uint32 status;         /* return status */
360
361 } SAMR_R_UNKNOWN_3;
362
363
364 /****************************************************************************
365 SAMR_Q_QUERY_DOMAIN_INFO - probably a query on domain group info.
366 *****************************************************************************/
367
368 /* SAMR_Q_QUERY_DOMAIN_INFO - */
369 typedef struct q_samr_query_domain_info
370 {
371         POLICY_HND domain_pol;   /* policy handle */
372         uint16 switch_value;     /* 0x0002 */
373
374 } SAMR_Q_QUERY_DOMAIN_INFO;
375
376 typedef struct sam_unkown_info_2_info
377 {
378         uint32 unknown_0; /* 0x0000 0000 */
379         uint32 unknown_1; /* 0x8000 0000 */
380         uint32 unknown_2; /* 0x0000 0000 */
381
382         uint32 ptr_0;     /* pointer to unknown structure */
383         UNIHDR hdr_domain; /* domain name unicode header */
384         UNIHDR hdr_server; /* server name unicode header */
385
386         /* put all the data in here, at the moment, including what the above
387            pointer is referring to
388          */
389
390         uint32 seq_num; /* some sort of incrementing sequence number? */
391         uint32 unknown_3; /* 0x0000 0000 */
392         
393         uint32 unknown_4; /* 0x0000 0001 */
394         uint32 unknown_5; /* 0x0000 0003 */
395         uint32 unknown_6; /* 0x0000 0001 */
396         uint32 num_domain_usrs; /* number of users in domain */
397         uint32 num_domain_grps; /* number of domain groups in domain */
398         uint32 num_local_grps; /* number of local groups in domain */
399
400         uint8 padding[12]; /* 12 bytes zeros */
401
402         UNISTR2 uni_domain; /* domain name unicode string */
403         UNISTR2 uni_server; /* server name unicode string */
404
405 } SAM_UNK_INFO_2;
406
407
408 typedef struct sam_unknown_ctr_info
409 {
410         union
411         {
412                 SAM_UNK_INFO_2 inf2;
413
414         } info;
415
416 } SAM_UNK_CTR;
417
418
419 /* SAMR_R_QUERY_DOMAIN_INFO - */
420 typedef struct r_samr_query_domain_info
421 {
422         uint32 ptr_0;
423         uint16 switch_value; /* same as in query */
424
425         SAM_UNK_CTR *ctr;
426
427         uint32 status;         /* return status */
428
429 } SAMR_R_QUERY_DOMAIN_INFO;
430
431
432 /****************************************************************************
433 SAMR_Q_OPEN_DOMAIN - unknown_0 values seen associated with SIDs:
434
435 0x0000 03f1 and a specific   domain sid - S-1-5-21-44c01ca6-797e5c3d-33f83fd0
436 0x0000 0200 and a specific   domain sid - S-1-5-21-44c01ca6-797e5c3d-33f83fd0
437 *****************************************************************************/
438
439 /* SAMR_Q_OPEN_DOMAIN */
440 typedef struct q_samr_open_domain_info
441 {
442         POLICY_HND connect_pol;   /* policy handle */
443         uint32 flags;               /* 0x2000 0000; 0x0000 0211; 0x0000 0280; 0x0000 0200 - flags? */
444         DOM_SID2 dom_sid;         /* domain SID */
445
446 } SAMR_Q_OPEN_DOMAIN;
447
448
449 /* SAMR_R_OPEN_DOMAIN - probably an open */
450 typedef struct r_samr_open_domain_info
451 {
452         POLICY_HND domain_pol; /* policy handle associated with the SID */
453         uint32 status;         /* return status */
454
455 } SAMR_R_OPEN_DOMAIN;
456
457
458 #define MAX_SAM_ENTRIES 250
459
460 typedef struct samr_entry_info
461 {
462         uint32 rid;
463         UNIHDR hdr_name;
464
465 } SAM_ENTRY;
466
467 /* SAMR_Q_ENUM_DOM_USERS - SAM rids and names */
468 typedef struct q_samr_enum_dom_users_info
469 {
470         POLICY_HND pol;          /* policy handle */
471
472         uint16 req_num_entries;   /* number of values (0 indicates unlimited?) */
473         uint16 unknown_0;         /* enumeration context? */
474         uint16 acb_mask;          /* 0x0000 indicates all */
475         uint16 unknown_1;         /* 0x0000 */
476
477         uint32 max_size;              /* 0x0000 ffff */
478
479 } SAMR_Q_ENUM_DOM_USERS;
480
481
482 /* SAMR_R_ENUM_DOM_USERS - SAM rids and names */
483 typedef struct r_samr_enum_dom_users_info
484 {
485         uint32 unknown_0;          /* unknown. */
486         uint32 ptr_entries1;       /* actual number of entries to follow, having masked some out */
487
488         uint32 num_entries2;
489         uint32 ptr_entries2;
490
491         uint32 num_entries3;
492
493         SAM_ENTRY sam[MAX_SAM_ENTRIES];
494         UNISTR2 uni_acct_name[MAX_SAM_ENTRIES];
495
496         uint32 num_entries4;
497
498         uint32 status;
499
500 } SAMR_R_ENUM_DOM_USERS;
501
502
503 typedef struct samr_entry_info3
504 {
505         uint32 grp_idx;
506
507         uint32 rid_grp;
508         uint32 attr;
509
510         UNIHDR hdr_grp_name;
511         UNIHDR hdr_grp_desc;
512
513 } SAM_ENTRY3;
514
515 typedef struct samr_str_entry_info3
516 {
517         UNISTR2 uni_grp_name;
518         UNISTR2 uni_grp_desc;
519
520 } SAM_STR3;
521
522 /* SAMR_Q_ENUM_DOM_GROUPS - SAM rids and names */
523 typedef struct q_samr_enum_dom_groups_info
524 {
525         POLICY_HND pol;          /* policy handle */
526
527         /* these are possibly an enumeration context handle... */
528         uint16 switch_level;      /* 0x0003 */
529         uint16 unknown_0;         /* 0x0000 */
530         uint32 start_idx;       /* presumably the start enumeration index */
531         uint32 unknown_1;       /* 0x0000 07d0 */
532
533         uint32 max_size;        /* 0x0000 7fff */
534
535 } SAMR_Q_ENUM_DOM_GROUPS;
536
537
538 /* SAMR_R_ENUM_DOM_GROUPS - SAM rids and names */
539 typedef struct r_samr_enum_dom_groups_info
540 {
541         uint32 unknown_0;        /* 0x0000 0492 or 0x0000 00be */
542         uint32 unknown_1;        /* 0x0000 049a or 0x0000 00be */
543         uint32 switch_level;     /* 0x0000 0003 */
544
545         uint32 num_entries;
546         uint32 ptr_entries;
547
548         uint32 num_entries2;
549
550         SAM_ENTRY3 sam[MAX_SAM_ENTRIES];
551         SAM_STR3   str[MAX_SAM_ENTRIES];
552
553         uint32 status;
554
555 } SAMR_R_ENUM_DOM_GROUPS;
556
557
558
559 /* SAMR_Q_ENUM_DOM_ALIASES - SAM rids and names */
560 typedef struct q_samr_enum_dom_aliases_info
561 {
562         POLICY_HND pol;          /* policy handle */
563
564         /* this is possibly an enumeration context handle... */
565         uint32 unknown_0;         /* 0x0000 0000 */
566
567         uint32 max_size;              /* 0x0000 ffff */
568
569 } SAMR_Q_ENUM_DOM_ALIASES;
570
571 /* SAMR_R_ENUM_DOM_ALIASES - SAM rids and names */
572 typedef struct r_samr_enum_dom_aliases_info
573 {
574         uint32 num_entries;
575         uint32 ptr_entries;
576
577         uint32 num_entries2;
578         uint32 ptr_entries2;
579
580         uint32 num_entries3;
581
582         SAM_ENTRY sam[MAX_SAM_ENTRIES];
583         UNISTR2 uni_grp_name[MAX_SAM_ENTRIES];
584
585         uint32 num_entries4;
586
587         uint32 status;
588
589 } SAMR_R_ENUM_DOM_ALIASES;
590
591
592
593 /* SAMR_Q_QUERY_DISPINFO - SAM rids, names and descriptions */
594 typedef struct q_samr_query_disp_info
595 {
596         POLICY_HND pol;        /* policy handle */
597
598         uint16 switch_level;    /* 0x0001 and 0x0002 seen */
599         uint16 unknown_0;       /* 0x0000 and 0x2000 seen */
600         uint32 start_idx;       /* presumably the start enumeration index */
601         uint32 unknown_1;       /* 0x0000 07d0, 0x0000 0400 and 0x0000 0200 seen */
602
603         uint32 max_size;        /* 0x0000 7fff, 0x0000 7ffe and 0x0000 3fff seen*/
604
605 } SAMR_Q_QUERY_DISPINFO;
606
607 typedef struct samr_entry_info1
608 {
609         uint32 user_idx;
610
611         uint32 rid_user;
612         uint16 acb_info;
613         uint16 pad;
614
615         UNIHDR hdr_acct_name;
616         UNIHDR hdr_user_name;
617         UNIHDR hdr_user_desc;
618
619 } SAM_ENTRY1;
620
621 typedef struct samr_str_entry_info1
622 {
623         UNISTR2 uni_acct_name;
624         UNISTR2 uni_full_name;
625         UNISTR2 uni_acct_desc;
626
627 } SAM_STR1;
628
629 typedef struct sam_entry_info_1
630 {
631         uint32 num_entries;
632         uint32 ptr_entries;
633         uint32 num_entries2;
634
635         SAM_ENTRY1 sam[MAX_SAM_ENTRIES];
636         SAM_STR1   str[MAX_SAM_ENTRIES];
637
638
639 } SAM_INFO_1;
640
641 typedef struct samr_entry_info2
642 {
643         uint32 user_idx;
644
645         uint32 rid_user;
646         uint16 acb_info;
647         uint16 pad;
648
649         UNIHDR hdr_srv_name;
650         UNIHDR hdr_srv_desc;
651
652 } SAM_ENTRY2;
653
654 typedef struct samr_str_entry_info2
655 {
656         UNISTR2 uni_srv_name;
657         UNISTR2 uni_srv_desc;
658
659 } SAM_STR2;
660
661 typedef struct sam_entry_info_2
662 {
663         uint32 num_entries;
664         uint32 ptr_entries;
665         uint32 num_entries2;
666
667         SAM_ENTRY2 sam[MAX_SAM_ENTRIES];
668         SAM_STR2   str[MAX_SAM_ENTRIES];
669
670 } SAM_INFO_2;
671
672 typedef struct sam_info_ctr_info
673 {
674         union
675         {
676                 SAM_INFO_1 *info1; /* server info */
677                 SAM_INFO_2 *info2; /* user info */
678                 void       *info; /* allows assignment without typecasting, */
679
680         } sam;
681
682 } SAM_INFO_CTR;
683
684 /* SAMR_R_QUERY_DISPINFO - SAM rids, names and descriptions */
685 typedef struct r_samr_query_dispinfo_info
686 {
687         uint32 unknown_0;        /* container length? 0x0000 0492 or 0x0000 00be */
688         uint32 unknown_1;        /* container length? 0x0000 049a or 0x0000 00be */
689         uint16 switch_level;     /* 0x0001 or 0x0002 */
690         /*uint8 pad[2] */
691
692         SAM_INFO_CTR *ctr;
693
694         uint32 status;
695
696 } SAMR_R_QUERY_DISPINFO;
697
698
699 /* SAMR_Q_DELETE_DOM_GROUP - delete domain group */
700 typedef struct q_samr_delete_dom_group_info
701 {
702     POLICY_HND group_pol;          /* policy handle */
703
704 } SAMR_Q_DELETE_DOM_GROUP;
705
706
707 /* SAMR_R_DELETE_DOM_GROUP - delete domain group */
708 typedef struct r_samr_delete_dom_group_info
709 {
710         POLICY_HND pol;       /* policy handle */
711         uint32 status;        /* return status */
712
713 } SAMR_R_DELETE_DOM_GROUP;
714
715
716 /* SAMR_Q_CREATE_DOM_GROUP - SAM create group */
717 typedef struct q_samr_create_dom_group_info
718 {
719         POLICY_HND pol;        /* policy handle */
720
721         UNIHDR hdr_acct_desc;
722         UNISTR2 uni_acct_desc;
723
724         uint16 unknown_1;    /* 0x0002 */
725         uint16 unknown_2;    /* 0x0001 */
726
727 } SAMR_Q_CREATE_DOM_GROUP;
728
729 /* SAMR_R_CREATE_DOM_GROUP - SAM create group */
730 typedef struct r_samr_create_dom_group_info
731 {
732         POLICY_HND pol;        /* policy handle */
733
734         uint32 rid;    
735         uint32 status;    
736
737 } SAMR_R_CREATE_DOM_GROUP;
738
739 /* SAMR_Q_QUERY_GROUPINFO - SAM Group Info */
740 typedef struct q_samr_query_group_info
741 {
742         POLICY_HND pol;        /* policy handle */
743
744         uint16 switch_level;    /* 0x0001 seen */
745
746 } SAMR_Q_QUERY_GROUPINFO;
747
748 typedef struct samr_group_info1
749 {
750         UNIHDR hdr_acct_name;
751
752         uint32 unknown_1; /* 0x0000 0003 - number of group members? */
753         uint32 unknown_2; /* 0x0000 0001 - number of group members? */
754
755         UNIHDR hdr_acct_desc;
756
757         UNISTR2 uni_acct_name;
758         UNISTR2 uni_acct_desc;
759
760 } GROUP_INFO1;
761
762 typedef struct samr_group_info4
763 {
764         UNIHDR hdr_acct_desc;
765         UNISTR2 uni_acct_desc;
766
767 } GROUP_INFO4;
768
769 /* GROUP_INFO_CTR */
770 typedef struct group_info_ctr
771 {
772         uint16 switch_value1;
773         uint16 switch_value2;
774
775         union
776         {
777                 GROUP_INFO4 info4;
778                 GROUP_INFO1 info1;
779
780         } group;
781
782 } GROUP_INFO_CTR;
783
784 /* SAMR_R_QUERY_GROUPINFO - SAM Group Info */
785 typedef struct r_samr_query_groupinfo_info
786 {
787         uint32 ptr;        
788         GROUP_INFO_CTR *ctr;
789
790         uint32 status;
791
792 } SAMR_R_QUERY_GROUPINFO;
793
794
795 /* SAMR_Q_SET_GROUPINFO - SAM Group Info */
796 typedef struct q_samr_set_group_info
797 {
798         POLICY_HND pol;        /* policy handle */
799         GROUP_INFO_CTR *ctr;
800
801 } SAMR_Q_SET_GROUPINFO;
802
803 /* SAMR_R_SET_GROUPINFO - SAM Group Info */
804 typedef struct r_samr_set_group_info
805 {
806         uint32 status;
807
808 } SAMR_R_SET_GROUPINFO;
809
810
811 /* SAMR_Q_DELETE_DOM_ALIAS - delete domain alias */
812 typedef struct q_samr_delete_dom_alias_info
813 {
814     POLICY_HND alias_pol;          /* policy handle */
815
816 } SAMR_Q_DELETE_DOM_ALIAS;
817
818
819 /* SAMR_R_DELETE_DOM_ALIAS - delete domain alias */
820 typedef struct r_samr_delete_dom_alias_info
821 {
822         POLICY_HND pol;       /* policy handle */
823         uint32 status;        /* return status */
824
825 } SAMR_R_DELETE_DOM_ALIAS;
826
827
828 /* SAMR_Q_CREATE_DOM_ALIAS - SAM create alias */
829 typedef struct q_samr_create_dom_alias_info
830 {
831         POLICY_HND dom_pol;        /* policy handle */
832
833         UNIHDR hdr_acct_desc;
834         UNISTR2 uni_acct_desc;
835
836         uint16 unknown_1;    /* 0x001f */
837         uint16 unknown_2;    /* 0x000f */
838
839 } SAMR_Q_CREATE_DOM_ALIAS;
840
841 /* SAMR_R_CREATE_DOM_ALIAS - SAM create alias */
842 typedef struct r_samr_create_dom_alias_info
843 {
844         POLICY_HND alias_pol;        /* policy handle */
845
846         uint32 rid;    
847         uint32 status;    
848
849 } SAMR_R_CREATE_DOM_ALIAS;
850
851 /* SAMR_Q_QUERY_ALIASINFO - SAM Alias Info */
852 typedef struct q_samr_query_alias_info
853 {
854         POLICY_HND pol;        /* policy handle */
855
856         uint16 switch_level;    /* 0x0003 seen */
857
858 } SAMR_Q_QUERY_ALIASINFO;
859
860 typedef struct samr_alias_info3
861 {
862         UNIHDR hdr_acct_desc;
863         UNISTR2 uni_acct_desc;
864
865 } ALIAS_INFO3;
866
867 /* ALIAS_INFO_CTR */
868 typedef struct alias_info_ctr
869 {
870         uint16 switch_value1;
871         uint16 switch_value2;
872
873         union
874         {
875                 ALIAS_INFO3 info3;
876
877         } alias;
878
879 } ALIAS_INFO_CTR;
880
881 /* SAMR_R_QUERY_ALIASINFO - SAM alias info */
882 typedef struct r_samr_query_aliasinfo_info
883 {
884         uint32 ptr;        
885         ALIAS_INFO_CTR *ctr;
886
887         uint32 status;
888
889 } SAMR_R_QUERY_ALIASINFO;
890
891
892 /* SAMR_Q_SET_ALIASINFO - SAM Alias Info */
893 typedef struct q_samr_set_alias_info
894 {
895         POLICY_HND alias_pol;        /* policy handle */
896         ALIAS_INFO_CTR *ctr;
897
898 } SAMR_Q_SET_ALIASINFO;
899
900 /* SAMR_R_SET_ALIASINFO - SAM alias info */
901 typedef struct r_samr_set_aliasinfo_info
902 {
903         uint32 status;
904
905 } SAMR_R_SET_ALIASINFO;
906
907
908 /* SAMR_Q_QUERY_USERGROUPS - */
909 typedef struct q_samr_query_usergroup_info
910 {
911         POLICY_HND pol;          /* policy handle associated with unknown id */
912
913 } SAMR_Q_QUERY_USERGROUPS;
914
915 /* SAMR_R_QUERY_USERGROUPS - probably a get sam info */
916 typedef struct r_samr_query_usergroup_info
917 {
918         uint32 ptr_0;            /* pointer */
919         uint32 num_entries;      /* number of RID groups */
920         uint32 ptr_1;            /* pointer */
921         uint32 num_entries2;     /* number of RID groups */
922
923         DOM_GID *gid; /* group info */
924
925         uint32 status;         /* return status */
926
927 } SAMR_R_QUERY_USERGROUPS;
928
929
930 /* SAMR_Q_QUERY_USERINFO - probably a get sam info */
931 typedef struct q_samr_query_user_info
932 {
933         POLICY_HND pol;          /* policy handle associated with unknown id */
934         uint16 switch_value;         /* 0x0015, 0x0011 or 0x0010 - 16 bit unknown */
935
936 } SAMR_Q_QUERY_USERINFO;
937
938 /* SAMR_R_QUERY_USERINFO - probably a get sam info */
939 typedef struct r_samr_query_user_info
940 {
941         uint32 ptr;            /* pointer */
942         uint16 switch_value;      /* 0x0015, 0x0011 or 0x0010 - same as in query */
943         /* uint8[2] padding. */
944
945         union
946         {
947                 SAM_USER_INFO_10 *id10; /* auth-level 0x10 */
948                 SAM_USER_INFO_11 *id11; /* auth-level 0x11 */
949                 SAM_USER_INFO_21 *id21; /* auth-level 21 */
950                 void* id; /* to make typecasting easy */
951
952         } info;
953
954         uint32 status;         /* return status */
955
956 } SAMR_R_QUERY_USERINFO;
957
958
959 /****************************************************************************
960 SAMR_Q_QUERY_USERALIASES - do a conversion from name to RID.
961
962 the policy handle allocated by an "samr open secret" call is associated
963 with a SID.  this policy handle is what is queried here, *not* the SID
964 itself.  the response to the lookup rids is relative to this SID.
965 *****************************************************************************/
966 /* SAMR_Q_QUERY_USERALIASES */
967 typedef struct q_samr_query_useraliases_info
968 {
969         POLICY_HND pol;       /* policy handle */
970
971         uint32 num_sids1;      /* number of rids being looked up */
972         uint32 ptr;            /* buffer pointer */
973         uint32 num_sids2;      /* number of rids being looked up */
974
975         uint32   ptr_sid[MAX_LOOKUP_SIDS]; /* pointers to sids to be looked up */
976         DOM_SID2 sid    [MAX_LOOKUP_SIDS]; /* sids to be looked up. */
977
978 } SAMR_Q_QUERY_USERALIASES;
979
980
981 /* SAMR_R_QUERY_USERALIASES */
982 typedef struct r_samr_query_useraliases_info
983 {
984         uint32 num_entries;
985         uint32 ptr; /* undocumented buffer pointer */
986
987         uint32 num_entries2; 
988         uint32 *rid; /* domain RIDs being looked up */
989
990         uint32 status; /* return code */
991
992 } SAMR_R_QUERY_USERALIASES;
993
994
995 /****************************************************************************
996 SAMR_Q_LOOKUP_NAMES - do a conversion from Names to RIDs+types.
997 *****************************************************************************/
998 /* SAMR_Q_LOOKUP_NAMES */
999 typedef struct q_samr_lookup_names_info
1000 {
1001     POLICY_HND pol;       /* policy handle */
1002
1003         uint32 num_names1;      /* number of names being looked up */
1004         uint32 flags;           /* 0x0000 03e8 - unknown */
1005         uint32 ptr;            /* 0x0000 0000 - 32 bit unknown */
1006         uint32 num_names2;      /* number of names being looked up */
1007
1008         UNIHDR  hdr_name[MAX_LOOKUP_SIDS]; /* unicode account name header */
1009         UNISTR2 uni_name[MAX_LOOKUP_SIDS]; /* unicode account name string */
1010
1011 } SAMR_Q_LOOKUP_NAMES;
1012
1013
1014 /* SAMR_R_LOOKUP_NAMES */
1015 typedef struct r_samr_lookup_names_info
1016 {
1017         uint32 num_rids1;      /* number of aliases being looked up */
1018         uint32 ptr_rids;       /* pointer to aliases */
1019         uint32 num_rids2;      /* number of aliases being looked up */
1020
1021         uint32 rid[MAX_LOOKUP_SIDS]; /* rids */
1022
1023         uint32 num_types1;      /* number of users in aliases being looked up */
1024         uint32 ptr_types;       /* pointer to users in aliases */
1025         uint32 num_types2;      /* number of users in aliases being looked up */
1026
1027         uint32 type[MAX_LOOKUP_SIDS]; /* SID_ENUM type */
1028
1029         uint32 status; /* return code */
1030
1031 } SAMR_R_LOOKUP_NAMES;
1032
1033
1034 /****************************************************************************
1035 SAMR_Q_LOOKUP_RIDS - do a conversion from RID groups to something.
1036
1037 called to resolve domain RID groups.
1038 *****************************************************************************/
1039 /* SAMR_Q_LOOKUP_RIDS */
1040 typedef struct q_samr_lookup_rids_info
1041 {
1042         POLICY_HND pol;       /* policy handle */
1043
1044         uint32 num_rids1;      /* number of rids being looked up */
1045         uint32 flags;          /* 0x0000 03e8 - unknown */
1046         uint32 ptr;            /* 0x0000 0000 - 32 bit unknown */
1047         uint32 num_rids2;      /* number of rids being looked up */
1048
1049         uint32 rid[MAX_LOOKUP_SIDS]; /* domain RIDs being looked up */
1050
1051 } SAMR_Q_LOOKUP_RIDS;
1052
1053
1054 /****************************************************************************
1055 SAMR_R_LOOKUP_RIDS - do a conversion from group RID to names
1056
1057 *****************************************************************************/
1058 /* SAMR_R_LOOKUP_RIDS */
1059 typedef struct r_samr_lookup_rids_info
1060 {
1061         uint32 num_names1;      /* number of aliases being looked up */
1062         uint32 ptr_names;       /* pointer to aliases */
1063         uint32 num_names2;      /* number of aliases being looked up */
1064
1065         UNIHDR  hdr_name[MAX_LOOKUP_SIDS]; /* unicode account name header */
1066         UNISTR2 uni_name[MAX_LOOKUP_SIDS]; /* unicode account name string */
1067
1068         uint32 num_types1;      /* number of users in aliases being looked up */
1069         uint32 ptr_types;       /* pointer to users in aliases */
1070         uint32 num_types2;      /* number of users in aliases being looked up */
1071
1072         uint32 type[MAX_LOOKUP_SIDS]; /* SID_ENUM type */
1073
1074         uint32 status;
1075
1076 } SAMR_R_LOOKUP_RIDS;
1077
1078
1079 /* SAMR_Q_OPEN_USER - probably an open */
1080 typedef struct q_samr_open_user_info
1081 {
1082         POLICY_HND domain_pol;       /* policy handle */
1083         uint32 unknown_0;     /* 32 bit unknown - 0x02011b */
1084         uint32 user_rid;      /* user RID */
1085
1086 } SAMR_Q_OPEN_USER;
1087
1088
1089 /* SAMR_R_OPEN_USER - probably an open */
1090 typedef struct r_samr_open_user_info
1091 {
1092         POLICY_HND user_pol;       /* policy handle associated with unknown id */
1093         uint32 status;         /* return status */
1094
1095 } SAMR_R_OPEN_USER;
1096
1097
1098
1099 /* SAMR_Q_UNKNOWN_32 - probably a "create SAM entry" */
1100 typedef struct q_samr_unknown_32_info
1101 {
1102     POLICY_HND pol;             /* policy handle */
1103
1104         UNIHDR  hdr_mach_acct;       /* unicode machine account name header */
1105         UNISTR2 uni_mach_acct;       /* unicode machine account name */
1106
1107         uint32 acct_ctrl;            /* 32 bit ACB_XXXX */
1108         uint16 unknown_1;            /* 16 bit unknown - 0x00B0 */
1109         uint16 unknown_2;            /* 16 bit unknown - 0xe005 */
1110
1111 } SAMR_Q_UNKNOWN_32;
1112
1113
1114 /* SAMR_R_UNKNOWN_32 - probably a "create SAM entry" */
1115 typedef struct r_samr_unknown_32_info
1116 {
1117     POLICY_HND pol;       /* policy handle */
1118
1119         /* rid4.unknown - fail: 0030 success: 0x03ff */
1120         DOM_RID4 rid4;         /* rid and attributes */
1121
1122         uint32 status;         /* return status - fail: 0xC000 0099: user exists */
1123
1124 } SAMR_R_UNKNOWN_32;
1125
1126 /* SAMR_Q_QUERY_GROUPMEM - query group members */
1127 typedef struct q_samr_query_groupmem_info
1128 {
1129         POLICY_HND group_pol;        /* policy handle */
1130
1131 } SAMR_Q_QUERY_GROUPMEM;
1132
1133
1134 /* SAMR_R_QUERY_GROUPMEM - query group members */
1135 typedef struct r_samr_query_groupmem_info
1136 {
1137         uint32 ptr;
1138         uint32 num_entries;
1139
1140         uint32 ptr_rids;
1141         uint32 ptr_attrs;
1142
1143         uint32 num_rids;
1144         uint32 *rid;
1145
1146         uint32 num_attrs;
1147         uint32 *attr;
1148
1149         uint32 status;
1150
1151 } SAMR_R_QUERY_GROUPMEM;
1152
1153
1154 /* SAMR_Q_DEL_GROUPMEM - probably an del group member */
1155 typedef struct q_samr_del_group_mem_info
1156 {
1157         POLICY_HND pol;       /* policy handle */
1158
1159         uint32 rid;         /* rid */
1160
1161 } SAMR_Q_DEL_GROUPMEM;
1162
1163
1164 /* SAMR_R_DEL_GROUPMEM - probably an del group member */
1165 typedef struct r_samr_del_group_mem_info
1166 {
1167         uint32 status;         /* return status */
1168
1169 } SAMR_R_DEL_GROUPMEM;
1170
1171
1172 /* SAMR_Q_ADD_GROUPMEM - probably an add group member */
1173 typedef struct q_samr_add_group_mem_info
1174 {
1175         POLICY_HND pol;       /* policy handle */
1176
1177         uint32 rid;         /* rid */
1178         uint32 unknown;     /* 0x0000 0005 */
1179
1180 } SAMR_Q_ADD_GROUPMEM;
1181
1182
1183 /* SAMR_R_ADD_GROUPMEM - probably an add group member */
1184 typedef struct r_samr_add_group_mem_info
1185 {
1186         uint32 status;         /* return status */
1187
1188 } SAMR_R_ADD_GROUPMEM;
1189
1190
1191 /* SAMR_Q_OPEN_GROUP - probably an open */
1192 typedef struct q_samr_open_group_info
1193 {
1194         POLICY_HND domain_pol;       /* policy handle */
1195         uint32 unknown;         /* 0x0000 0001, 0x0000 0003, 0x0000 001f */
1196         uint32 rid_group;        /* rid */
1197
1198 } SAMR_Q_OPEN_GROUP;
1199
1200
1201 /* SAMR_R_OPEN_GROUP - probably an open */
1202 typedef struct r_samr_open_group_info
1203 {
1204         POLICY_HND pol;       /* policy handle */
1205         uint32 status;         /* return status */
1206
1207 } SAMR_R_OPEN_GROUP;
1208
1209
1210 /* SAMR_Q_QUERY_ALIASMEM - query alias members */
1211 typedef struct q_samr_query_aliasmem_info
1212 {
1213         POLICY_HND alias_pol;        /* policy handle */
1214
1215 } SAMR_Q_QUERY_ALIASMEM;
1216
1217
1218 /* SAMR_R_QUERY_ALIASMEM - query alias members */
1219 typedef struct r_samr_query_aliasmem_info
1220 {
1221         uint32 num_sids;
1222         uint32 ptr;
1223         uint32 num_sids1;
1224
1225         DOM_SID2 *sid;
1226
1227         uint32 status;
1228
1229 } SAMR_R_QUERY_ALIASMEM;
1230
1231
1232 /* SAMR_Q_ADD_ALIASMEM - add alias member */
1233 typedef struct q_samr_add_alias_mem_info
1234 {
1235         POLICY_HND alias_pol;       /* policy handle */
1236
1237         DOM_SID sid; /* member sid to be added to the alias */
1238
1239 } SAMR_Q_ADD_ALIASMEM;
1240
1241
1242 /* SAMR_R_ADD_ALIASMEM - add alias member */
1243 typedef struct r_samr_add_alias_mem_info
1244 {
1245         uint32 status;         /* return status */
1246
1247 } SAMR_R_ADD_ALIASMEM;
1248
1249
1250 /* SAMR_Q_DEL_ALIASMEM - add an add alias member */
1251 typedef struct q_samr_del_alias_mem_info
1252 {
1253         POLICY_HND alias_pol;       /* policy handle */
1254
1255         DOM_SID2 sid; /* member sid to be added to alias */
1256
1257 } SAMR_Q_DEL_ALIASMEM;
1258
1259
1260 /* SAMR_R_DEL_ALIASMEM - delete alias member */
1261 typedef struct r_samr_del_alias_mem_info
1262 {
1263         uint32 status;         /* return status */
1264
1265 } SAMR_R_DEL_ALIASMEM;
1266
1267
1268
1269 /* SAMR_Q_OPEN_ALIAS - probably an open */
1270 typedef struct q_samr_open_alias_info
1271 {
1272         POLICY_HND dom_pol;
1273
1274         uint32 unknown_0;         /* 0x0000 0008 */
1275         uint32 rid_alias;        /* rid */
1276
1277 } SAMR_Q_OPEN_ALIAS;
1278
1279
1280 /* SAMR_R_OPEN_ALIAS - probably an open */
1281 typedef struct r_samr_open_alias_info
1282 {
1283         POLICY_HND pol;       /* policy handle */
1284         uint32 status;         /* return status */
1285
1286 } SAMR_R_OPEN_ALIAS;
1287
1288
1289 /* SAMR_Q_CONNECT_ANON - probably an open */
1290 typedef struct q_samr_connect_anon_info
1291 {
1292         uint32 ptr;                  /* ptr? */
1293         uint16 unknown_0;            /* 0x005c */
1294         uint16 unknown_1;            /* 0x0001 */
1295         uint32 unknown_2;            /* 0x0000 0020 */
1296
1297 } SAMR_Q_CONNECT_ANON;
1298
1299 /* SAMR_R_CONNECT_ANON - probably an open */
1300 typedef struct r_samr_connect_anon_info
1301 {
1302         POLICY_HND connect_pol;       /* policy handle */
1303         uint32 status;         /* return status */
1304
1305 } SAMR_R_CONNECT_ANON;
1306
1307 /* SAMR_Q_CONNECT - probably an open */
1308 typedef struct q_samr_connect_info
1309 {
1310         uint32 ptr_srv_name;         /* pointer (to server name?) */
1311         UNISTR2 uni_srv_name;        /* unicode server name starting with '\\' */
1312
1313         uint32 unknown_0;            /* 32 bit unknown */
1314
1315 } SAMR_Q_CONNECT;
1316
1317
1318 /* SAMR_R_CONNECT - probably an open */
1319 typedef struct r_samr_connect_info
1320 {
1321     POLICY_HND connect_pol;       /* policy handle */
1322         uint32 status;         /* return status */
1323
1324 } SAMR_R_CONNECT;
1325
1326 /* SAMR_Q_UNKNOWN_38 */
1327 typedef struct q_samr_unknown_38
1328 {
1329         uint32 ptr; 
1330         UNIHDR  hdr_srv_name;
1331         UNISTR2 uni_srv_name;
1332
1333 } SAMR_Q_UNKNOWN_38;
1334
1335 /* SAMR_R_UNKNOWN_38 */
1336 typedef struct r_samr_unknown_38
1337 {
1338         uint16 unk_0;
1339         uint16 unk_1;
1340         uint16 unk_2;
1341         uint16 unk_3;
1342
1343 } SAMR_R_UNKNOWN_38;
1344
1345 /* SAMR_ENC_PASSWD */
1346 typedef struct enc_passwd_info
1347 {
1348         uint32 ptr;
1349         uint8 pass[516];
1350
1351 } SAMR_ENC_PASSWD;
1352
1353 /* SAMR_ENC_HASH */
1354 typedef struct enc_hash_info
1355 {
1356         uint32 ptr;
1357         uint8 hash[16];
1358
1359 } SAMR_ENC_HASH;
1360
1361 /* SAMR_Q_CHGPASSWD_USER */
1362 typedef struct q_samr_chgpasswd_user_info
1363 {
1364         uint32 ptr_0;
1365
1366         UNIHDR hdr_dest_host; /* server name unicode header */
1367         UNISTR2 uni_dest_host; /* server name unicode string */
1368
1369         UNIHDR hdr_user_name;    /* username unicode string header */
1370         UNISTR2 uni_user_name;    /* username unicode string */
1371
1372         SAMR_ENC_PASSWD nt_newpass;
1373         SAMR_ENC_HASH nt_oldhash;
1374
1375         uint32 unknown; /* 0x0000 0001 */
1376
1377         SAMR_ENC_PASSWD lm_newpass;
1378         SAMR_ENC_HASH lm_oldhash;
1379
1380 } SAMR_Q_CHGPASSWD_USER;
1381
1382 /* SAMR_R_CHGPASSWD_USER */
1383 typedef struct r_samr_chgpasswd_user_info
1384 {
1385         uint32 status; /* 0 == OK, C000006A (NT_STATUS_WRONG_PASSWORD) */
1386
1387 } SAMR_R_CHGPASSWD_USER;
1388
1389 #endif /* _RPC_SAMR_H */
1390