2017-08-02 12:50:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <atlstr.h>
|
|
|
|
|
2017-08-15 19:36:23 +00:00
|
|
|
INT GetWindowWidth(HWND hwnd);
|
|
|
|
INT GetWindowHeight(HWND hwnd);
|
|
|
|
INT GetClientWindowWidth(HWND hwnd);
|
|
|
|
INT GetClientWindowHeight(HWND hwnd);
|
2017-08-02 12:50:53 +00:00
|
|
|
|
|
|
|
VOID CopyTextToClipboard(LPCWSTR lpszText);
|
2017-08-15 22:35:45 +00:00
|
|
|
VOID SetWelcomeText();
|
2017-08-02 12:50:53 +00:00
|
|
|
VOID ShowPopupMenu(HWND hwnd, UINT MenuID, UINT DefaultItem);
|
|
|
|
BOOL StartProcess(ATL::CStringW &Path, BOOL Wait);
|
|
|
|
BOOL StartProcess(LPWSTR lpPath, BOOL Wait);
|
|
|
|
BOOL GetStorageDirectory(ATL::CStringW &lpDirectory);
|
2018-02-25 13:20:00 +00:00
|
|
|
|
2017-08-15 22:35:45 +00:00
|
|
|
VOID InitLogs();
|
|
|
|
VOID FreeLogs();
|
2017-08-02 12:50:53 +00:00
|
|
|
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg);
|
|
|
|
BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName);
|
2017-08-15 19:36:23 +00:00
|
|
|
|
2018-02-25 13:20:00 +00:00
|
|
|
BOOL ExtractFilesFromCab(const ATL::CStringW& szCabName,
|
|
|
|
const ATL::CStringW& szCabDir,
|
|
|
|
const ATL::CStringW& szOutputDir);
|
|
|
|
|
2017-08-15 19:36:23 +00:00
|
|
|
class CConfigParser
|
|
|
|
{
|
|
|
|
// Locale names cache
|
|
|
|
const static INT m_cchLocaleSize = 5;
|
|
|
|
|
2017-09-09 19:43:39 +00:00
|
|
|
ATL::CStringW m_szLocaleID;
|
|
|
|
ATL::CStringW m_szCachedINISectionLocale;
|
|
|
|
ATL::CStringW m_szCachedINISectionLocaleNeutral;
|
2017-08-15 19:36:23 +00:00
|
|
|
|
|
|
|
const ATL::CStringW szConfigPath;
|
|
|
|
|
2017-09-09 19:43:39 +00:00
|
|
|
ATL::CStringW GetINIFullPath(const ATL::CStringW& FileName);
|
|
|
|
VOID CacheINILocale();
|
2017-08-15 19:36:23 +00:00
|
|
|
|
|
|
|
public:
|
2017-08-26 22:43:05 +00:00
|
|
|
CConfigParser(const ATL::CStringW& FileName = "");
|
2017-08-15 19:36:23 +00:00
|
|
|
|
2018-04-07 16:17:22 +00:00
|
|
|
BOOL GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString);
|
|
|
|
BOOL GetInt(const ATL::CStringW& KeyName, INT& iResult);
|
2017-08-15 22:35:45 +00:00
|
|
|
};
|