.net获取注册表下的所有项, 通过 Registry.CurrentUser 来读取
private void fMain_Load(object sender, EventArgs e)
{
RegistryKey rk = Registry.CurrentUser;
RegistryKey sys = rk.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer");
foreach (string str in sys.GetValueNames())
{
this.zlist.Items.Add(str);
}
}
效果如下: