mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 14:00:53 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
42
base/applications/rapps/include/misc.h
Normal file
42
base/applications/rapps/include/misc.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
#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);
|
||||
BOOL ExtractFilesFromCab(LPCWSTR lpCabName, LPCWSTR lpOutputPath);
|
||||
VOID InitLogs();
|
||||
VOID FreeLogs();
|
||||
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg);
|
||||
BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName);
|
||||
|
||||
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 = "");
|
||||
|
||||
UINT GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString);
|
||||
UINT GetInt(const ATL::CStringW& KeyName);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue