I'm porting a game to Windows and wonder how, for example, highscore data should be stored so that all users on the same system can share the data. Ideally the data shouldn't be writeable by the users themselfs, only by the application (in this case game) owning the data. Apart from the pure technical details I also wonder about best practise.
On Unix this can be achieved by setting the set-UID bit on the executable and let the executable and the shared file in question belong to the same system-user (games in my case). There is also a best practise to place such files in /var/lib/games.
First, what you can't do:
Now, what you can do:
If #1 is not possible, I'd go for #2.
A good read about this topic: Where Should I Store my Data and Configuration Files if I Target Multiple OS Versions?