views:

667

answers:

2

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.

+2  A: 

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

Ray
+2  A: 

Just use netw apis.