🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Enumerating Partition Roots

#13298
From: Remy Lebeau (TeamB)
Date: Sun, 19 Oct 2003 22:05
22 lines
1716 bytes
"Gerry O'Brien" <no.ku.qwolb@bog.spam> wrote in message
news:3f926291$1@newsgroups.borland.com...

> I can search correctly starting from a known path such as C:\Path
> using the desktop IShellFolder returned from SHGetDesktopFolder,
> parsing the path, binding the pidl that ParseDisplayName finds and
> enumerating the resultant IShellFolder

The same applies to what you are asking.  Simply use GetLogicalDrives() or
GetLogicalDriveStrings() to know whice strings to pass to
IShellFolder::ParseDisplayName() for the desktop object.

> I eventually learnt how to enumerate the desktop folders and files
> without listing other shell objects by getting the IShellFolder for the
> desktop directory using SHGetSpecialFolderLocation with
> CSIDL_DESKTOPDIRECTORY.

Have a look at CSIDL_DRIVES as well.


Gambit
Technical Details
Message-ID: <3f930a0c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f926291$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,170cdd7dc15ee467
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-19 15:09:10 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f926291$1@newsgroups.borland.com>
Subject: Re: Enumerating Partition Roots
Date: Sun, 19 Oct 2003 15:05:15 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f930a0c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066600972 67.22.137.75 (19 Oct 2003 15:02:52 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail