Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

USER_INFO_2 (netapi32)
 
.
Summary
TODO - a short description

C# Signature:

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public struct USER_INFO_2
    {
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_name;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_password;
        public int usri2_password_age;
        public int usri2_priv;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_home_dir;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_comment;
        public uint usri2_flags;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_script_path;
        public uint usri2_auth_flags;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_full_name;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_usr_comment;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_parms;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_workstations;
        public uint usri2_last_logon;
        public uint usri2_last_logoff;
        public uint usri2_acct_expires;
        public int usri2_max_storage;
        public int usri2_units_per_week;
        IntPtr usri2_logon_hours;
        public uint usri2_bad_pw_count;
        public uint usri2_num_logons;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string usri2_logon_server;
        public int usri2_country_code;
        public int usri2_code_page;
    }

VB Signature:

Declare Function USER_INFO_2 Lib "netapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
USER_INFO_2 on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions