Ini := TIniFile.Create(ExtractFilePath(Application.ExeName) + 'My.ini');
try
Left := Ini.ReadInteger('MainWindow', 'Left', 0);
Top := Ini.ReadInteger('MainWindow', 'Top', 0);
Width := Ini.ReadInteger('MainWindow', 'Width', 700);
Height := Ini.ReadInteger('MainWindow', 'Height', 450);
HoverWindowZeigen := Ini.ReadBool('HoverWindow', 'Visible', True);
WS := Ini.ReadInteger('MainWindow', 'WindowState', 0);
case WS of
0: WindowState := wsNormal;
1: WindowState := wsMinimized;
2: WindowState := wsMaximized;
end;
finally
Ini.Free;
end;