🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SHGetSpecialFolderLocation still not functioning on Win 95!

#15227
From: Remy Lebeau (TeamB)
Date: Sun, 13 Jul 2003 07:13
37 lines
2313 bytes
"Going Insane" <a@bv.com> wrote in message
news:3f10efcc$1@newsgroups.borland.com...

> I also need to get other directories, System

GetSystemDirectory()

> Windows

GetWindowsDirectory().

> Program Files

There is no CLSID or dedicated function for that particular folder until
v5.0 of the shell, when support for CSIDL_PROGRAM_FILES was added for
SHGetSpecialFolderLocation().  Unless you redistribute SHFOLDER.DLL on older
systems so that you can use the SHGetFolderPath() function with its updated
values.

> I am using CSIDL_WINDOWS, CSIDL_SYSTEM
> and CSIDL_PROGRAM_FILES....  and DAMN
> they are all introduced in version 5.0 of shell32.dll ....
> so that is what the problem is - now I really need you help......

You are trying to find a do-all function that handles everything in one
single place.  There is no such solution except in newer versions, as you
have already noticed.  For older version, you will just have to handle
certain values separately as appropriate.

> I have to find a way to get these three folder locations
> on all platforms 95, 98, NT4, ME, 2000 and XP that works ...

See above.


Gambit
Technical Details
Message-ID: <3f110580$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f105f7e@newsgroups.borland.com> <h7c1hv8ufrs2hb0d0lqka3c87acg8aim5m@4ax.com> <3f10efcc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,556d3fb208abaeda
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-13 00:33:53 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f105f7e@newsgroups.borland.com> <h7c1hv8ufrs2hb0d0lqka3c87acg8aim5m@4ax.com> <3f10efcc$1@newsgroups.borland.com>
Subject: Re: SHGetSpecialFolderLocation still not functioning on Win 95!
Date: Sun, 13 Jul 2003 00:13:50 -0700
Lines: 39
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f110580$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058080128 207.175.226.26 (13 Jul 2003 00:08:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail