Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : how to get location of Application Data directory for current user?

www.cryer.info
Managed Newsgroup Archive

how to get location of Application Data directory for current user?

Subject:how to get location of Application Data directory for current user?
Posted by:noma..@sorry
Date:Wed, 30 May 2007 15:40:05 GMT

Hi!

I need to know location of Application Data directory for current user
because MS Excel stores addins into Application
Data\Microsoft\AddIns\.

So far I was going via:

ExtractFilePath(SpecialFolder(CSIDL_PERSONAL)) + 'Application
Data\Microsoft\AddIns\'

(SpecialFolder is little helper function around
SHGetSpecialFolderLocation)

But on one client, My Documents folder is located on D:\My Documents
so I am getting D:\Application Data\Microsoft\AddIns\ instead of
c:\Documents and settings\user\...

Please help me how can I get to this Application Data directory. None
of CSIDL seems to cover this, or am I wrong?

thanks,
tomi.

Replies:

www.cryer.info
Managed Newsgroup Archive