69 lines
1.1 KiB
C++
69 lines
1.1 KiB
C++
#include "active_check.h"
|
|
#include "utils.h"
|
|
|
|
namespace active_check
|
|
{
|
|
auto check_awesun_process() -> bool
|
|
{
|
|
auto dwPid = utils::GetProcessByName(L"AweSun.exe");
|
|
|
|
auto hwnd = FindWindow(L"FLUTTERVIEW", NULL);
|
|
|
|
if (dwPid || hwnd)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
auto check_todesk_process() -> bool
|
|
{
|
|
auto dwPid = utils::GetProcessByName(L"ToDesk.exe");
|
|
|
|
auto hwnd = FindWindow(NULL, L"ToDesk");
|
|
|
|
if (dwPid || hwnd)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
auto check_asklink_process() -> bool
|
|
{
|
|
auto dwPid = utils::GetProcessByName(L"AskLink.exe");
|
|
|
|
auto hwnd = FindWindow(NULL, L"AskLink");
|
|
|
|
if (dwPid || hwnd)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
auto check_uu_remote_process() -> bool
|
|
{
|
|
auto dwPid = utils::GetProcessByName(L"GameViewer.exe");
|
|
|
|
auto hwnd = FindWindow(NULL, L"ÍøÒ×UUÔ¶³Ì");
|
|
|
|
if (dwPid || hwnd)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
auto check_remote_app_process() -> bool
|
|
{
|
|
if (check_awesun_process() ||
|
|
check_todesk_process() ||
|
|
check_asklink_process() ||
|
|
check_uu_remote_process())
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|
|
return false;
|
|
}
|
|
|
|
}
|