[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct USER_INFO_4
{
public string name;
public string password;
public int password_age;
public UserPrivileges priv;
public string home_dir;
public string comment;
public UserFlags flags;
public string script_path;
public AuthFlags auth_flags;
public string full_name;
public string usr_comment;
public string parms;
public string workstations;
public int last_logon;
public int last_logoff;
public int acct_expires;
public int max_storage;
public int units_per_week;
public IntPtr logon_hours; // This is a PBYTE
public int bad_pw_count;
public int num_logons;
public string logon_server;
public int country_code;
public int code_page;
public IntPtr user_sid; // This is a PSID
public int primary_group_id;
public string profile;
public string home_dir_drive;
public int password_expired;
}
Structure USER_INFO_4
Public TODO
End Structure
None.
None.