7 #define GROUP_SPECIALGRP_USERS L"USERS"
8 #define GROUP_SPECIALGRP_ADMINS L"ADMINS"
9 #define GROUP_SPECIALGRP_GUESTS L"GUESTS"
10 #define GROUP_SPECIALGRP_LOCAL L"LOCAL"
11 #define ACCESS_LETTERS "RWCXDAP "
12 #define NETLOGON_CONTROL_QUERY 1
13 #define NETLOGON_CONTROL_REPLICATE 2
14 #define NETLOGON_CONTROL_SYNCHRONIZE 3
15 #define NETLOGON_CONTROL_PDC_REPLICATE 4
16 #define NETLOGON_CONTROL_REDISCOVER 5
17 #define NETLOGON_CONTROL_TC_QUERY 6
18 #define NETLOGON_CONTROL_BACKUP_CHANGE_LOG 65532
19 #define NETLOGON_CONTROL_TRUNCATE_LOG 65533
20 #define NETLOGON_CONTROL_SET_DBFLAG 65534
21 #define NETLOGON_CONTROL_BREAKPOINT 65535
23 #define UF_ACCOUNTDISABLE 2
24 #define UF_HOMEDIR_REQUIRED 8
26 #define UF_PASSWD_NOTREQD 32
27 #define UF_PASSWD_CANT_CHANGE 64
28 #define UF_TEMP_DUPLICATE_ACCOUNT 256
29 #define UF_NORMAL_ACCOUNT 512
30 #define UF_INTERDOMAIN_TRUST_ACCOUNT 2048
31 #define UF_WORKSTATION_TRUST_ACCOUNT 4096
32 #define UF_SERVER_TRUST_ACCOUNT 8192
33 #define UF_MACHINE_ACCOUNT_MASK (UF_INTERDOMAIN_TRUST_ACCOUNT|UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TRUST_ACCOUNT)
34 #define UF_ACCOUNT_TYPE_MASK (UF_TEMP_DUPLICATE_ACCOUNT|UF_NORMAL_ACCOUNT|UF_INTERDOMAIN_TRUST_ACCOUNT|UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TRUST_ACCOUNT)
35 #define UF_DONT_EXPIRE_PASSWD 65536
36 #define UF_SETTABLE_BITS (UF_SCRIPT|UF_ACCOUNTDISABLE|UF_LOCK|UF_HOMEDIR_REQUIRED|UF_PASSWD_NOTREQD|UF_PASSWD_CANT_CHANGE|UF_ACCOUNT_TYPE_MASK|UF_DONT_EXPIRE_PASSWD)
37 #define FILTER_TEMP_DUPLICATE_ACCOUNT 1
38 #define FILTER_NORMAL_ACCOUNT 2
39 #define FILTER_INTERDOMAIN_TRUST_ACCOUNT 8
40 #define FILTER_WORKSTATION_TRUST_ACCOUNT 16
41 #define FILTER_SERVER_TRUST_ACCOUNT 32
42 #define LG_INCLUDE_INDIRECT 1
45 #define AF_OP_SERVER 4
46 #define AF_OP_ACCOUNTS 8
47 #define AF_SETTABLE_BITS (AF_OP_PRINT|AF_OP_COMM|AF_OP_SERVER|AF_OP_ACCOUNTS)
48 #define UAS_ROLE_STANDALONE 0
49 #define UAS_ROLE_MEMBER 1
50 #define UAS_ROLE_BACKUP 2
51 #define UAS_ROLE_PRIMARY 3
52 #define USER_NAME_PARMNUM 1
53 #define USER_PASSWORD_PARMNUM 3
54 #define USER_PASSWORD_AGE_PARMNUM 4
55 #define USER_PRIV_PARMNUM 5
56 #define USER_HOME_DIR_PARMNUM 6
57 #define USER_COMMENT_PARMNUM 7
58 #define USER_FLAGS_PARMNUM 8
59 #define USER_SCRIPT_PATH_PARMNUM 9
60 #define USER_AUTH_FLAGS_PARMNUM 10
61 #define USER_FULL_NAME_PARMNUM 11
62 #define USER_USR_COMMENT_PARMNUM 12
63 #define USER_PARMS_PARMNUM 13
64 #define USER_WORKSTATIONS_PARMNUM 14
65 #define USER_LAST_LOGON_PARMNUM 15
66 #define USER_LAST_LOGOFF_PARMNUM 16
67 #define USER_ACCT_EXPIRES_PARMNUM 17
68 #define USER_MAX_STORAGE_PARMNUM 18
69 #define USER_UNITS_PER_WEEK_PARMNUM 19
70 #define USER_LOGON_HOURS_PARMNUM 20
71 #define USER_PAD_PW_COUNT_PARMNUM 21
72 #define USER_NUM_LOGONS_PARMNUM 22
73 #define USER_LOGON_SERVER_PARMNUM 23
74 #define USER_COUNTRY_CODE_PARMNUM 24
75 #define USER_CODE_PAGE_PARMNUM 25
76 #define USER_PRIMARY_GROUP_PARMNUM 51
77 #define USER_PROFILE 52
78 #define USER_PROFILE_PARMNUM 52
79 #define USER_HOME_DIR_DRIVE_PARMNUM 53
80 #define USER_NAME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_NAME_PARMNUM)
81 #define USER_PASSWORD_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PASSWORD_PARMNUM)
82 #define USER_PASSWORD_AGE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PASSWORD_AGE_PARMNUM)
83 #define USER_PRIV_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PRIV_PARMNUM)
84 #define USER_HOME_DIR_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_HOME_DIR_PARMNUM)
85 #define USER_COMMENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_COMMENT_PARMNUM)
86 #define USER_FLAGS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_FLAGS_PARMNUM)
87 #define USER_SCRIPT_PATH_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_SCRIPT_PATH_PARMNUM)
88 #define USER_AUTH_FLAGS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_AUTH_FLAGS_PARMNUM)
89 #define USER_FULL_NAME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_FULL_NAME_PARMNUM)
90 #define USER_USR_COMMENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_USR_COMMENT_PARMNUM)
91 #define USER_PARMS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PARMS_PARMNUM)
92 #define USER_WORKSTATIONS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_WORKSTATIONS_PARMNUM)
93 #define USER_LAST_LOGON_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_LAST_LOGON_PARMNUM)
94 #define USER_LAST_LOGOFF_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_LAST_LOGOFF_PARMNUM)
95 #define USER_ACCT_EXPIRES_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_ACCT_EXPIRES_PARMNUM)
96 #define USER_MAX_STORAGE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_MAX_STORAGE_PARMNUM)
97 #define USER_UNITS_PER_WEEK_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_UNITS_PER_WEEK_PARMNUM)
98 #define USER_LOGON_HOURS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_LOGON_HOURS_PARMNUM)
99 #define USER_PAD_PW_COUNT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PAD_PW_COUNT_PARMNUM)
100 #define USER_NUM_LOGONS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_NUM_LOGONS_PARMNUM)
101 #define USER_LOGON_SERVER_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_LOGON_SERVER_PARMNUM)
102 #define USER_COUNTRY_CODE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_COUNTRY_CODE_PARMNUM)
103 #define USER_CODE_PAGE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_CODE_PAGE_PARMNUM)
104 #define USER_PRIMARY_GROUP_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_PRIMARY_GROUP_PARMNUM)
105 #define USER_POSIX_ID_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_POSIX_ID_PARMNUM)
106 #define USER_HOME_DIR_DRIVE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+USER_HOME_DIR_DRIVE_PARMNUM)
107 #define NULL_USERSETINFO_PASSWD " "
108 #define TIMEQ_FOREVER ((ULONG)-1)
109 #define USER_MAXSTORAGE_UNLIMITED ((ULONG)-1)
110 #define USER_NO_LOGOFF ((ULONG)-1L)
111 #define UNITS_PER_DAY 24
112 #define UNITS_PER_WEEK 168
113 #define USER_PRIV_MASK 3
114 #define USER_PRIV_GUEST 0
115 #define USER_PRIV_USER 1
116 #define USER_PRIV_ADMIN 2
117 #define MAX_PASSWD_LEN PWLEN
118 #define DEF_MIN_PWLEN 6
119 #define DEF_PWUNIQUENESS 5
120 #define DEF_MAX_PWHIST 8
121 #define DEF_MAX_PWAGE TIMEQ_FOREVER
122 #define DEF_MIN_PWAGE 0
123 #define DEF_FORCE_LOGOFF (ULONG)0xffffffff
124 #define DEF_MAX_BADPW 0
125 #define ONE_DAY 86400
126 #define VALIDATED_LOGON 0
127 #define PASSWORD_EXPIRED 2
128 #define NON_VALIDATED_LOGON 3
129 #define VALID_LOGOFF 1
130 #define MODALS_MIN_PASSWD_LEN_PARMNUM 1
131 #define MODALS_MAX_PASSWD_AGE_PARMNUM 2
132 #define MODALS_MIN_PASSWD_AGE_PARMNUM 3
133 #define MODALS_FORCE_LOGOFF_PARMNUM 4
134 #define MODALS_PASSWD_HIST_LEN_PARMNUM 5
135 #define MODALS_ROLE_PARMNUM 6
136 #define MODALS_PRIMARY_PARMNUM 7
137 #define MODALS_DOMAIN_NAME_PARMNUM 8
138 #define MODALS_DOMAIN_ID_PARMNUM 9
139 #define MODALS_LOCKOUT_DURATION_PARMNUM 10
140 #define MODALS_LOCKOUT_OBSERVATION_WINDOW_PARMNUM 11
141 #define MODALS_LOCKOUT_THRESHOLD_PARMNUM 12
142 #define MODALS_MIN_PASSWD_LEN_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_MIN_PASSWD_LEN_PARMNUM)
143 #define MODALS_MAX_PASSWD_AGE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_MAX_PASSWD_AGE_PARMNUM)
144 #define MODALS_MIN_PASSWD_AGE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_MIN_PASSWD_AGE_PARMNUM)
145 #define MODALS_FORCE_LOGOFF_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_FORCE_LOGOFF_PARMNUM)
146 #define MODALS_PASSWD_HIST_LEN_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_PASSWD_HIST_LEN_PARMNUM)
147 #define MODALS_ROLE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_ROLE_PARMNUM)
148 #define MODALS_PRIMARY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_PRIMARY_PARMNUM)
149 #define MODALS_DOMAIN_NAME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_DOMAIN_NAME_PARMNUM)
150 #define MODALS_DOMAIN_ID_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+MODALS_DOMAIN_ID_PARMNUM)
151 #define GROUPIDMASK 0x8000
152 #define GROUP_ALL_PARMNUM 0
153 #define GROUP_NAME_PARMNUM 1
154 #define GROUP_COMMENT_PARMNUM 2
155 #define GROUP_ATTRIBUTES_PARMNUM 3
156 #define GROUP_ALL_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+GROUP_ALL_PARMNUM)
157 #define GROUP_NAME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+GROUP_NAME_PARMNUM)
158 #define GROUP_COMMENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+GROUP_COMMENT_PARMNUM)
159 #define GROUP_ATTRIBUTES_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+GROUP_ATTRIBUTES_PARMNUM)
160 #define GROUP_POSIX_ID_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+GROUP_POSIX_ID_PARMNUM)
161 #define LOCALGROUP_NAME_PARMNUM 1
162 #define LOCALGROUP_COMMENT_PARMNUM 2
163 #define MAXPERMENTRIES 64
164 #define ACCESS_NONE 0
165 #define ACCESS_ALL (ACCESS_READ|ACCESS_WRITE|ACCESS_CREATE|ACCESS_EXEC|ACCESS_DELETE|ACCESS_ATRIB|ACCESS_PERM)
166 #define ACCESS_READ 1
167 #define ACCESS_WRITE 2
168 #define ACCESS_CREATE 4
169 #define ACCESS_EXEC 8
170 #define ACCESS_DELETE 16
171 #define ACCESS_ATRIB 32
172 #define ACCESS_PERM 64
173 #define ACCESS_GROUP 0x8000
174 #define ACCESS_AUDIT 1
175 #define ACCESS_SUCCESS_OPEN 16
176 #define ACCESS_SUCCESS_WRITE 32
177 #define ACCESS_SUCCESS_DELETE 64
178 #define ACCESS_SUCCESS_ACL 128
179 #define ACCESS_SUCCESS_MASK 240
180 #define ACCESS_FAIL_OPEN 256
181 #define ACCESS_FAIL_WRITE 512
182 #define ACCESS_FAIL_DELETE 1024
183 #define ACCESS_FAIL_ACL 2048
184 #define ACCESS_FAIL_MASK 3840
185 #define ACCESS_FAIL_SHIFT 4
186 #define ACCESS_RESOURCE_NAME_PARMNUM 1
187 #define ACCESS_ATTR_PARMNUM 2
188 #define ACCESS_COUNT_PARMNUM 3
189 #define ACCESS_ACCESS_LIST_PARMNUM 4
190 #define ACCESS_RESOURCE_NAME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+ACCESS_RESOURCE_NAME_PARMNUM)
191 #define ACCESS_ATTR_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+ACCESS_ATTR_PARMNUM)
192 #define ACCESS_COUNT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+ACCESS_COUNT_PARMNUM)
193 #define ACCESS_ACCESS_LIST_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+ACCESS_ACCESS_LIST_PARMNUM)
194 #define NETLOGON_REPLICATION_NEEDED 1
195 #define NETLOGON_REPLICATION_IN_PROGRESS 2
196 #define NETLOGON_FULL_SYNC_REPLICATION 4
197 #define NETLOGON_REDO_NEEDED 8
199 typedef struct _USER_INFO_0
{ LPWSTR usri0_name
; }USER_INFO_0
,*PUSER_INFO_0
,*LPUSER_INFO_0
;
200 typedef struct _USER_INFO_1
{
202 LPWSTR usri1_password
;
203 DWORD usri1_password_age
;
205 LPWSTR usri1_home_dir
;
206 LPWSTR usri1_comment
;
208 LPWSTR usri1_script_path
;
209 }USER_INFO_1
,*PUSER_INFO_1
,*LPUSER_INFO_1
;
210 typedef struct _USER_INFO_2
{
212 LPWSTR usri2_password
;
213 DWORD usri2_password_age
;
215 LPWSTR usri2_home_dir
;
216 LPWSTR usri2_comment
;
218 LPWSTR usri2_script_path
;
219 DWORD usri2_auth_flags
;
220 LPWSTR usri2_full_name
;
221 LPWSTR usri2_usr_comment
;
223 LPWSTR usri2_workstations
;
224 DWORD usri2_last_logon
;
225 DWORD usri2_last_logoff
;
226 DWORD usri2_acct_expires
;
227 DWORD usri2_max_storage
;
228 DWORD usri2_units_per_week
;
229 PBYTE usri2_logon_hours
;
230 DWORD usri2_bad_pw_count
;
231 DWORD usri2_num_logons
;
232 LPWSTR usri2_logon_server
;
233 DWORD usri2_country_code
;
234 DWORD usri2_code_page
;
235 }USER_INFO_2
,*PUSER_INFO_2
,*LPUSER_INFO_2
;
236 typedef struct _USER_INFO_3
{
238 LPWSTR usri3_password
;
239 DWORD usri3_password_age
;
241 LPWSTR usri3_home_dir
;
242 LPWSTR usri3_comment
;
244 LPWSTR usri3_script_path
;
245 DWORD usri3_auth_flags
;
246 LPWSTR usri3_full_name
;
247 LPWSTR usri3_usr_comment
;
249 LPWSTR usri3_workstations
;
250 DWORD usri3_last_logon
;
251 DWORD usri3_last_logoff
;
252 DWORD usri3_acct_expires
;
253 DWORD usri3_max_storage
;
254 DWORD usri3_units_per_week
;
255 PBYTE usri3_logon_hours
;
256 DWORD usri3_bad_pw_count
;
257 DWORD usri3_num_logons
;
258 LPWSTR usri3_logon_server
;
259 DWORD usri3_country_code
;
260 DWORD usri3_code_page
;
262 DWORD usri3_primary_group_id
;
263 LPWSTR usri3_profile
;
264 LPWSTR usri3_home_dir_drive
;
265 DWORD usri3_password_expired
;
266 }USER_INFO_3
,*PUSER_INFO_3
,*LPUSER_INFO_3
;
267 typedef struct _USER_INFO_10
{
269 LPWSTR usri10_comment
;
270 LPWSTR usri10_usr_comment
;
271 LPWSTR usri10_full_name
;
272 }USER_INFO_10
,*PUSER_INFO_10
,*LPUSER_INFO_10
;
273 typedef struct _USER_INFO_11
{
275 LPWSTR usri11_comment
;
276 LPWSTR usri11_usr_comment
;
277 LPWSTR usri11_full_name
;
279 DWORD usri11_auth_flags
;
280 DWORD usri11_password_age
;
281 LPWSTR usri11_home_dir
;
283 DWORD usri11_last_logon
;
284 DWORD usri11_last_logoff
;
285 DWORD usri11_bad_pw_count
;
286 DWORD usri11_num_logons
;
287 LPWSTR usri11_logon_server
;
288 DWORD usri11_country_code
;
289 LPWSTR usri11_workstations
;
290 DWORD usri11_max_storage
;
291 DWORD usri11_units_per_week
;
292 PBYTE usri11_logon_hours
;
293 DWORD usri11_code_page
;
294 }USER_INFO_11
,*PUSER_INFO_11
,*LPUSER_INFO_11
;
295 typedef struct _USER_INFO_20
{
297 LPWSTR usri20_full_name
;
298 LPWSTR usri20_comment
;
300 DWORD usri20_user_id
;
301 }USER_INFO_20
,*PUSER_INFO_20
,*LPUSER_INFO_20
;
302 typedef struct _USER_INFO_21
{
303 BYTE usri21_password
[ENCRYPTED_PWLEN
];
304 }USER_INFO_21
,*PUSER_INFO_21
,*LPUSER_INFO_21
;
305 typedef struct _USER_INFO_22
{
307 BYTE usri22_password
[ENCRYPTED_PWLEN
];
308 DWORD usri22_password_age
;
310 LPWSTR usri22_home_dir
;
311 LPWSTR usri22_comment
;
313 LPWSTR usri22_script_path
;
314 DWORD usri22_auth_flags
;
315 LPWSTR usri22_full_name
;
316 LPWSTR usri22_usr_comment
;
318 LPWSTR usri22_workstations
;
319 DWORD usri22_last_logon
;
320 DWORD usri22_last_logoff
;
321 DWORD usri22_acct_expires
;
322 DWORD usri22_max_storage
;
323 DWORD usri22_units_per_week
;
324 PBYTE usri22_logon_hours
;
325 DWORD usri22_bad_pw_count
;
326 DWORD usri22_num_logons
;
327 LPWSTR usri22_logon_server
;
328 DWORD usri22_country_code
;
329 DWORD usri22_code_page
;
330 }USER_INFO_22
,*PUSER_INFO_22
,*LPUSER_INFO_22
;
331 typedef struct _USER_INFO_1003
{
332 LPWSTR usri1003_password
;
333 } USER_INFO_1003
,*PUSER_INFO_1003
,*LPUSER_INFO_1003
;
334 typedef struct _USER_INFO_1005
{
336 } USER_INFO_1005
,*PUSER_INFO_1005
,*LPUSER_INFO_1005
;
337 typedef struct _USER_INFO_1006
{
338 LPWSTR usri1006_home_dir
;
339 } USER_INFO_1006
,*PUSER_INFO_1006
,*LPUSER_INFO_1006
;
340 typedef struct _USER_INFO_1007
{
341 LPWSTR usri1007_comment
;
342 } USER_INFO_1007
,*PUSER_INFO_1007
,*LPUSER_INFO_1007
;
343 typedef struct _USER_INFO_1008
{
344 DWORD usri1008_flags
;
345 } USER_INFO_1008
,*PUSER_INFO_1008
,*LPUSER_INFO_1008
;
346 typedef struct _USER_INFO_1009
{
347 LPWSTR usri1009_script_path
;
348 } USER_INFO_1009
,*PUSER_INFO_1009
,*LPUSER_INFO_1009
;
349 typedef struct _USER_INFO_1010
{
350 DWORD usri1010_auth_flags
;
351 } USER_INFO_1010
,*PUSER_INFO_1010
,*LPUSER_INFO_1010
;
352 typedef struct _USER_INFO_1011
{
353 LPWSTR usri1011_full_name
;
354 } USER_INFO_1011
,*PUSER_INFO_1011
,*LPUSER_INFO_1011
;
355 typedef struct _USER_INFO_1012
{
356 LPWSTR usri1012_usr_comment
;
357 } USER_INFO_1012
,*PUSER_INFO_1012
,*LPUSER_INFO_1012
;
358 typedef struct _USER_INFO_1013
{
359 LPWSTR usri1013_parms
;
360 } USER_INFO_1013
,*PUSER_INFO_1013
,*LPUSER_INFO_1013
;
361 typedef struct _USER_INFO_1014
{
362 LPWSTR usri1014_workstations
;
363 } USER_INFO_1014
,*PUSER_INFO_1014
,*LPUSER_INFO_1014
;
364 typedef struct _USER_INFO_1017
{
365 DWORD usri1017_acct_expires
;
366 } USER_INFO_1017
,*PUSER_INFO_1017
,*LPUSER_INFO_1017
;
367 typedef struct _USER_INFO_1018
{
368 DWORD usri1018_max_storage
;
369 } USER_INFO_1018
,*PUSER_INFO_1018
,*LPUSER_INFO_1018
;
370 typedef struct _USER_INFO_1020
{
371 DWORD usri1020_units_per_week
;
372 PBYTE usri1020_logon_hours
;
373 } USER_INFO_1020
,*PUSER_INFO_1020
,*LPUSER_INFO_1020
;
374 typedef struct _USER_INFO_1023
{
375 LPWSTR usri1023_logon_server
;
376 } USER_INFO_1023
,*PUSER_INFO_1023
,*LPUSER_INFO_1023
;
377 typedef struct _USER_INFO_1024
{
378 DWORD usri1024_country_code
;
379 } USER_INFO_1024
,*PUSER_INFO_1024
,*LPUSER_INFO_1024
;
380 typedef struct _USER_INFO_1025
{
381 DWORD usri1025_code_page
;
382 } USER_INFO_1025
,*PUSER_INFO_1025
,*LPUSER_INFO_1025
;
383 typedef struct _USER_INFO_1051
{
384 DWORD usri1051_primary_group_id
;
385 } USER_INFO_1051
,*PUSER_INFO_1051
,*LPUSER_INFO_1051
;
386 typedef struct _USER_INFO_1052
{
387 LPWSTR usri1052_profile
;
388 } USER_INFO_1052
,*PUSER_INFO_1052
,*LPUSER_INFO_1052
;
389 typedef struct _USER_INFO_1053
{
390 LPWSTR usri1053_home_dir_drive
;
391 } USER_INFO_1053
,*PUSER_INFO_1053
,*LPUSER_INFO_1053
;
392 typedef struct _USER_MODALS_INFO_0
{
393 DWORD usrmod0_min_passwd_len
;
394 DWORD usrmod0_max_passwd_age
;
395 DWORD usrmod0_min_passwd_age
;
396 DWORD usrmod0_force_logoff
;
397 DWORD usrmod0_password_hist_len
;
398 }USER_MODALS_INFO_0
,*PUSER_MODALS_INFO_0
,*LPUSER_MODALS_INFO_0
;
399 typedef struct _USER_MODALS_INFO_1
{
401 LPWSTR usrmod1_primary
;
402 }USER_MODALS_INFO_1
,*PUSER_MODALS_INFO_1
,*LPUSER_MODALS_INFO_1
;
403 typedef struct _USER_MODALS_INFO_2
{
404 LPWSTR usrmod2_domain_name
;
405 PSID usrmod2_domain_id
;
406 }USER_MODALS_INFO_2
,*PUSER_MODALS_INFO_2
,*LPUSER_MODALS_INFO_2
;
407 typedef struct _USER_MODALS_INFO_3
{
408 DWORD usrmod3_lockout_duration
;
409 DWORD usrmod3_lockout_observation_window
;
410 DWORD usrmod3_lockout_threshold
;
411 }USER_MODALS_INFO_3
,*PUSER_MODALS_INFO_3
,*LPUSER_MODALS_INFO_3
;
412 typedef struct _USER_MODALS_INFO_1001
{
413 DWORD usrmod1001_min_passwd_len
;
414 } USER_MODALS_INFO_1001
,*PUSER_MODALS_INFO_1001
,*LPUSER_MODALS_INFO_1001
;
415 typedef struct _USER_MODALS_INFO_1002
{
416 DWORD usrmod1002_max_passwd_age
;
417 } USER_MODALS_INFO_1002
,*PUSER_MODALS_INFO_1002
,*LPUSER_MODALS_INFO_1002
;
418 typedef struct _USER_MODALS_INFO_1003
{
419 DWORD usrmod1003_min_passwd_age
;
420 } USER_MODALS_INFO_1003
,*PUSER_MODALS_INFO_1003
,*LPUSER_MODALS_INFO_1003
;
421 typedef struct _USER_MODALS_INFO_1004
{
422 DWORD usrmod1004_force_logoff
;
423 } USER_MODALS_INFO_1004
,*PUSER_MODALS_INFO_1004
,*LPUSER_MODALS_INFO_1004
;
424 typedef struct _USER_MODALS_INFO_1005
{
425 DWORD usrmod1005_password_hist_len
;
426 } USER_MODALS_INFO_1005
,*PUSER_MODALS_INFO_1005
,*LPUSER_MODALS_INFO_1005
;
427 typedef struct _USER_MODALS_INFO_1006
{
428 DWORD usrmod1006_role
;
429 } USER_MODALS_INFO_1006
,*PUSER_MODALS_INFO_1006
,*LPUSER_MODALS_INFO_1006
;
430 typedef struct _USER_MODALS_INFO_1007
{
431 LPWSTR usrmod1007_primary
;
432 } USER_MODALS_INFO_1007
,*PUSER_MODALS_INFO_1007
,*LPUSER_MODALS_INFO_1007
;
433 typedef struct _GROUP_INFO_0
{
435 }GROUP_INFO_0
,*PGROUP_INFO_0
,*LPGROUP_INFO_0
;
436 typedef struct _GROUP_INFO_1
{
438 LPWSTR grpi1_comment
;
439 }GROUP_INFO_1
,*PGROUP_INFO_1
,*LPGROUP_INFO_1
;
440 typedef struct _GROUP_INFO_2
{
442 LPWSTR grpi2_comment
;
443 DWORD grpi2_group_id
;
444 DWORD grpi2_attributes
;
445 }GROUP_INFO_2
,*PGROUP_INFO_2
;
446 typedef struct _GROUP_INFO_1002
{
447 LPWSTR grpi1002_comment
;
448 } GROUP_INFO_1002
,*PGROUP_INFO_1002
,*LPGROUP_INFO_1002
;
449 typedef struct _GROUP_INFO_1005
{
450 DWORD grpi1005_attributes
;
451 } GROUP_INFO_1005
,*PGROUP_INFO_1005
,*LPGROUP_INFO_1005
;
452 typedef struct _GROUP_USERS_INFO_0
{
454 } GROUP_USERS_INFO_0
,*PGROUP_USERS_INFO_0
,*LPGROUP_USERS_INFO_0
;
455 typedef struct _GROUP_USERS_INFO_1
{
457 DWORD grui1_attributes
;
458 } GROUP_USERS_INFO_1
,*PGROUP_USERS_INFO_1
,*LPGROUP_USERS_INFO_1
;
459 typedef struct _LOCALGROUP_INFO_0
{
461 }LOCALGROUP_INFO_0
,*PLOCALGROUP_INFO_0
,*LPLOCALGROUP_INFO_0
;
462 typedef struct _LOCALGROUP_INFO_1
{
464 LPWSTR lgrpi1_comment
;
465 }LOCALGROUP_INFO_1
,*PLOCALGROUP_INFO_1
,*LPLOCALGROUP_INFO_1
;
466 typedef struct _LOCALGROUP_INFO_1002
{
467 LPWSTR lgrpi1002_comment
;
468 }LOCALGROUP_INFO_1002
,*PLOCALGROUP_INFO_1002
,*LPLOCALGROUP_INFO_1002
;
469 typedef struct _LOCALGROUP_MEMBERS_INFO_0
{
471 } LOCALGROUP_MEMBERS_INFO_0
,*PLOCALGROUP_MEMBERS_INFO_0
,*LPLOCALGROUP_MEMBERS_INFO_0
;
472 typedef struct _LOCALGROUP_MEMBERS_INFO_1
{
474 SID_NAME_USE lgrmi1_sidusage
;
476 } LOCALGROUP_MEMBERS_INFO_1
,*PLOCALGROUP_MEMBERS_INFO_1
,*LPLOCALGROUP_MEMBERS_INFO_1
;
477 typedef struct _LOCALGROUP_MEMBERS_INFO_2
{
479 SID_NAME_USE lgrmi2_sidusage
;
480 LPWSTR lgrmi2_domainandname
;
481 } LOCALGROUP_MEMBERS_INFO_2
,*PLOCALGROUP_MEMBERS_INFO_2
,*LPLOCALGROUP_MEMBERS_INFO_2
;
482 typedef struct _LOCALGROUP_MEMBERS_INFO_3
{
483 LPWSTR lgrmi3_domainandname
;
484 } LOCALGROUP_MEMBERS_INFO_3
,*PLOCALGROUP_MEMBERS_INFO_3
,
485 *LPLOCALGROUP_MEMBERS_INFO_3
;
486 typedef struct _LOCALGROUP_USERS_INFO_0
{
488 } LOCALGROUP_USERS_INFO_0
,*PLOCALGROUP_USERS_INFO_0
,*LPLOCALGROUP_USERS_INFO_0
;
489 typedef struct _NET_DISPLAY_USER
{
491 LPWSTR usri1_comment
;
493 LPWSTR usri1_full_name
;
495 DWORD usri1_next_index
;
496 } NET_DISPLAY_USER
,*PNET_DISPLAY_USER
;
497 typedef struct _NET_DISPLAY_MACHINE
{
499 LPWSTR usri2_comment
;
502 DWORD usri2_next_index
;
503 } NET_DISPLAY_MACHINE
,*PNET_DISPLAY_MACHINE
;
504 typedef struct _NET_DISPLAY_GROUP
{
506 LPWSTR grpi3_comment
;
507 DWORD grpi3_group_id
;
508 DWORD grpi3_attributes
;
509 DWORD grpi3_next_index
;
510 } NET_DISPLAY_GROUP
,*PNET_DISPLAY_GROUP
;
511 typedef struct _ACCESS_INFO_0
{
512 LPTSTR acc0_resource_name
;
513 }ACCESS_INFO_0
,*PACCESS_INFO_0
,*LPACCESS_INFO_0
;
514 typedef struct _ACCESS_INFO_1
{
515 LPTSTR acc1_resource_name
;
518 }ACCESS_INFO_1
,*PACCESS_INFO_1
,*LPACCESS_INFO_1
;
519 typedef struct _ACCESS_INFO_1002
{
521 } ACCESS_INFO_1002
,*PACCESS_INFO_1002
,*LPACCESS_INFO_1002
;
522 typedef struct _ACCESS_LIST
{
525 }ACCESS_LIST
,*PACCESS_LIST
,*LPACCESS_LIST
;
526 typedef struct _NETLOGON_INFO_1
{
528 NET_API_STATUS netlog1_pdc_connection_status
;
529 } NETLOGON_INFO_1
,*PNETLOGON_INFO_1
;
530 typedef struct _NETLOGON_INFO_2
{
532 NET_API_STATUS netlog2_pdc_connection_status
;
533 LPWSTR netlog2_trusted_dc_name
;
534 NET_API_STATUS netlog2_tc_connection_status
;
535 } NETLOGON_INFO_2
,*PNETLOGON_INFO_2
;
536 typedef struct _NETLOGON_INFO_3
{
538 DWORD netlog3_logon_attempts
;
539 DWORD netlog3_reserved1
;
540 DWORD netlog3_reserved2
;
541 DWORD netlog3_reserved3
;
542 DWORD netlog3_reserved4
;
543 DWORD netlog3_reserved5
;
544 } NETLOGON_INFO_3
,*PNETLOGON_INFO_3
;
547 /* MS has these defined, but the RxNetAccessXX functions aren't documented nor do
548 they exist in any headers */
549 #define NetAccessAdd RxNetAccessAdd
550 #define NetAccessEnum RxNetAccessEnum
551 #define NetAccessGetInfo RxNetAccessGetInfo
552 #define NetAccessSetInfo RxNetAccessSetInfo
553 #define NetAccessDel RxNetAccessDel
554 #define NetAccessGetUserPerms RxNetAccessGetUserPerms
555 /* These are obsolete */
556 NET_API_STATUS WINAPI
NetAccessAdd(LPTSTR
,DWORD
,PBYTE
,PDWORD
);
557 NET_API_STATUS WINAPI
NetAccessEnum(LPTSTR
,LPTSTR
,DWORD
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
,PDWORD
);
558 NET_API_STATUS WINAPI
NetAccessGetInfo(LPTSTR
,LPTSTR
,DWORD
,PBYTE
*);
559 NET_API_STATUS WINAPI
NetAccessSetInfo(LPTSTR
,LPTSTR
,DWORD
,PBYTE
,PDWORD
);
560 NET_API_STATUS WINAPI
NetAccessDel(LPTSTR
,LPTSTR
);
561 NET_API_STATUS WINAPI
NetAccessGetUserPerms(LPTSTR
,LPTSTR
,LPTSTR
,PDWORD
);
564 NET_API_STATUS WINAPI
NetUserAdd(LPWSTR
,DWORD
,PBYTE
,PDWORD
);
565 NET_API_STATUS WINAPI
NetUserEnum(LPWSTR
,DWORD
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
,PDWORD
);
566 NET_API_STATUS WINAPI
NetUserGetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*);
567 NET_API_STATUS WINAPI
NetUserSetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,PDWORD
);
568 NET_API_STATUS WINAPI
NetUserDel(LPWSTR
,LPWSTR
);
569 NET_API_STATUS WINAPI
NetUserGetGroups(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
);
570 NET_API_STATUS WINAPI
NetUserSetGroups(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,DWORD
);
571 NET_API_STATUS WINAPI
NetUserGetLocalGroups(LPWSTR
,LPWSTR
,DWORD
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
);
572 NET_API_STATUS WINAPI
NetUserModalsGet(LPWSTR
,DWORD
,PBYTE
*);
573 NET_API_STATUS WINAPI
NetUserModalsSet(LPWSTR
,DWORD
,PBYTE
,PDWORD
);
574 NET_API_STATUS WINAPI
NetUserChangePassword(LPWSTR
,LPWSTR
,LPWSTR
,LPWSTR
);
575 NET_API_STATUS WINAPI
NetGroupAdd(LPWSTR
,DWORD
,PBYTE
,PDWORD
);
576 NET_API_STATUS WINAPI
NetGroupAddUser(LPWSTR
,LPWSTR
,LPWSTR
);
577 NET_API_STATUS WINAPI
NetGroupEnum(LPWSTR
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
,PDWORD
);
578 NET_API_STATUS WINAPI
NetGroupGetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*);
579 NET_API_STATUS WINAPI
NetGroupSetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,PDWORD
);
580 NET_API_STATUS WINAPI
NetGroupDel(LPWSTR
,LPWSTR
);
581 NET_API_STATUS WINAPI
NetGroupDelUser(LPWSTR
,LPWSTR
,LPWSTR
);
582 NET_API_STATUS WINAPI
NetGroupGetUsers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
,PDWORD
);
583 NET_API_STATUS WINAPI
NetGroupSetUsers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,DWORD
);
584 NET_API_STATUS WINAPI
NetLocalGroupAdd(LPWSTR
,DWORD
,PBYTE
,PDWORD
);
585 NET_API_STATUS WINAPI
NetLocalGroupAddMember(LPWSTR
,LPWSTR
,PSID
);
586 NET_API_STATUS WINAPI
NetLocalGroupEnum(LPWSTR
,DWORD
,PBYTE
*,DWORD
,PDWORD
,PDWORD
,PDWORD
);
587 NET_API_STATUS WINAPI
NetLocalGroupGetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*);
588 NET_API_STATUS WINAPI
NetLocalGroupSetInfo(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,PDWORD
);
589 NET_API_STATUS WINAPI
NetLocalGroupDel(LPWSTR
,LPWSTR
);
590 NET_API_STATUS WINAPI
NetLocalGroupDelMember(LPWSTR
,LPWSTR
,PSID
);
591 NET_API_STATUS WINAPI
NetLocalGroupGetMembers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
*,DWORD
,
592 PDWORD
,PDWORD
,PDWORD
);
593 NET_API_STATUS WINAPI
NetLocalGroupSetMembers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,DWORD
);
594 NET_API_STATUS WINAPI
NetLocalGroupAddMembers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,DWORD
);
595 NET_API_STATUS WINAPI
NetLocalGroupDelMembers(LPWSTR
,LPWSTR
,DWORD
,PBYTE
,DWORD
);
596 NET_API_STATUS WINAPI
NetQueryDisplayInformation(LPWSTR
,DWORD
,DWORD
,DWORD
,DWORD
,PDWORD
,PVOID
*);
597 NET_API_STATUS WINAPI
NetGetDisplayInformationIndex(LPWSTR
,DWORD
,LPWSTR
,PDWORD
);
598 NET_API_STATUS WINAPI
NetGetDCName(LPWSTR
,LPWSTR
,PBYTE
*);
599 NET_API_STATUS WINAPI
NetGetAnyDCName(LPWSTR
,LPWSTR
,PBYTE
*);
600 NET_API_STATUS WINAPI
I_NetLogonControl(LPWSTR
,DWORD
,DWORD
,PBYTE
*);
601 NET_API_STATUS WINAPI
I_NetLogonControl2(LPWSTR
,DWORD
,DWORD
,PBYTE
,PBYTE
*);