Solved

SHGetSpecialFolderLocation ?

Posted on 1998-09-01
3
332 Views
Last Modified: 2008-03-03
How to use this api with delphi?
0
Comment
Question by:seb24
3 Comments
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1338351
hi, seb24 -

look at question "Program Group",
http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10076715

i posted an appropriate comment a few moments ago.

regards,

Black Death.
0
 
LVL 1

Expert Comment

by:Edo082297
ID: 1338352
Hello Seb24

This API returns different a result depending on the parameters you supply. What exactly do you want to do?

Edo
0
 
LVL 4

Accepted Solution

by:
BoRiS earned 40 total points
ID: 1338353
seb24

var
 idlist: PItemIDList;
 path: array[0..MAX_PATH] of Char;
begin
  SHGetSpecialFolderLocation(0, CSIDL_FONTS, idlist);
   SHGetPathFromIDList(idlist, Path);
    Result := Path;
end;

Check the win32 help file for all the availabel CSIDL stuff...

Later
BoRiS
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question