Hi @StewartBW ,
- For the first sample, the document point out that "Note that this example can often return no results, since there might be no performance data."
- The
RegistryKey.OpenBaseKey(RegistryHive hive, RegistryView view)
method in the .NET Framework is not limited to theRegistryHive.LocalMachine
hive. This method can be used to open any of the root registry keys defined in theRegistryHive
enumeration, such asClassesRoot
,CurrentUser
,LocalMachine
,Users
, andCurrentConfig
.
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.