C# - Returning Startup Names
using Microsoft.Win32;
private void ReturnReg()
{
string[] regHKLM = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run").GetValueNames();
foreach (string r in regHKLM)
{
listView1.Items.Add(r);
}
string[] regHKCU = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run").GetValueNames();
foreach (string r in regHKCU)
{
listView1.Items.Add(r);
}
}