in my application, I need to save settings that are “global” (that is, not user-defined) in a known and predictable location.
I want the application to be launched from anywhere (as a standard user, NOT an administrator), including several copies from different places and the ability to read and write saved configuration files.
Data should have read and write access, provided to ALL standard users, and not just one.
With this in mind, the four options noted here are inappropriate:
http://msdn.microsoft.com/en-us/library/bb206295(VS.85).aspx#ID0E1BA
So what are my alternatives?
My application is written in C ++ and only for Windows. I need to support Windows XP and above.
Thanks.
EDIT:
To clarify, ignore race conditions caused by multiple instances. This question is related exclusively to WHERE TO BUY DATA. I do not see anywhere suitable:
- Predictable (for example,% APPDATA% \ Foo is a "predictable" path, but unfortunately for the user)
- Global (for example,% PROGRAMDATA% \ Foo is a global path, but, unfortunately, only the creating user has write access)
- Accessible (a standard user should be able to create new files in this directory, this applies to all users in the system)
source
share