1 #pragma once 2 3 #include <atlstr.h> 4 5 #ifdef _M_IX86 6 #define CurrentArchitecture L"x86" 7 #elif defined(_M_AMD64) 8 #define CurrentArchitecture L"amd64" 9 #elif defined(_M_ARM) 10 #define CurrentArchitecture L"arm" 11 #elif defined(_M_ARM64) 12 #define CurrentArchitecture L"arm64" 13 #elif defined(_M_IA64) 14 #define CurrentArchitecture L"ia64" 15 #elif defined(_M_PPC) 16 #define CurrentArchitecture L"ppc" 17 #endif 18 19 VOID 20 CopyTextToClipboard(LPCWSTR lpszText); 21 VOID 22 ShowPopupMenuEx(HWND hwnd, HWND hwndOwner, UINT MenuID, UINT DefaultItem); 23 BOOL 24 StartProcess(const CStringW &Path, BOOL Wait); 25 BOOL 26 GetStorageDirectory(CStringW &lpDirectory); 27 28 VOID 29 InitLogs(); 30 VOID 31 FreeLogs(); 32 BOOL 33 WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg); 34 BOOL 35 GetInstalledVersion(CStringW *pszVersion, const CStringW &szRegName); 36 37 BOOL 38 ExtractFilesFromCab(const CStringW &szCabName, const CStringW &szCabDir, const CStringW &szOutputDir); 39 40 BOOL 41 IsSystem64Bit(); 42 43 INT 44 GetSystemColorDepth(); 45 46 void 47 UnixTimeToFileTime(DWORD dwUnixTime, LPFILETIME pFileTime); 48 49 BOOL 50 SearchPatternMatch(LPCWSTR szHaystack, LPCWSTR szNeedle); 51 52 template <class T> class CLocalPtr : public CHeapPtr<T, CLocalAllocator> 53 { 54 }; 55