初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
34
Client/RlktGuard/GuardThread.cpp
Normal file
34
Client/RlktGuard/GuardThread.cpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue