RootKey property

RootKey property returns the root key (the leftmost part of the key up to the first slash).  

BSTR RootKey;


Return values
  RootKey property returns one of the following values:
– HKEY_CLASSES_ROOT
– HKEY_CURRENT_CONFIG
– HKEY_CURRENT_USER
– HKEY_LOCAL_MACHINE
– HKEY_USERS


See also
Key property, SubKey property