Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the RootKey delphi opens query

Status
Not open for further replies.

qados

Programmer
Apr 7, 1999
5
GB
I'm accessing the Windows registry using Delphi 2, and by default Delphi opens the HKEY_CURRENT_USER key. I have looked at the "RootKey" property of the TRegistry component, and this is the place where you can change the "root" key that you start from... The problem is that thsi simply says "you can change the value", I've tried changing it and the compiler reports that TRegistry.RootKey is an integer value. So the problem I have is what integer corresponds to what registry key - and how can I find out! The specific root key I am after is HKEY_USERS.<br>
<br>
Thanks for any help<br>
<br>
Qados.
 
From the WINDOWS.PAS file:<br>
<br>
const<br>
{ Reserved Key Handles. }<br>
<br>
HKEY_CLASSES_ROOT = $80000000;<br>
HKEY_CURRENT_USER = $80000001;<br>
HKEY_LOCAL_MACHINE = $80000002;<br>
HKEY_USERS = $80000003;<br>
HKEY_PERFORMANCE_DATA = $80000004;<br>
HKEY_CURRENT_CONFIG = $80000005;<br>
HKEY_DYN_DATA = $80000006;<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top