Article View: borland.public.cppbuilder.nativeapi
Article #13817Re: SpecialFolderLocation!
From: Safari
Date: Tue, 16 Sep 2003 19:35
Date: Tue, 16 Sep 2003 19:35
58 lines
2767 bytes
2767 bytes
Hello Remy,
AnsiString __fastcall GetPaths(int Path)
{
PItemIDList idList;
char idPath[MAX_PATH + 1] = {0};
SHGetSpecialFolderLocation(0, Path, &idList);
SHGetPathFromIDList(idList, idPath);
CoTaskMemFree(idList);
return String(idPath);
}
/*
Desktop:
C:\Win98\Desktop
D:\Documents and Settings\Administrator\Desktop
Documents:
C:\Win98\Documents
D:\Documents and Settings\Administrator\Documents
Program Files:
Empty /* In Win98 (4.10.1998) */
D:\Program Files /* In Win2K (5.0.2195) */
Programs:
C:\Win98\Start Menu\Programs
D:\Documents and Settings\Administrator\Start Menu\Programs
Startup:
C:\Win98\Start Menu\Programs\StartUp
D:\Documents and Settings\Administrator\Start Menu\Programs\Startup
System:
Empty /* In Win98 (4.10.1998) */
D:\Win2K\System32 /* In Win2K (5.0.2195) */
Windows:
Empty /* In Win98 (4.10.1998) */
D:\Win2K /* In Win2K (5.0.2195) */
Thanks,
Safari
*/
Remy Lebeau (TeamB) wrote:
> "Safari" <Safari@alloymail.com> wrote in message
> news:3f652cf8@newsgroups.borland.com...
>
> It doesn't matter what the IE version is. It matters what the Shlwapi.dll
> version that ships with it is. Even then, if you were to upgrate all the
> way to the latest IE 6 (as I have), it still would not matter. Those few
> values I mentioned earlier **are not supported** for Win9x. Period. End of
> discussion. They do not work. Use the alternative approaches as already
> outlined.
>
> Gambit
Technical Details
Message-ID:
<3F67661C.4060309@alloymail.com>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-mailReferences:
<3F63A478.1080901@alloymail.com> <3f639f01$1@newsgroups.borland.com> <3f63b367@newsgroups.borland.com> <3f63b711$1@newsgroups.borland.com> <3f64f6e9@newsgroups.borland.com> <3f64f99a$1@newsgroups.borland.com> <3f652cf8@newsgroups.borland.com> <3f65320b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,64d61a6d0b62f704 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-16 14:40:45 PST Message-ID: <3F67661C.4060309@alloymail.com> Date: Wed, 17 Sep 2003 00:05:56 +0430 From: Safari <Safari@alloymail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; 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: SpecialFolderLocation! References: <3F63A478.1080901@alloymail.com> <3f639f01$1@newsgroups.borland.com> <3f63b367@newsgroups.borland.com> <3f63b711$1@newsgroups.borland.com> <3f64f6e9@newsgroups.borland.com> <3f64f99a$1@newsgroups.borland.com> <3f652cf8@newsgroups.borland.com> <3f65320b$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 194.225.63.193 X-Trace: newsgroups.borland.com 1063747990 194.225.63.193 (16 Sep 2003 14:33:10 -0700) Lines: 59 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