JCL Help:GetProgramFilesFolder

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the Windows Program Files directory.


Pascal

 function GetProgramFilesFolder: string;


Return Value

The Windows Program Files folder. If the function fails it returns an empty string.


Description

GetProgramFilesFolder returns the Windows Program Files folder as read from the registry. On a default installation of Windows 2000/XP/Vista this is a string such as c:Program Files.


See Also

GetCommonFilesFolder


About

Unit

JclSysInfo


Donator

Carl Clark


Notes

You can use the SHGetFolderPath API function to get many more common directories.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page