Computer list in Workgroup

  • Thread starter Thread starter Eka Gautama
  • Start date Start date
Eka,

You probably want to use the P/Invoke layer and call the
NetQueryDisplayInformation 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 NetQueryDisplayInformation() in Visual Basic" located at (watch for line
wrap):

http://support.microsoft.com/default.aspx?scid=kb;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,

This requires a domain controller and is not usable in a workgroup.

Willy.

Nicholas Paldino said:
Eka,

You probably want to use the P/Invoke layer and call the
NetQueryDisplayInformation 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 NetQueryDisplayInformation() in Visual Basic" located at (watch for line
wrap):

http://support.microsoft.com/default.aspx?scid=kb;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]
- (e-mail address removed)

Eka Gautama said:
Hi All,

How to retrive computer list in a workgroup?


Regards

Eka
 
Back
Top