Property Name
RootKey
Property Type
String
Description
Gets the root key under which a key exists. This can be one of the
two hive names, HKEY_LOCAL_MACHINE or HKEY_USERS.
This property is read-only.
Example
Dim RegistryKey As IRegistryKey
Set RegistryKey =
GetObject("NTDS://DomainName/MachineName/reg_services/HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual
Basic\5.0")
Debug.Print RegistryKey.RootKey
See Also: