chore: remove unused Arch::isWOW64 method

This commit is contained in:
sithlord48
2025-03-12 22:37:17 -04:00
committed by Nick Bolton
parent 3b811a1bd0
commit b73aceee7d
2 changed files with 0 additions and 20 deletions

View File

@ -71,21 +71,3 @@ void ArchSystemWindows::clearSettings() const
{
ArchMiscWindows::deleteKeyTree(HKEY_LOCAL_MACHINE, kWindowsRegistryKey);
}
bool ArchSystemWindows::isWOW64() const
{
#if WINVER >= _WIN32_WINNT_WINXP
typedef BOOL(WINAPI * LPFN_ISWOW64PROCESS)(HANDLE, PBOOL);
HMODULE hModule = GetModuleHandle(TEXT("kernel32"));
if (!hModule)
return FALSE;
LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(hModule, "IsWow64Process");
BOOL bIsWow64 = FALSE;
if (NULL != fnIsWow64Process && fnIsWow64Process(GetCurrentProcess(), &bIsWow64) && bIsWow64) {
return true;
}
#endif
return false;
}

View File

@ -23,6 +23,4 @@ public:
virtual std::string setting(const std::string &valueName) const;
virtual void setting(const std::string &valueName, const std::string &valueString) const;
virtual void clearSettings() const;
bool isWOW64() const;
};