No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release. The information in this article applies to:
SUMMARYYou can access registry values for multiple users in your application by loading each user's hive programmatically. Use the RegOpenCurrentUser API function to retrieve a handle to the HKEY_CURRENT_USER key for the user that the current thread is impersonating. MORE INFORMATION
HKEY_CURRENT_USER maps to the root of the current user's hive. The value of HKEY_CURRENT_USER does not change with the security context when another user's hive is loaded. In previous versions of Windows there was no safe way to access registry values for another user. You had to use RegCloseKey() and RegOpenKeyEx to remap HKEY_CURRENT_USER to the desired user's hive. REFERENCESFor additional information about loading another user's hive, please see the following article(s) in the Microsoft Knowledge Base: Q168877 HOWTO: Load a User's Hive Programmatically Q199190 Reference Another User's Hive Through HKEY_CURRENT_USER Also, see the RegOpenCurrentUser topic in the Platform SDK Documentation. Additional query words: compatguidestability
Keywords : kbKernBase kbWinOS2000 kbSDKWin32 kbSecurity kbfaq kbGrpKernBase |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |