Vista and ProgramData

后端 未结 5 1702
名媛妹妹
名媛妹妹 2020-12-06 16:53

What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS W

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 17:12

    You can use:

    CString strPath;
    ::SHGetSpecialFolderPath(NULL, strPath.GetBuffer(1024), CSIDL_COMMON_APPDATA, FALSE);
    

提交回复
热议问题