Working with the Registry
My.Computer provides fast access to Windows Registry. It exposes a
Registry property wrapping lots of functionalities of
Microsoft.Win32.Registry class for faster work.
My.Computer.Registry offers some properties, of type
Microsoft.Win32.RegistryKey, representing the most important areas of the Registry, such as HKEY_LOCAL_MACHINE (wrapped by the
LocalMachine property), HKEY_ALL_USER (wrapped by
Users), HKEY_CURRENT_USER (wrapped by
CurrentUser), and HKEY_CLASSES_ROOT (wrapped by
ClassesRoot). All of them provide methods for creating subkeys, querying, deleting, and setting values within subkeys. For example, the following code (which requires an
Imports Microsoft.Win32 directive) creates a subkey in the HKEY_CURRENT_USER\Software ...