Article View: borland.public.cppbuilder.nativeapi
Article #13565Re: List of Computers in network, and Users
From: Michel Leunen
Date: Fri, 03 Oct 2003 11:04
Date: Fri, 03 Oct 2003 11:04
20 lines
1765 bytes
1765 bytes
Phil V wrote: > What is the method that I can use to get a list of all the local computers > on a network? > > I want to be able to get the names of all the computers in a network and put > them into a list, and if possible also list the user that is currently > logged onto the relevant PC's. You have to use WNetOpenEnum(), WNetEnumResource(), WNetCloseEnum(). If you need a working sample, have a look at : http://www.leunen.com/cbuilder/netenum.html Michel -- ---------------------------------------- Michel Leunen mailto:michel@leunen.com http://www.leunen.com/cbuilder/ ----------------------------------------
Technical Details
Message-ID:
<3f7d57bc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f7d3005$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,edf306615eb2be44 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-03 04:11:38 PST Date: Fri, 03 Oct 2003 13:04:21 +0200 From: Michel Leunen <mleu@skynet.be> Organization: http://www.leunen.com/cbuilder/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: List of Computers in network, and Users References: <3f7d3005$1@newsgroups.borland.com> In-Reply-To: <3f7d3005$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.136.247.86 Message-ID: <3f7d57bc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065179068 217.136.247.86 (3 Oct 2003 04:04:28 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail