1 #pragma once 2 #include <windef.h> 3 #include <wininet.h> 4 5 //TODO: Separate main and settings related definitions 6 struct SETTINGS_INFO 7 { 8 BOOL bSaveWndPos; 9 BOOL bUpdateAtStart; 10 BOOL bLogEnabled; 11 WCHAR szDownloadDir[MAX_PATH]; 12 BOOL bDelInstaller; 13 /* Window Pos */ 14 BOOL Maximized; 15 INT Left; 16 INT Top; 17 INT Width; 18 INT Height; 19 /* Proxy settings */ 20 INT Proxy; 21 WCHAR szProxyServer[MAX_PATH]; 22 WCHAR szNoProxyFor[MAX_PATH]; 23 /* Software source settings */ 24 BOOL bUseSource; 25 WCHAR szSourceURL[INTERNET_MAX_URL_LENGTH]; 26 }; 27 28 typedef SETTINGS_INFO *PSETTINGS_INFO; 29 30 extern HWND hMainWnd; 31 extern HINSTANCE hInst; 32 extern SETTINGS_INFO SettingsInfo; 33 34 VOID SaveSettings(HWND hwnd); 35 VOID FillDefaultSettings(PSETTINGS_INFO pSettingsInfo); 36 37 // integrity.cpp 38 BOOL VerifyInteg(LPCWSTR lpSHA1Hash, LPCWSTR lpFileName); 39