O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

I.2. Registry Root Key Hives

In the Registry, a hive is a node that often contains other keys and values. There are several root keys that you can use for functions that require that a root key be supplied for one of the parameters. These keys are defined as follows:

Const HKEY_CLASSES_ROOT As Long = &H80000000
Const HKEY_CURRENT_CONFIG As Long = &H80000005
Const HKEY_CURRENT_USER As Long = &H80000001
Const HKEY_DYN_DATA As Long = &H80000006
Const HKEY_LOCAL_MACHINE As Long = &H80000002
Const HKEY_PERF_ROOT As Long = HKEY_LOCAL_MACHINE
Const HKEY_PERFORMANCE_DATA As Long = &H80000004
Const HKEY_USERS As Long = &H80000003

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required