Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enum domain users

Status
Not open for further replies.

UnknownPerson

Programmer
Dec 4, 2001
80
0
0
BR
When I use Windows NT (or 2k) in the permissions of a file object (directory or file) there is the option of adding users or groups to access the file/dir.

What I can't find out is how to enumerate these users with code. I want to have a domain name (i.e.: MYDOMAIN) and be able to enumerate users and groups on that domain along with the description (which would be the users' name and description fields?).

Any help or reference is greatelly appreciated!!

Yours,
Rodrigo Madera
 
Found it... no more help needed anymore =)

Thanks anyway for reading it!!
 
You need Platform SDK Network Management API (NetUserEnum or NetQueryDisplayInformation functions, NT/2000/XP only). I never used this API. Read MSDN, sorry...
 
What about Win98 users??

How can I support this operation on Win9x machines!?!?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top