Check the System.DirectoryServices namespace in MSDN.
http://msdn.microsoft.com/library/de...opytotopic.asp
And start reading "Creating DirectoryEntry Component Instances"
http://msdn.microsoft.com/library/en...asp?frame=true
I would also suggest to drop the WinNT provider in favor of the LDAP
provider when running a AD domain.
Willy.
"Thomaz" <(E-Mail Removed)> wrote in message
news:013701c3d555$76202360$(E-Mail Removed)...
> In VB, I can write the following code to get the list of
> users and groups in the domain ASIA. How do I do the same
> in C#
>
> Set objContainer = GetObject("WinNT://ASIA")
> objContainer.Filter = Array("user", "group")
> For Each user In objContainer
> List1.AddItem user.Name
> Next
>
> Thanks and Regards,
> Thomaz