ReactOS  0.4.14-dev-57-g333b8f1
misc.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <windef.h>
4 #include <atlstr.h>
5 
10 
13 VOID ShowPopupMenu(HWND hwnd, UINT MenuID, UINT DefaultItem);
17 
18 VOID InitLogs();
19 VOID FreeLogs();
20 BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg);
21 BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName);
22 
23 BOOL ExtractFilesFromCab(const ATL::CStringW& szCabName,
24  const ATL::CStringW& szCabDir,
25  const ATL::CStringW& szOutputDir);
26 
28 {
29  // Locale names cache
30  const static INT m_cchLocaleSize = 5;
31 
35 
37 
40 
41 public:
43 
44  BOOL GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString);
45  BOOL GetInt(const ATL::CStringW& KeyName, INT& iResult);
46 };
VOID ShowPopupMenu(HWND hwnd, UINT MenuID, UINT DefaultItem)
Definition: misc.cpp:74
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING KeyName
Definition: ndis.h:4711
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL ExtractFilesFromCab(const ATL::CStringW &szCabName, const ATL::CStringW &szCabDir, const ATL::CStringW &szOutputDir)
Definition: cabinet.cpp:257
ATL::CStringW GetINIFullPath(const ATL::CStringW &FileName)
Definition: misc.cpp:317
ATL::CStringW m_szLocaleID
Definition: misc.h:32
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName)
Definition: misc.cpp:301
static const INT m_cchLocaleSize
Definition: misc.h:30
ATL::CStringW m_szCachedINISectionLocaleNeutral
Definition: misc.h:34
BOOL GetInt(const ATL::CStringW &KeyName, INT &iResult)
Definition: misc.cpp:380
VOID FreeLogs()
Definition: misc.cpp:232
int32_t INT
Definition: typedefs.h:56
BOOL StartProcess(ATL::CStringW &Path, BOOL Wait)
Definition: misc.cpp:113
ATL::CStringW m_szCachedINISectionLocale
Definition: misc.h:33
VOID InitLogs()
Definition: misc.cpp:186
unsigned int BOOL
Definition: ntddk_ex.h:94
const ATL::CStringW szConfigPath
Definition: misc.h:36
VOID CacheINILocale()
Definition: misc.cpp:328
_In_opt_ LPCSTR lpDirectory
Definition: shellapi.h:482
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg)
Definition: misc.cpp:241
INT GetClientWindowWidth(HWND hwnd)
Definition: misc.cpp:32
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL GetStorageDirectory(ATL::CStringW &lpDirectory)
Definition: misc.cpp:172
INT GetWindowHeight(HWND hwnd)
Definition: misc.cpp:24
VOID CopyTextToClipboard(LPCWSTR lpszText)
Definition: misc.cpp:48
PRTL_UNICODE_STRING_BUFFER Path
BOOL GetString(const ATL::CStringW &KeyName, ATL::CStringW &ResultString)
Definition: misc.cpp:342
INT GetWindowWidth(HWND hwnd)
Definition: misc.cpp:16
unsigned int UINT
Definition: ndis.h:50
CConfigParser(const ATL::CStringW &FileName="")
Definition: misc.cpp:312
INT GetClientWindowHeight(HWND hwnd)
Definition: misc.cpp:40
VOID SetWelcomeText()
WCHAR * LPWSTR
Definition: xmlstorage.h:184
IN BOOLEAN Wait
Definition: fatprocs.h:1529