Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : Vista: Determine Windows directory - SHGetKnownFolderIDList

www.cryer.info
Managed Newsgroup Archive

Vista: Determine Windows directory - SHGetKnownFolderIDList

Subject:Vista: Determine Windows directory - SHGetKnownFolderIDList
Posted by:"Michael Fritz" (spam_athome@yahoo.de)
Date:Tue, 12 Feb 2008 15:33:33

Hi,

I would like to retrieve the Windows directory using the newly introduced
Vista API: SHGetKnownFolderIDList
While this works perfectly for some other Known Folders it fails for e.g.
the Known Folder constant: FOLDERID_Windows.

When running my sample application as admin, I get the path to the Windows
directory e.g.: D:\Windows

Now, I would like to add a button to my application similar to some of
those Vista buttons with that shield on it, to get higher access to the
system. Usually this buttons shows a dialog which asks for higher access.

How can I do this in a Delphi application?
--
cu,
Michael

Replies:

www.cryer.info
Managed Newsgroup Archive