1 #pragma once
2 
3 #include <wininet.h>
4 
5 struct SETTINGS_INFO
6 {
7     BOOL bSaveWndPos;
8     BOOL bUpdateAtStart;
9     BOOL bLogEnabled;
10     WCHAR szDownloadDir[MAX_PATH];
11     BOOL bDelInstaller;
12     /* Window Pos */
13     BOOL Maximized;
14     INT Left;
15     INT Top;
16     INT Width;
17     INT Height;
18     /* Proxy settings */
19     INT Proxy;
20     WCHAR szProxyServer[MAX_PATH];
21     WCHAR szNoProxyFor[MAX_PATH];
22     /* Software source settings */
23     BOOL bUseSource;
24     WCHAR szSourceURL[INTERNET_MAX_URL_LENGTH];
25 };
26 
27 typedef SETTINGS_INFO *PSETTINGS_INFO;
28 
29 BOOL LoadSettings(PSETTINGS_INFO pSettingsInfo);
30 BOOL SaveSettings(HWND hwnd, PSETTINGS_INFO pSettingsInfo);
31 VOID FillDefaultSettings(PSETTINGS_INFO pSettingsInfo);
32 
33 extern SETTINGS_INFO SettingsInfo;
34