Reads all the key names from a specified section of an INI file into a string list.
Delphi syntax:
procedure ReadSection (const Section: String; Strings: TStrings); override;
uses IniFiles;
procedure TForm1.FormActivate(Sender: TObject);
var
AppIni: TIniFile;
begin
AppIni := TIniFile.Create('win.ini');
AppIni.ReadSections(ListBox1.Items);
AppIni.ReadSection('Ports',Listbox2.Items);
AppIni.ReadSectionValues('Ports',ListBox3.Items);
AppIni.Free;
end;