Brian R. Bondy
Brian R. Bondy

Reputation: 347546

How do I get a list of domain user accounts with win32 api?

How do I get a list of domain user accounts with win32 api?

In particular, I can't get this list when the computer is not the domain controller. Instead it is a member of the domain.

Upvotes: 3

Views: 1923

Answers (2)

Marc
Marc

Reputation:

Just use netw apis.

Upvotes: 2

Ray
Ray

Reputation: 106

Look into the LDAP API. This will let you query the LDAP server which will have a list of the user accounts.

Upvotes: 2

Related Questions