🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get current user directory?

#11533
From: Eelke Klein
Date: Tue, 03 Feb 2004 15:05
15 lines
1328 bytes
Zannha wrote:
> What's the API call to get the current users path in the documents and
> settings folder?
> 
> Thanks
> 
> 
Do something like this

char path[MAX_PATH];
SHGetSpecialFolderPath(NULL, path, CSIDL_PERSONAL, false);

Lookup the function on msdn.microsoft.com for more information

Eelke
Technical Details
Message-ID: <401fb8b8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <401f8dc2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fa6efda70ef582ed
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-03 07:10:37 PST
Date: Tue, 03 Feb 2004 16:05:06 +0100
From: Eelke Klein <e.klein@mplussoftware.nl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Get current user directory?
References: <401f8dc2$1@newsgroups.borland.com>
In-Reply-To: <401f8dc2$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <401fb8b8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075820728 81.58.1.162 (3 Feb 2004 07:05:28 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail