c27007d9b1dc79034022f487379ceb7841a9eb3a
[reactos.git] / reactos / base / applications / rapps / include / misc.h
1 #pragma once
2
3 #include <windef.h>
4 #include <atlstr.h>
5
6 int GetWindowWidth(HWND hwnd);
7 int GetWindowHeight(HWND hwnd);
8 int GetClientWindowWidth(HWND hwnd);
9 int GetClientWindowHeight(HWND hwnd);
10
11 VOID CopyTextToClipboard(LPCWSTR lpszText);
12 VOID SetWelcomeText(VOID);
13 VOID ShowPopupMenu(HWND hwnd, UINT MenuID, UINT DefaultItem);
14 BOOL StartProcess(ATL::CStringW &Path, BOOL Wait);
15 BOOL StartProcess(LPWSTR lpPath, BOOL Wait);
16 BOOL GetStorageDirectory(ATL::CStringW &lpDirectory);
17 BOOL ExtractFilesFromCab(LPCWSTR lpCabName, LPCWSTR lpOutputPath);
18 VOID InitLogs(VOID);
19 VOID FreeLogs(VOID);
20 BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg);
21 BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName);