blob: e148c9b90d3d4daea0805cb3faac5c5c98aebaef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
|
/* header auto-generated by pidl */
#define DCERPC_SAMR_UUID "12345778-1234-abcd-ef00-0123456789ac"
#define DCERPC_SAMR_VERSION 1.0
#define DCERPC_SAMR_NAME "samr"
#define DCERPC_SAMR_CONNECT 0
#define DCERPC_SAMR_CLOSE 1
#define DCERPC_SAMR_SETSECURITY 2
#define DCERPC_SAMR_QUERYSECURITY 3
#define DCERPC_SAMR_SHUTDOWN 4
#define DCERPC_SAMR_LOOKUPDOMAIN 5
#define DCERPC_SAMR_ENUMDOMAINS 6
#define DCERPC_SAMR_OPENDOMAIN 7
#define DCERPC_SAMR_QUERYDOMAININFO 8
#define DCERPC_SAMR_SET_DOMAIN_INFO 9
#define DCERPC_SAMR_CREATE_DOM_GROUP 10
#define DCERPC_SAMR_ENUMDOMAINGROUPS 11
#define DCERPC_SAMR_CREATEUSER 12
#define DCERPC_SAMR_ENUMDOMAINUSERS 13
#define DCERPC_SAMR_CREATE_DOM_ALIAS 14
#define DCERPC_SAMR_ENUMDOMAINALIASES 15
#define DCERPC_SAMR_GETALIASMEMBERSHIP 16
#define DCERPC_SAMR_LOOKUPNAMES 17
#define DCERPC_SAMR_LOOKUPRIDS 18
#define DCERPC_SAMR_OPENGROUP 19
#define DCERPC_SAMR_QUERYGROUPINFO 20
#define DCERPC_SAMR_SET_GROUPINFO 21
#define DCERPC_SAMR_ADD_GROUPMEM 22
#define DCERPC_SAMR_DELETE_DOM_GROUP 23
#define DCERPC_SAMR_DEL_GROUPMEM 24
#define DCERPC_SAMR_QUERY_GROUPMEM 25
#define DCERPC_SAMR_SET_MEMBER_ATTRIBUTES_OF_GROUP 26
#define DCERPC_SAMR_OPENALIAS 27
#define DCERPC_SAMR_QUERYALIASINFO 28
#define DCERPC_SAMR_SET_ALIASINFO 29
#define DCERPC_SAMR_DELETE_DOM_ALIAS 30
#define DCERPC_SAMR_ADD_ALIASMEM 31
#define DCERPC_SAMR_DEL_ALIASMEM 32
#define DCERPC_SAMR_GET_MEMBERS_IN_ALIAS 33
#define DCERPC_SAMR_OPENUSER 34
#define DCERPC_SAMR_DELETEUSER 35
#define DCERPC_SAMR_QUERYUSERINFO 36
#define DCERPC_SAMR_SETUSERINFO 37
#define DCERPC_SAMR_CHANGE_PASSWORD_USER 38
#define DCERPC_SAMR_GET_GROUPS_FOR_USER 39
#define DCERPC_SAMR_QUERY_DISPINFO 40
#define DCERPC_SAMR_GET_DISPLAY_ENUMERATION_INDEX 41
#define DCERPC_SAMR_TEST_PRIVATE_FUNCTIONS_DOMAIN 42
#define DCERPC_SAMR_TEST_PRIVATE_FUNCTIONS_USER 43
#define DCERPC_SAMR_GET_USRDOM_PWINFO 44
#define DCERPC_SAMR_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN 45
#define DCERPC_SAMR_QUERY_INFORMATION_DOMAIN2 46
#define DCERPC_SAMR_QUERY_INFORMATION_USER2 47
#define DCERPC_SAMR_QUERY_DISPINFO2 48
#define DCERPC_SAMR_GET_DISPLAY_ENUMERATION_INDEX2 49
#define DCERPC_SAMR_CREATE_USER2_IN_DOMAIN 50
#define DCERPC_SAMR_QUERY_DISPINFO3 51
#define DCERPC_SAMR_ADD_MULTIPLE_MEMBERS_TO_ALIAS 52
#define DCERPC_SAMR_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS 53
#define DCERPC_SAMR_OEM_CHANGE_PASSWORD_USER2 54
#define DCERPC_SAMR_UNICODE_CHANGE_PASSWORD_USER2 55
#define DCERPC_SAMR_GET_DOM_PWINFO 56
#define DCERPC_SAMR_CONNECT2 57
#define DCERPC_SAMR_SET_USERINFO2 58
#define DCERPC_SAMR_SET_BOOT_KEY_INFORMATION 59
#define DCERPC_SAMR_GET_BOOT_KEY_INFORMATION 60
#define DCERPC_SAMR_CONNECT3 61
#define DCERPC_SAMR_CONNECT4 62
#define DCERPC_SAMR_UNICODE_CHANGE_PASSWORD_USER3 63
#define DCERPC_SAMR_CONNECT5 64
#define DCERPC_SAMR_RID_TO_SID 65
#define DCERPC_SAMR_SET_DSRM_PASSWORD 66
#define DCERPC_SAMR_VALIDATE_PASSWORD 67
struct samr_Connect {
struct {
uint16 *system_name;
uint32 access_mask;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct samr_Close {
struct {
struct policy_handle *handle;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct samr_SetSecurity {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_SdBuf {
uint32 sd_size;
struct security_descriptor *sd;
};
struct samr_QuerySecurity {
struct {
struct policy_handle *handle;
uint32 sec_info;
} in;
struct {
struct samr_SdBuf *sdbuf;
NTSTATUS result;
} out;
};
struct samr_Shutdown {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_Name {
uint16 name_len;
uint16 name_size;
const char *name;
};
struct samr_LookupDomain {
struct {
struct policy_handle *handle;
struct samr_Name *domain;
} in;
struct {
struct dom_sid2 *sid;
NTSTATUS result;
} out;
};
struct samr_SamEntry {
uint32 idx;
struct samr_Name name;
};
struct samr_SamArray {
uint32 count;
struct samr_SamEntry *entries;
};
struct samr_EnumDomains {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 buf_size;
} in;
struct {
uint32 *resume_handle;
struct samr_SamArray *sam;
uint32 *num_entries;
NTSTATUS result;
} out;
};
struct samr_OpenDomain {
struct {
struct policy_handle *handle;
uint32 access_mask;
struct dom_sid2 *sid;
} in;
struct {
struct policy_handle *domain_handle;
NTSTATUS result;
} out;
};
struct samr_DomInfo1 {
uint16 min_length_password;
uint16 password_history;
uint32 flag;
NTTIME expire;
NTTIME min_passwordage;
};
struct samr_DomInfo2 {
HYPER_T force_logoff_time;
struct samr_Name unknown1;
struct samr_Name domain;
struct samr_Name primary;
HYPER_T sequence_num;
uint32 unknown2;
uint32 role;
uint32 unknown3;
uint32 num_users;
uint32 num_groups;
uint32 num_aliases;
};
struct samr_DomInfo3 {
HYPER_T force_logoff_time;
};
struct samr_DomInfo4 {
struct samr_Name unknown;
};
struct samr_DomInfo5 {
struct samr_Name domain;
};
struct samr_DomInfo6 {
struct samr_Name primary;
};
struct samr_DomInfo7 {
uint32 role;
};
struct samr_DomInfo8 {
HYPER_T sequence_num;
NTTIME last_xxx_time;
};
struct samr_DomInfo9 {
uint32 unknown;
};
struct samr_DomInfo11 {
HYPER_T force_logoff_time;
struct samr_Name unknown1;
struct samr_Name domain;
struct samr_Name primary;
HYPER_T sequence_num;
uint32 unknown2;
uint32 role;
uint32 unknown3;
uint32 num_users;
uint32 num_groups;
uint32 num_aliases;
HYPER_T lockout_duration;
HYPER_T lockout_window;
uint16 lockout_threshold;
};
struct samr_DomInfo12 {
HYPER_T lockout_duration;
HYPER_T lockout_window;
uint16 lockout_threshold;
};
struct samr_DomInfo13 {
HYPER_T sequence_num;
NTTIME last_xxx_time;
uint32 unknown1;
uint32 unknown2;
};
union samr_DomainInfo {
/* [case(1)] */ struct samr_DomInfo1 info1;
/* [case(2)] */ struct samr_DomInfo2 info2;
/* [case(3)] */ struct samr_DomInfo3 info3;
/* [case(4)] */ struct samr_DomInfo4 info4;
/* [case(5)] */ struct samr_DomInfo5 info5;
/* [case(6)] */ struct samr_DomInfo6 info6;
/* [case(7)] */ struct samr_DomInfo7 info7;
/* [case(8)] */ struct samr_DomInfo8 info8;
/* [case(9)] */ struct samr_DomInfo9 info9;
/* [case(11)] */ struct samr_DomInfo11 info11;
/* [case(12)] */ struct samr_DomInfo12 info12;
/* [case(13)] */ struct samr_DomInfo13 info13;
};
struct samr_QueryDomainInfo {
struct {
struct policy_handle *handle;
uint16 level;
} in;
struct {
union samr_DomainInfo *info;
NTSTATUS result;
} out;
};
struct samr_SET_DOMAIN_INFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CREATE_DOM_GROUP {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_EnumDomainGroups {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 max_size;
} in;
struct {
uint32 *resume_handle;
struct samr_SamArray *sam;
uint32 num_entries;
NTSTATUS result;
} out;
};
struct samr_CreateUser {
struct {
struct policy_handle *handle;
struct samr_Name *username;
uint32 access_mask;
} in;
struct {
struct policy_handle *acct_handle;
uint32 *rid;
NTSTATUS result;
} out;
};
struct samr_EnumDomainUsers {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 acct_flags;
uint32 max_size;
} in;
struct {
uint32 *resume_handle;
struct samr_SamArray *sam;
uint32 num_entries;
NTSTATUS result;
} out;
};
struct samr_CREATE_DOM_ALIAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_EnumDomainAliases {
struct {
struct policy_handle *handle;
uint32 *resume_handle;
uint32 max_size;
} in;
struct {
uint32 *resume_handle;
struct samr_SamArray *sam;
uint32 num_entries;
NTSTATUS result;
} out;
};
struct samr_Sids {
uint32 count;
struct dom_sid2 *sids;
};
struct samr_Ids {
uint32 count;
uint32 *ids;
};
struct samr_GetAliasMembership {
struct {
struct policy_handle *handle;
struct samr_Sids *sids;
} in;
struct {
struct samr_Ids *rids;
NTSTATUS result;
} out;
};
struct samr_LookupNames {
struct {
struct policy_handle *handle;
uint32 num_names;
struct samr_Name *names;
} in;
struct {
struct samr_Ids rids;
struct samr_Ids types;
NTSTATUS result;
} out;
};
struct samr_Names {
uint32 count;
struct samr_Name *names;
};
struct samr_LookupRids {
struct {
struct policy_handle *handle;
uint32 num_rids;
uint32 *rids;
} in;
struct {
struct samr_Names names;
struct samr_Ids types;
NTSTATUS result;
} out;
};
struct samr_OpenGroup {
struct {
struct policy_handle *handle;
uint32 access_mask;
uint32 rid;
} in;
struct {
struct policy_handle *acct_handle;
NTSTATUS result;
} out;
};
struct samr_GroupInfoAll {
struct samr_Name name;
uint32 unknown;
uint32 num_members;
struct samr_Name description;
};
struct samr_GroupInfoName {
struct samr_Name Name;
};
struct samr_GroupInfoX {
uint32 unknown;
};
struct samr_GroupInfoDesciption {
struct samr_Name description;
};
union samr_GroupInfo {
/* [case(1)] */ struct samr_GroupInfoAll all;
/* [case(2)] */ struct samr_GroupInfoName name;
/* [case(3)] */ struct samr_GroupInfoX unknown;
/* [case(4)] */ struct samr_GroupInfoDesciption description;
};
struct samr_QueryGroupInfo {
struct {
struct policy_handle *handle;
uint16 level;
} in;
struct {
union samr_GroupInfo *info;
NTSTATUS result;
} out;
};
struct samr_SET_GROUPINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_ADD_GROUPMEM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_DELETE_DOM_GROUP {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_DEL_GROUPMEM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_GROUPMEM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_SET_MEMBER_ATTRIBUTES_OF_GROUP {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_OpenAlias {
struct {
struct policy_handle *handle;
uint32 access_mask;
uint32 rid;
} in;
struct {
struct policy_handle *acct_handle;
NTSTATUS result;
} out;
};
struct samr_AliasInfoAll {
struct samr_Name name;
uint32 num_members;
struct samr_Name description;
};
struct samr_AliasInfoName {
struct samr_Name name;
};
struct samr_AliasInfoDescription {
struct samr_Name description;
};
union samr_AliasInfo {
/* [case(1)] */ struct samr_AliasInfoAll all;
/* [case(2)] */ struct samr_AliasInfoName name;
/* [case(3)] */ struct samr_AliasInfoDescription description;
};
struct samr_QueryAliasInfo {
struct {
struct policy_handle *handle;
uint16 level;
} in;
struct {
union samr_AliasInfo *info;
NTSTATUS result;
} out;
};
struct samr_SET_ALIASINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_DELETE_DOM_ALIAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_ADD_ALIASMEM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_DEL_ALIASMEM {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_MEMBERS_IN_ALIAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_OpenUser {
struct {
struct policy_handle *handle;
uint32 access_mask;
uint32 rid;
} in;
struct {
struct policy_handle *acct_handle;
NTSTATUS result;
} out;
};
struct samr_DeleteUser {
struct {
struct policy_handle *handle;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct samr_UserInfo1 {
struct samr_Name username;
struct samr_Name full_name;
uint32 primary_group_rid;
struct samr_Name description;
struct samr_Name comment;
};
struct samr_UserInfo2 {
struct samr_Name comment;
struct samr_Name unknown;
uint16 country_code;
uint16 code_page;
};
struct samr_UserInfo3 {
struct samr_Name username;
struct samr_Name full_name;
uint32 Rid;
uint32 primary_group_rid;
struct samr_Name home_directory;
struct samr_Name home_drive;
struct samr_Name logon_script;
struct samr_Name profile;
struct samr_Name workstations;
NTTIME last_logon;
NTTIME last_logoff;
NTTIME last_pwd_change;
NTTIME allow_pwd_change;
NTTIME force_pwd_change;
uint32 units_per_week;
uint8 *logon_hours;
uint16 bad_pwd_count;
uint16 num_logons;
uint32 acct_flags;
};
struct samr_UserInfo4 {
uint32 units_per_week;
uint8 *logon_hours;
};
struct samr_UserInfo5 {
struct samr_Name username;
struct samr_Name full_name;
uint32 rid;
uint32 primary_group_rid;
struct samr_Name home_directory;
struct samr_Name home_drive;
struct samr_Name logon_script;
struct samr_Name profile;
struct samr_Name description;
struct samr_Name workstations;
NTTIME last_logon;
NTTIME last_logoff;
uint32 units_per_week;
uint8 *logon_hours;
uint16 bad_pwd_count;
uint16 num_logons;
NTTIME last_pwd_change;
NTTIME acct_expiry;
uint32 acct_flags;
};
struct samr_UserInfo6 {
struct samr_Name username;
struct samr_Name full_name;
};
struct samr_UserInfo7 {
struct samr_Name username;
};
struct samr_UserInfo8 {
struct samr_Name full_name;
};
struct samr_UserInfo9 {
uint32 PrimaryGroupRid;
};
struct samr_UserInfo10 {
struct samr_Name home_dir;
struct samr_Name home_drive;
};
struct samr_UserInfo11 {
struct samr_Name logon_script;
};
struct samr_UserInfo12 {
struct samr_Name profile;
};
struct samr_UserInfo13 {
struct samr_Name description;
};
struct samr_UserInfo14 {
struct samr_Name workstations;
};
struct samr_UserInfo16 {
uint32 acct_flags;
};
struct samr_UserInfo17 {
NTTIME acct_expiry;
};
struct samr_UserInfo20 {
struct samr_Name callback;
};
struct samr_UserInfo21 {
NTTIME last_logon;
NTTIME last_logoff;
NTTIME last_pwd_change;
NTTIME acct_expiry;
NTTIME allow_pwd_change;
NTTIME force_pwd_change;
struct samr_Name username;
struct samr_Name full_name;
struct samr_Name home_dir;
struct samr_Name home_drive;
struct samr_Name logon_script;
struct samr_Name profile;
struct samr_Name description;
struct samr_Name workstations;
struct samr_Name comment;
struct samr_Name callback;
struct samr_Name unknown1;
struct samr_Name unknown2;
struct samr_Name unknown3;
uint32 buf_count;
uint8 *buffer;
uint32 rid;
uint32 primary_group_rid;
uint32 acct_flags;
uint32 fields_present;
uint32 units_per_week;
uint8 *logon_hours;
uint16 bad_pwd_count;
uint16 num_logons;
uint16 country_code;
uint16 code_page;
uint8 nt_pwd_set;
uint8 lm_pwd_set;
uint8 expired_flag;
uint8 unknown4;
};
union samr_UserInfo {
/* [case(1)] */ struct samr_UserInfo1 info1;
/* [case(2)] */ struct samr_UserInfo2 info2;
/* [case(3)] */ struct samr_UserInfo3 info3;
/* [case(4)] */ struct samr_UserInfo4 info4;
/* [case(5)] */ struct samr_UserInfo5 info5;
/* [case(6)] */ struct samr_UserInfo6 info6;
/* [case(7)] */ struct samr_UserInfo7 info7;
/* [case(8)] */ struct samr_UserInfo8 info8;
/* [case(9)] */ struct samr_UserInfo9 info9;
/* [case(10)] */ struct samr_UserInfo10 info10;
/* [case(11)] */ struct samr_UserInfo11 info11;
/* [case(12)] */ struct samr_UserInfo12 info12;
/* [case(13)] */ struct samr_UserInfo13 info13;
/* [case(14)] */ struct samr_UserInfo14 info14;
/* [case(16)] */ struct samr_UserInfo16 info16;
/* [case(17)] */ struct samr_UserInfo17 info17;
/* [case(20)] */ struct samr_UserInfo20 info20;
/* [case(21)] */ struct samr_UserInfo21 info21;
};
struct samr_QueryUserInfo {
struct {
struct policy_handle *handle;
uint16 level;
} in;
struct {
union samr_UserInfo *info;
NTSTATUS result;
} out;
};
struct samr_SetUserInfo {
struct {
struct policy_handle *handle;
uint16 level;
union samr_UserInfo *info;
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CHANGE_PASSWORD_USER {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_GROUPS_FOR_USER {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_DISPINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_DISPLAY_ENUMERATION_INDEX {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_TEST_PRIVATE_FUNCTIONS_DOMAIN {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_TEST_PRIVATE_FUNCTIONS_USER {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_USRDOM_PWINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_INFORMATION_DOMAIN2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_INFORMATION_USER2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_DISPINFO2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_DISPLAY_ENUMERATION_INDEX2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CREATE_USER2_IN_DOMAIN {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_QUERY_DISPINFO3 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_OEM_CHANGE_PASSWORD_USER2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_UNICODE_CHANGE_PASSWORD_USER2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_DOM_PWINFO {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CONNECT2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_SET_USERINFO2 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_SET_BOOT_KEY_INFORMATION {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_GET_BOOT_KEY_INFORMATION {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CONNECT3 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_Connect4 {
struct {
const char *system_name;
uint32 unknown;
uint32 access_mask;
} in;
struct {
struct policy_handle *handle;
NTSTATUS result;
} out;
};
struct samr_UNICODE_CHANGE_PASSWORD_USER3 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_CONNECT5 {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_RID_TO_SID {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_SET_DSRM_PASSWORD {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
struct samr_VALIDATE_PASSWORD {
struct {
} in;
struct {
NTSTATUS result;
} out;
};
|