Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 754 Bytes

File metadata and controls

26 lines (18 loc) · 754 Bytes

NetUserEnum

The code gets a list of local users, using Windows API method NetUserEnum from netapi32.dll

Structure USER_INFO_1 is defined according to Microsoft docs

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
}

The const were also defined according to Microsoft docs.

License

See the LICENSE file for license rights and limitations (MIT).