> The CSIDL value for the Program Files directory is > Csidl_Program_Files.
Found it, thanks. That constant is not in D7... although there appears to be a lot of csidl constants that are not. > > 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. The registry is not the place for a lot of its data either but many folks store and fetch from there just the same. I've read that blog article. It's a good story but the truth of the matter is one method is no more at risk of being changed or superceded than the other when left to Microsoft's discretion. > > 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. In "internationalizing" an application or an OS would you also internationalize internal, private strings and references not meant to be read or accessed by the user? In addition, if the answer would be yes, then you'd have two major internationalization jobs on your hands, one for the front end, for the user, and another for the developer end as you communicated with developers in many languages as well. Thus, it only makes sense that such a value would remain in English. I don't know if it's documented anywhere. And as Francois mentioned he doesn't have this key in his registry but here on WinXP and Win2k, English, I do. In the end I agree that keeping up with the SH functions is probably the best suggestion but you have similar issues to deal with regarding shfolder.dll, shell32.dll and what version of IE you're running. But I can't argue against asking the OS this question directly too many applications, even Microsoft's own, simply do not. Regards, ------------------------------------------------------------------------ Jim Burns, <mailto:[EMAIL PROTECTED]> Technology Dynamics Pearland, Texas USA 281 485-0410 / 281 813-6939 _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

