Go to the source code of this file.
◆ PSETTINGS_INFO
◆ FillDefaultSettings()
Definition at line 179 of file settings.cpp.
180{
183
188
190 {
192 if (!szDownloadDir.GetEnvironmentVariableW(
L"SystemDrive"))
193 {
194 szDownloadDir =
L"C:";
195 }
196 }
197 else
198 {
200 }
201
204
208
213 pSettingsInfo->
Width = 680;
214 pSettingsInfo->
Height = 450;
215}
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 218 of file settings.cpp.
219{
222 {
224 }
225
227}
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 230 of file settings.cpp.
231{
234
236 {
239
246 }
247
250 {
252 }
253
255}
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