ReactOS  0.4.12-dev-36-g472787f
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:89
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING KeyName
Definition: ndis.h:4693
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:332
ATL::CStringW m_szLocaleID
Definition: misc.h:32
BOOL GetInstalledVersion(ATL::CStringW *pszVersion, const ATL::CStringW &szRegName)
Definition: misc.cpp:316
static const INT m_cchLocaleSize
Definition: misc.h:30
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
ATL::CStringW m_szCachedINISectionLocaleNeutral
Definition: misc.h:34
BOOL GetInt(const ATL::CStringW &KeyName, INT &iResult)
Definition: misc.cpp:395
VOID FreeLogs()
Definition: misc.cpp:247
int32_t INT
Definition: typedefs.h:56
BOOL StartProcess(ATL::CStringW &Path, BOOL Wait)
Definition: misc.cpp:128
ATL::CStringW m_szCachedINISectionLocale
Definition: misc.h:33
VOID InitLogs()
Definition: misc.cpp:201
const ATL::CStringW szConfigPath
Definition: misc.h:36
VOID CacheINILocale()
Definition: misc.cpp:343
_In_opt_ LPCSTR lpDirectory
Definition: shellapi.h:480
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg)
Definition: misc.cpp:256
INT GetClientWindowWidth(HWND hwnd)
Definition: misc.cpp:33
unsigned int UINT
Definition: ndis.h:50
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL GetStorageDirectory(ATL::CStringW &lpDirectory)
Definition: misc.cpp:187
INT GetWindowHeight(HWND hwnd)
Definition: misc.cpp:25
VOID CopyTextToClipboard(LPCWSTR lpszText)
Definition: misc.cpp:49
PRTL_UNICODE_STRING_BUFFER Path
BOOL GetString(const ATL::CStringW &KeyName, ATL::CStringW &ResultString)
Definition: misc.cpp:357
INT GetWindowWidth(HWND hwnd)
Definition: misc.cpp:17
CConfigParser(const ATL::CStringW &FileName="")
Definition: misc.cpp:327
INT GetClientWindowHeight(HWND hwnd)
Definition: misc.cpp:41
VOID SetWelcomeText()
Definition: misc.cpp:75
WCHAR * LPWSTR
Definition: xmlstorage.h:184
IN BOOLEAN Wait
Definition: fatprocs.h:1529