Get list of computers in workgroup using C?

  • Follow


Hoping for help!

I have a leagacy C program (not .net), which is currently sending "net
view" via a system() call, writing to a file, then reading the file,
to get a list of computers in the workgroup.

There must be a way to program this from C with Windows calls?  I'm
not a network guru, and am not finding how to do this...

Windows 2008 and 2000.

Thanks!
0
Reply cdmccutcheon (2) 12/14/2009 2:53:49 PM

On 2009-12-14 15:53, CDM wrote:
> I have a leagacy C program (not .net), which is currently sending "net
> view" via a system() call, writing to a file, then reading the file,
> to get a list of computers in the workgroup.
>
> There must be a way to program this from C with Windows calls?  I'm
> not a network guru, and am not finding how to do this...
>
NetServerEnum(): http://msdn.microsoft.com/library/aa370623

-- 
J.
0
Reply Jeroen 12/14/2009 3:06:33 PM


1 Replies
712 Views

(page loaded in 0.025 seconds)

Similiar Articles:













7/23/2012 9:58:49 PM


Reply: