Ejemplo n.º 1
0
 public static void RemoveAutostartEntry(AutostartLocation autostartLocation, string name, bool isEnabled)
 {
     if ((int)autostartLocation < 100)
     {
         RegistryAutostart.RemoveAutostartEntry(autostartLocation, name, isEnabled);
     }
     else
     {
         FolderAutostart.RemoveAutostartEntry(autostartLocation, name, isEnabled);
     }
 }
Ejemplo n.º 2
0
        public static List <AutostartProgramInfo> GetAllAutostartPrograms()
        {
            var result = new List <AutostartProgramInfo>();

            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKCU_Run, true));
            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKCU_Run, false));

            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKLM_Run, true));
            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKLM_Run, false));

            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKLM_WOWNODE_Run, true));
            result.AddRange(RegistryAutostart.GetAutostartProgramsFromRegistryKey(AutostartLocation.HKLM_WOWNODE_Run, false));

            result.AddRange(FolderAutostart.GetAutostartProgramsFromFolder(AutostartLocation.ProgramData, true));
            result.AddRange(FolderAutostart.GetAutostartProgramsFromFolder(AutostartLocation.ProgramData, false));

            result.AddRange(FolderAutostart.GetAutostartProgramsFromFolder(AutostartLocation.AppData, true));
            result.AddRange(FolderAutostart.GetAutostartProgramsFromFolder(AutostartLocation.AppData, false));
            return(result);
        }