RE: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2001-12-20 20:39:07
|
Thanks for the help everyone. Yes, I was writing into HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER. Unfortunately, since the game is already out and it stores config/high scores information there, I need to either write an import facility or just continue to use HKLM when possible. The latter is easier, since 99.999% of our particular users aren't going to have this problem. So now I'm doing: if ( RegCreateKeyEx( HKEY_LOCAL_MACHINE, ... ) != ERROR_SUCCESS ) if ( RegCreateKeyEx( HKEY_CURRENT_USER, ... ) . . . Future versions will, of course, use HKEY_CURRENT_USER. Brian |