Article View: borland.public.cppbuilder.nativeapi
Article #15226Re: SHGetSpecialFolderLocation still not functioning on Win 95!
From: Going Insane
Date: Sun, 13 Jul 2003 05:37
Date: Sun, 13 Jul 2003 05:37
34 lines
2395 bytes
2395 bytes
Hi Bob, "Bob Gonder" <notbg@notmindspring.invalid> wrote [...] > >if( SUCCEEDED(SHGetSpecialFolderLocation(NULL, CSIDL_SYSTEM, &pidl)) ) > > Maybe nothing, but my help doesn't say anything about CSIDL_SYSTEM. > Maybe it was added later (after '95). Good idea.... looking now .... Yes - It seems that it was introduced in version 5.0 of tyhe host dll. DAMN. > What's wrong with GetSystemDirectory() ? I also need to get other directories, System, Windows, Program Files. This is just one example of my problem - but the problem exists for all. 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...... I have to find a way to get these three folder locations on all platforms 95, 98, NT4, ME, 2000 and XP that works ... I do not wish to require my customers have installed upgrades (IE) or patches to get this code to work. The GetWindowsDirectory() and GetSystemDirectory() functions might work (have to test it), so thats 2 out of 3.... do you know of an alternative for method that works (should work) for getting the "Program Files" directory? Thanks for the ideas Bob.... maybe I will get this solved this weekend.... Anyone else got some ideas for me? Zack.
Technical Details
Message-ID:
<3f10efcc$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-08!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f105f7e@newsgroups.borland.com> <h7c1hv8ufrs2hb0d0lqka3c87acg8aim5m@4ax.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-12 22:37:40 PST From: "Going Insane" <a@bv.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f105f7e@newsgroups.borland.com> <h7c1hv8ufrs2hb0d0lqka3c87acg8aim5m@4ax.com> Subject: Re: SHGetSpecialFolderLocation still not functioning on Win 95! Date: Sat, 12 Jul 2003 22:37:15 -0700 Lines: 36 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: 24.84.53.212 Message-ID: <3f10efcc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058074572 24.84.53.212 (12 Jul 2003 22:36:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail