You need to use the System.Director yServices namespace and the classes
therein
There's an article on MSDN [1] which a couple of examples of how to use this
classes,
--
Patrik Löwendahl
cshrp.net - ' Elegant code by witty programmers '
cornerstone.se - ' IT Training for professionals '
mind for newline
[1]http://msdn.microsoft. com/library/default.asp?url =/library/en-us/dndotnet
/html/dotnetadsearch. asp
"Eka Gautama" <eka.gautama@re liance-insurance.com> wrote in message
news:uP0riJVmDH A.3316@TK2MSFTN GP11.phx.gbl...[color=blue]
> Hi All,
>
> How to retrive computer list in a workgroup?
>
>
> Regards
>
> Eka
>
>[/color]
You probably want to use the P/Invoke layer and call the
NetQueryDisplay Information API function. This will allow you to enumerate
through machines on the network. You will have to make the call through the
P/Invoke layer though. Check out the knowledge base article titled "HOWTO:
Use NetQueryDisplay Information() in Visual Basic" located at (watch for line
wrap):
"Eka Gautama" <eka.gautama@re liance-insurance.com> wrote in message
news:uP0riJVmDH A.3316@TK2MSFTN GP11.phx.gbl...[color=blue]
> Hi All,
>
> How to retrive computer list in a workgroup?
>
>
> Regards
>
> Eka
>
>[/color]
This requires a domain controller and is not usable in a workgroup.
Willy.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in message news:u5Z6lYWmDH A.3700@TK2MSFTN GP11.phx.gbl...[color=blue]
> Eka,
>
> You probably want to use the P/Invoke layer and call the
> NetQueryDisplay Information API function. This will allow you to enumerate
> through machines on the network. You will have to make the call through the
> P/Invoke layer though. Check out the knowledge base article titled "HOWTO:
> Use NetQueryDisplay Information() in Visual Basic" located at (watch for line
> wrap):
>
> http://support.microsoft.com/default...b;en-us;316318
>
> While it is for VB6, you can use that to help with making the
> declarations and the calls in C#.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard. caspershouse.co m
>
> "Eka Gautama" <eka.gautama@re liance-insurance.com> wrote in message
> news:uP0riJVmDH A.3316@TK2MSFTN GP11.phx.gbl...[color=green]
> > Hi All,
> >
> > How to retrive computer list in a workgroup?
> >
> >
> > Regards
> >
> > Eka
> >
> >[/color]
>
>[/color]
Comment