Jim Burns wrote:
I agree with the first part Francois but I don't see how SHGetSpecialFolderLocation returns the ProgramFiles Dir. What
CSIDL_XXXX constant is that? CSIDL_PROGRAMS is not it. Maybe there
are some new constants that my help doesn't show.

The CSIDL value for the Program Files directory is Csidl_Program_Files.

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp

You also mention that special folders don't all have the same name, I
agree, but do the Microsoft registry keys still use English when in
other languages?  I'm using the following,

The registry is not the place to fetch that information.

http://blogs.msdn.com/oldnewthing/archive/2003/11/3.aspx

Would the name of the key "ProgramFilesDir" change with a change in language?

Maybe. Where is that registry key documented? The key's existance might change with a change in the Windows version.

--
Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to