LocationMy.Computer.Registry.LocalMachine SyntaxDim result As Microsoft.Win32.RegistryKey = _ My.Computer.Registry.LocalMachine DescriptionThe LocalMachine property returns a Microsoft.Win32.RegistryKey object that refers to the HKEY_LOCAL_MACHINE location in the Windows registry. This entry point is used primarily to store application and system settings that apply to all users on the local computer. It contains five major subkeys: Hardware, SAM, Security, Software, and System. Usage at a Glance
ExampleThe following example displays all of the sub-elements of the HKEY_LOCAL_MACHINE registry key element in a listbox control. The example assumes that you are using this code on a form with a defined ListBox1 control. ListBox1.DataSource = _ My.Computer.Registry.LocalMachine.GetSubKeyNames( ) Related Framework Entries
See AlsoClassesRoot Property, CurrentConfig Property, CurrentUser Property, DynData Property, GetValue Method, PerformanceData Property, Registry Object, SetValue Method, Users Property |