How to access another user's registry key in win XP
First, you can't, if roaming profiles are enabled, another user registry on your computer might be incomplete or outdated.
Having said that, you can use HKEY_USERS \ user-sid
Obviously, to access other users' data, you must run as an administrator.
To convert from SID to name, have a look: How can I convert from SID to account name in C #
To translate from name to SID, take a look at this: Unique User Profile ID in Windows
a source to share
Just an opinion, but usually the remote registry service is running is a concern. I made the utility fix registry entries locally and run the application remotely. PSExec is a great free utility from Mark and now MS to run your utility after building and testing it. You can give it a list of the systems that fall, or it will run it on every system in the domain. Your account should have remote execution rights, but this is usually not a problem as an administrator. Just be careful when you write the utility a little more carefully, as you might run it on machines that you don't intend to run.
a source to share