Article View: borland.public.cppbuilder.nativeapi
Article #5916Re: SHGetFolderPath() v. SHGetSpecialFolderLocation()
From: Remy Lebeau (TeamB)
Date: Fri, 24 Jun 2005 17:25
Date: Fri, 24 Jun 2005 17:25
22 lines
1710 bytes
1710 bytes
"Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote in message news:42bbf20c$1@newsgroups.borland.com... > SHGetSpecialFolderLocation() returns the error 'A parameter > is incorrect' when asked about CSIDL_MYDOCUMENTS. CSIDL_MYDOCUMENTS was introduced in XP (specially, shell32.dll v6.0). Win2K doesn't recognize it, hense the error. > SHGetFolderPath() is apparently the newer function to call > from Win2K onward but when I try the linker can't find it. Try adding SHFolder.lib to the project. > Curiously ShGetSpecialFolderLocation() can correctly return > the path for CSIDL_COMMON_DOCUMENTS. CSIDL_COMMAND_DOCUMENTS has been available since Win95. Gambit
Technical Details
Message-ID:
<42bc421c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42bbf20c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb66d9f48de143d0 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42bbf20c$1@newsgroups.borland.com> Subject: Re: SHGetFolderPath() v. SHGetSpecialFolderLocation() Date: Fri, 24 Jun 2005 10:25:49 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42bc421c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119633948 68.69.17.41 (24 Jun 2005 10:25:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail