Board index » cppbuilder » Is CSIDL_COMMON_APPDATA read-only for some users ?
Kris
CBuilder Developer |
Is CSIDL_COMMON_APPDATA read-only for some users ?2007-07-30 07:04:25 PM cppbuilder54 My application stores data that needs to be accessible for all users on the system. Each users must also be able to update this shared data. For this purpose I'm use the CSIDL_COMMON_APPDATA location (e.g. on XP this is C:\Documents and Settings\All Users\Application Data). This works great for me. However, while googling I found several references where this folder is sometimes read-only. MSDN shows me this: msdn2.microsoft.com/en-us/library/ms995853.aspx "CSIDL_COMMON_APPDATA: This folder should be used for application data that is not user specific. By default, this location is read-only for normal (non-admin, non-power) Users. If an application requires normal Users to have write access to an application specific subdirectory of CSIDL_COMMON_APPDATA, then the application must explicitly modify the security on that sub-directory during application setup." Strangely enough, I tried to reproduce this problem both on XP and Vista by using a non-admin user. But I never encountered a problem writing to this folder (even using Windows Explorer as limited user still allowed full write-access to CSIDL_COMMON_APPDATA). So, I was wondering if someone has any experience with write permission issues in CSIDL_COMMON_APPDATA when dealing with different user accounts? Thanks, Kris |