#include <windef.h>
#include <wininet.h>
Go to the source code of this file.
◆ PSETTINGS_INFO
◆ FillDefaultSettings()
Definition at line 167 of file settings.cpp.
180 if (!szDownloadDir.GetEnvironmentVariableW(
L"SystemDrive"))
182 szDownloadDir =
L"C:";
202 pSettingsInfo->
Width = 680;
203 pSettingsInfo->
Height = 450;
BOOL WINAPI PathAppendW(LPWSTR lpszPath, LPCWSTR lpszAppend)
WCHAR szDownloadDir[MAX_PATH]
void ReleaseBuffer(_In_ int nNewLength=-1)
static void __cdecl CopyChars(_Out_writes_to_(nDestLen, nChars) XCHAR *pchDest, _In_ size_t nDestLen, _In_reads_opt_(nChars) const XCHAR *pchSrc, _In_ int nChars)
HRESULT WINAPI SHGetFolderPathW(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath)
Referenced by anonymous_namespace{settingsdlg.cpp}::SettingsDlgProc(), and wWinMain().
◆ LoadSettings()
Definition at line 206 of file settings.cpp.
#define HKEY_CURRENT_USER
LONG Open(HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired=KEY_READ|KEY_WRITE)
BOOL LoadAllSettings(CRegKey &key, SETTINGS_INFO &settings)
◆ SaveSettings()
Definition at line 217 of file settings.cpp.
#define HKEY_CURRENT_USER
BOOL SaveAllSettings(CRegKey &key, SETTINGS_INFO &settings)
#define WPF_RESTORETOMAXIMIZED
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
#define REG_OPTION_NON_VOLATILE
LONG Create(HKEY hKeyParent, LPCTSTR lpszKeyName, LPTSTR lpszClass=REG_NONE, DWORD dwOptions=REG_OPTION_NON_VOLATILE, REGSAM samDesired=KEY_READ|KEY_WRITE, LPSECURITY_ATTRIBUTES lpSecAttr=NULL, LPDWORD lpdwDisposition=NULL)
◆ SettingsInfo