Article View: borland.public.cppbuilder.nativeapi
Article #14227Re: SHGetSpecialFolderLocation!
From: Rodolfo Frino
Date: Thu, 21 Aug 2003 15:30
Date: Thu, 21 Aug 2003 15:30
21 lines
1497 bytes
1497 bytes
But it is not :-)
String GetSpecialFolderPath(HWND Handle, int FolderNumber)
{
LPITEMIDLIST pID_List;
String R = "";
if (!SHGetSpecialFolderLocation(Handle, FolderNumber, &pID_List))
{
char SpecialFolderPath[MAX_PATH + 1] = {0};
if (SHGetPathFromIDList(pID_List, SpecialFolderPath))
R = SpecialFolderPath;
CoTaskMemFree(pID_List);
}
return R;
}
Rodolfo
Technical Details
Message-ID:
<3f44e583@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3F425543.9040507@alloymail.com> <3f42a46c@newsgroups.borland.com> <3f44ad7d@newsgroups.borland.com> <3f44e514@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7ce38efab0f8f813 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-21 08:32:29 PST From: "Rodolfo Frino" <rodolfofrino@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3F425543.9040507@alloymail.com> <3f42a46c@newsgroups.borland.com> <3f44ad7d@newsgroups.borland.com> <3f44e514@newsgroups.borland.com> Subject: Re: SHGetSpecialFolderLocation! Date: Fri, 22 Aug 2003 01:30:49 +1000 Lines: 23 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: 203.206.22.183 Message-ID: <3f44e583@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061479811 203.206.22.183 (21 Aug 2003 08:30:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail