mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
![He Yang](/assets/img/avatar_default.png)
* [RAPPS] move settings-related stuff to a separate file * [RAPPS] refactor reg read/write * [RAPPS] add params for Load/SaveSettings, no longer use global vars
34 lines
763 B
C
34 lines
763 B
C
#pragma once
|
|
#include <windef.h>
|
|
#include <wininet.h>
|
|
|
|
struct SETTINGS_INFO
|
|
{
|
|
BOOL bSaveWndPos;
|
|
BOOL bUpdateAtStart;
|
|
BOOL bLogEnabled;
|
|
WCHAR szDownloadDir[MAX_PATH];
|
|
BOOL bDelInstaller;
|
|
/* Window Pos */
|
|
BOOL Maximized;
|
|
INT Left;
|
|
INT Top;
|
|
INT Width;
|
|
INT Height;
|
|
/* Proxy settings */
|
|
INT Proxy;
|
|
WCHAR szProxyServer[MAX_PATH];
|
|
WCHAR szNoProxyFor[MAX_PATH];
|
|
/* Software source settings */
|
|
BOOL bUseSource;
|
|
WCHAR szSourceURL[INTERNET_MAX_URL_LENGTH];
|
|
};
|
|
|
|
typedef SETTINGS_INFO *PSETTINGS_INFO;
|
|
|
|
BOOL LoadSettings(PSETTINGS_INFO pSettingsInfo);
|
|
BOOL SaveSettings(HWND hwnd, PSETTINGS_INFO pSettingsInfo);
|
|
VOID FillDefaultSettings(PSETTINGS_INFO pSettingsInfo);
|
|
|
|
extern SETTINGS_INFO SettingsInfo;
|