How to get a list of programs from autorun? And what to get it?

    3 answers 3

    procedure TForm1.Button1Click(Sender: TObject); var s:TStrings; r:TRegistry; begin s:=TStringList.Create; try r:=TRegistry.Create; try r.RootKey:=HKEY_LOCAL_MACHINE; r.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run',false); r.GetValueNames(s); Showmessage(s.Text); r.CloseKey; finally r.Free; end; finally s.Free; end; end; 

      To work with the registry there is a class: TRegIniFiles, and there are methods with which you can simply pull out the data you need.

        Autostart in 2 locations, registry and autorun folder. You can get to the list, for example in TstringList