private void initialize()
{
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
foreach (string s in key.GetValueNames())
{
currentUserReg.Add(s,Convert.ToString(key.GetValue(s)));
}
key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
foreach (string s in key.GetValueNames())
{
localMachineReg.Add(s, Convert.ToString(key.GetValue(s)));
}
key = Registry.LocalMachine.OpenSubKey("System\\CurrentControlSet\\services");
foreach (string s in key.GetSubKeyNames())
{
RegistryKey temp = key.OpenSubKey(s);
string path = temp.GetValue("ImagePath") as string;
serviceReg.Add(s, path);
}
}