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