/
structs.go
51 lines (47 loc) · 1.18 KB
/
structs.go
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
package netapi32
import "time"
type USER_INFO_1 struct {
usri1_name *uint16
usri1_password *uint16
usri1_password_age uint32
usri1_priv uint32
usri1_home_dir *uint16
usri1_comment *uint16
usri1_flags uint32
usri1_script_path *uint16
}
type LocalUser1 struct {
Username string
PasswordAge time.Duration
Privilege string
HomeDirectory string
Comment string
Flags []string
ScriptPath string
}
type USER_INFO_2 struct {
Usri2_name *uint16
Usri2_password *uint16
Usri2_password_age uint32
Usri2_priv uint32
Usri2_home_dir *uint16
Usri2_comment *uint16
Usri2_flags uint32
Usri2_script_path *uint16
Usri2_auth_flags uint32
Usri2_full_name *uint16
Usri2_usr_comment *uint16
Usri2_parms *uint16
Usri2_workstations *uint16
Usri2_last_logon uint32
Usri2_last_logoff uint32
Usri2_acct_expires uint32
Usri2_max_storage uint32
Usri2_units_per_week uint32
Usri2_logon_hours uintptr
Usri2_bad_pw_count uint32
Usri2_num_logons uint32
Usri2_logon_server *uint16
Usri2_country_code uint32
Usri2_code_page uint32
}