I would like to share a small amount of data between All Users in the Windows Registry. For shared read and write access between any user that logs into the machine or a service on the machine. Is there a location where this can be done? I have tried using "HKEY_USERS\.DEFAULT\Software\" but this seems to be blocked by the Vista UAC rules.
The registry files are stored in the %WINDIR% directory under the names USER. DAT and SYSTEM.
The HKEY_LOCAL_MACHINE\Software\Classes key contains default settings that can apply to all users on the local computer. The HKEY_CURRENT_USER\Software\Classes key contains settings that override the default settings and apply only to the interactive user.
Because this information is stored in the Registry on your hard drive, Windows has this information available each time it boots up. The registry, though, is not only for operating system settings. User preferences and application settings are stored in the Registry as well.
The registry is a hierarchical key-value storage system, that keeps its elements in a tree-like structure, much like a file system. The values have data types so not only strings but integers and binary data can be stored as well. The “folders” in the registry are called keys.
You can put all users data in HKEY_LOCAL_MACHINE
hive, but you'll need to adjust the permissions on the key to in order to make it writable by all users, as your question states.
HKEY_LOCAL_MACHINE
should be the place to store data between users. There's a good, short explanation here about which folders/hives are used for what.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With