RE: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Wayne C. <wc...@re...> - 2003-01-23 15:34:12
|
> Personaly I'm swearing each time some "smart" pc developper put settings, > highscores and save games in some weird location in my computer, because > it means I cannot backup my game saves. Although I don't think the registry is the correct place to store 'shared' information. I also don't think the applications local directory tree is the correct place either. The ability to 'lock down' what an application can do is part of where the OS is going (Windows anyway). Even now, the .net framework allows the user to prevent applications writing anywhere they like. Providing 'isolated storage' (which is basically the app-data directory someone mentioned before). So in the future you're application may not be able to write to its home directory. If it's for a single user and it's small, I suggest the registry. If it's for a single user and it's large, I suggest the app local data directory (as mentioned before, obtained by calling SHGetSpecialFolderPath with CSIDL_APPDATA). If it's shared across users, I suggest the app common data directory (SHGetSpecialFolderPath with CSIDL_COMMON_APPDATA). Personally I quite like the idea, although I'm known to be a little strange (by some) :) Wayney "I'm sure at least 2% of my mails are not inane babble!" - Wayne Coles, 2003 -Virus scanned and cleared ok |