DragonNest/Client/RlktGuard/GuardThread.cpp
2024-12-20 16:56:44 +08:00

34 lines
1.3 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <windows.h>
#include "GuardThread.h"
#include "LoadedModuleScanner.h"
#include "MemoryScanner.h"
#include "ProcessIDScanner.h"
#include "WindowScanner.h"
#define SECURITY_WIN32
#define SCAN_INTERVAL 2000
void StartThread()
{
do
{
MemoryScanner(); //Memory Scanner with memory footprint
doProcScan(); //Executable name
doWindowScan(); //Window name scan
Sleep(SCAN_INTERVAL);
} while (1);
}
void InitGuard()
{
//Process Scanner Data
LoadProcessNameData();
//Window Scanner Data
LoadWindowNameData();
LoadWindowClassData();
CreateThread(NULL, NULL, LPTHREAD_START_ROUTINE(StartThread), NULL, 0, 0);
}