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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access