Registry settings for all users (with user privileges) [modified]
-
Hey, I want to write some status variable to the registry HKLM\Software. This works fine with admin privileges but not with user privileges (and VISTA UAC). Where can I store values for all users in registry or should I use files (e.g. counter for a trial period)? Please help me... -- modified at 12:45 Saturday 21st July, 2007
-
Hey, I want to write some status variable to the registry HKLM\Software. This works fine with admin privileges but not with user privileges (and VISTA UAC). Where can I store values for all users in registry or should I use files (e.g. counter for a trial period)? Please help me... -- modified at 12:45 Saturday 21st July, 2007
You can use the All Users\AppData dir - call
SHGetFolderPath(CSIDL_COMMON_APPDATA)
to get the path.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.
-
Hey, I want to write some status variable to the registry HKLM\Software. This works fine with admin privileges but not with user privileges (and VISTA UAC). Where can I store values for all users in registry or should I use files (e.g. counter for a trial period)? Please help me... -- modified at 12:45 Saturday 21st July, 2007
To add to Michael's answer, here's a link to details on where and how to properly store application configuration data: How to write a Windows XP Application that stores user and application data in the correct location by using Visual C++ 2005 or Visual C++ .NET[^] Mark
Mark Salsbery Microsoft MVP - Visual C++