Win32 function to get path to C:\\ProgramData

我的梦境 提交于 2019-12-03 05:25:45

SHGetFolderPath/SHGetSpecialFolderPath get you that, with CSIDL_COMMON_APPDATA argument.

See code snippet here (at the bottom): How to write a Windows XP Application that stores user and application data in the correct location by using Visual C++ .

  • Windows XP: C:\Documents and Settings\All Users\Application Data
  • Windows Vista: C:\ProgramData
  • Windows 7: C:\ProgramData

See also: CSIDL.

Since Delphi XE5, this functionality is part of the framework.

  • Unit: System.IOUtils
  • Class: TPath
  • Function: GetPublicPath

See embarcadero docwiki for further informations.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!