RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.RootKey Property

Specifies the root key for the TRegistry object in an application.

Pascal
property RootKey: HKEY;
C++
__property HKEY RootKey;

Use RootKey to determine the hierarchy of subkeys an application can access, or to specify the root key for the application. 

By default, RootKey is set to HKEY_CURRENT_USER when the registry object is created. To change the root key, specify a valid integer value for the RootKey property.

Note: For some operations, such as LoadKey or RegistryConnect, an application may need to change the default value of RootKey.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!