RE: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Andrew G. <And...@ho...> - 2001-12-21 15:33:51
|
There's another important thing in this area to remember as well. Depending on their permissions users might not have write permissions to the directory the game is stored in. It's now recommended that you ensure persistantdata is stored in folders that users have guaranteed access to, and use SHGetFolderPath to retrieve this path with the correct identifier. In the case of application data it would be CSIDL_COMMON_APPDATA, or for user specific settings you would use CSIDL_APPDATA. This is going to become a real issue now that XP is around and allows people to restrict access like this. We've already had one bug report from a previous project because our game relied on write access to it's install folder, and little Johhny's dad had locked him off from modifying the Program Files subtree. There was an excellent presentation from Mike Burrows at Meltdown this year about how to write well behaved Windows apps taking these and other aspects into account. It's now online and well worth a read. <http://www.microsoft.com/mscorp/corpevents/meltdown2001/ppt/GamingWinXP.ppt > Andrew Grant Hothouse Creations > -----Original Message----- > From: Brian Hook [mailto:bri...@py...] > Sent: 20 December 2001 20:40 > To: gam...@li... > Subject: RE: [GD-Windows] Security/access when writing to registry > . > > Future versions will, of course, use HKEY_CURRENT_USER. > > Brian > > > This email is covered by the following disclaimer, please read before accepting this email. http://www.hothouse.org/disclaimer/ |