mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
627739aed9
This will allow us to reduce the DB size a little by avoiding duplication for each and every entry. Original patch by JIRA user "swyter" CORE-10310
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <windef.h>
|
|
#include <atlstr.h>
|
|
|
|
INT GetWindowWidth(HWND hwnd);
|
|
INT GetWindowHeight(HWND hwnd);
|
|
INT GetClientWindowWidth(HWND hwnd);
|
|
INT GetClientWindowHeight(HWND hwnd);
|
|
|
|
VOID CopyTextToClipboard(LPCWSTR lpszText);
|
|
VOID SetWelcomeText();
|
|
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);
|
|
|
|
VOID InitLogs();
|
|
VOID FreeLogs();
|
|
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg);
|
|
BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName);
|
|
|
|
BOOL ExtractFilesFromCab(const ATL::CStringW& szCabName,
|
|
const ATL::CStringW& szCabDir,
|
|
const ATL::CStringW& szOutputDir);
|
|
|
|
class CConfigParser
|
|
{
|
|
// Locale names cache
|
|
const static INT m_cchLocaleSize = 5;
|
|
|
|
ATL::CStringW m_szLocaleID;
|
|
ATL::CStringW m_szCachedINISectionLocale;
|
|
ATL::CStringW m_szCachedINISectionLocaleNeutral;
|
|
|
|
const ATL::CStringW szConfigPath;
|
|
|
|
ATL::CStringW GetINIFullPath(const ATL::CStringW& FileName);
|
|
VOID CacheINILocale();
|
|
|
|
public:
|
|
CConfigParser(const ATL::CStringW& FileName = "");
|
|
|
|
BOOL GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString);
|
|
BOOL GetInt(const ATL::CStringW& KeyName, INT& iResult);
|
|
};
|