init
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user