#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.
168{
171
176
178 {
180 if (!szDownloadDir.GetEnvironmentVariableW(
L"SystemDrive"))
181 {
182 szDownloadDir =
L"C:";
183 }
184 }
185 else
186 {
188 }
189
192
197
202 pSettingsInfo->
Width = 680;
203 pSettingsInfo->
Height = 450;
204}
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)
void ReleaseBuffer(_In_ int nNewLength=-1)
HRESULT WINAPI SHGetFolderPathW(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath)
BOOL WINAPI PathAppendW(LPWSTR lpszPath, LPCWSTR lpszAppend)
WCHAR szDownloadDir[MAX_PATH]
Referenced by anonymous_namespace{settingsdlg.cpp}::SettingsDlgProc(), and wWinMain().
◆ LoadSettings()
Definition at line 206 of file settings.cpp.
207{
210 {
212 }
213
215}
BOOL LoadAllSettings(CRegKey &key, SETTINGS_INFO &settings)
LONG Open(HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired=KEY_READ|KEY_WRITE)
#define HKEY_CURRENT_USER
◆ SaveSettings()
Definition at line 217 of file settings.cpp.
218{
221
223 {
226
234 }
235
238 {
240 }
241
243}
BOOL SaveAllSettings(CRegKey &key, SETTINGS_INFO &settings)
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)
#define REG_OPTION_NON_VOLATILE
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
#define WPF_RESTORETOMAXIMIZED
◆ SettingsInfo