Article View: borland.public.cppbuilder.nativeapi
Article #8743Re: SHGetSpecialFolderLocation, Different results on WinXP and Win98
From: Martin Golm
Date: Wed, 22 Sep 2004 08:36
Date: Wed, 22 Sep 2004 08:36
25 lines
1570 bytes
1570 bytes
Jaepil Kim schrieb: > > Hi i have following piece of code. > > When i do: > GetSpecialFolderLocation(Application->Handle, CSIDL_DESKTOP, true) > > On WinXP i get "C:\Documents and settings\Me\Desktop" > but on Win98 i get "Desktop" What do you get if you try CSIDL_DESKTOPDIRECTORY instead? From MSDN: CSIDL_DESKTOP (0x0000) The virtual folder representing the Windows desktop, the root of the namespace. CSIDL_DESKTOPDIRECTORY (0x0010) The file system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). A typical path is C:\Documents and Settings\<username>\Desktop. Martin
Technical Details
Message-ID:
<4151397E.80959B15@gmx.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<414fd5ab$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b6d56e8c83c28a24 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <4151397E.80959B15@gmx.de> Date: Wed, 22 Sep 2004 10:36:14 +0200 From: Martin Golm <golm@gmx.de> X-Mailer: Mozilla 4.78 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: SHGetSpecialFolderLocation, Different results on WinXP and Win98 References: <414fd5ab$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.85.226.154 X-Trace: newsgroups.borland.com 1095842045 217.85.226.154 (22 Sep 2004 01:34:05 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail