🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13913

Re: How can i enumerate shared network folders

#13913
From: dcent
Date: Mon, 08 Sep 2003 19:43
20 lines
1571 bytes

ScOe wrote:
<snip>
>                 // i thought this will enumarate folders but ... noup
>                 lpnrLocal[i].dwType = RESOURCETYPE_ANY;
Should this be?
                   lpnrLocal[i].dwType = RESOURCETYPE_DISK;

>                 if (WNetAddConnection2(&lpnrLocal[i], NULL, NULL,
> CONNECT_UPDATE_PROFILE) == NO_ERROR)
>                     TreeView1->Items->AddChild (pNode,
> lpnrLocal[i].lpLocalName);
>                 }
>             }
>         }
>     }
<snip>

dcent
Technical Details
Message-ID: <3F5CDBC7.6060401@NetScape.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f43f193@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f9a47c46079cf430
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-08 13:09:32 PST
Message-ID: <3F5CDBC7.6060401@NetScape.net>
Date: Mon, 08 Sep 2003 14:43:03 -0500
From: dcent <DcentJ8@NetScape.net>
Reply-To:  DcentJ8@NetScape.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How can i enumerate shared network folders
References: <3f43f193@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66.156.196.72
X-Trace: newsgroups.borland.com 1063050187 66.156.196.72 (8 Sep 2003 12:43:07 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail