mirror-ac/user/km/kmanager.cpp

37 lines
1.2 KiB
C++
Raw Normal View History

2023-08-17 10:45:50 +02:00
#include "kmanager.h"
2023-08-22 19:32:25 +02:00
kernelmode::KManager::KManager( LPCWSTR DriverName, std::shared_ptr<global::ThreadPool> ThreadPool, std::shared_ptr<global::Client> ReportInterface)
2023-08-17 10:45:50 +02:00
{
2023-08-18 07:33:13 +02:00
this->driver_interface = std::make_unique<Driver>(DriverName, ReportInterface);
2023-08-17 10:45:50 +02:00
this->thread_pool = ThreadPool;
}
2023-08-19 04:52:57 +02:00
void kernelmode::KManager::RunNmiCallbacks()
{
2023-08-19 05:29:29 +02:00
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->RunNmiCallbacks(); } );
2023-08-19 04:52:57 +02:00
}
void kernelmode::KManager::VerifySystemModules()
{
2023-08-19 05:29:29 +02:00
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->VerifySystemModules(); } );
2023-08-19 04:52:57 +02:00
}
2023-08-20 16:12:04 +02:00
void kernelmode::KManager::MonitorCallbackReports()
{
2023-08-21 06:45:33 +02:00
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->RunCallbackReportQueue(); } );
2023-08-20 16:12:04 +02:00
}
2023-08-21 17:48:34 +02:00
void kernelmode::KManager::DetectSystemVirtualization()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->DetectSystemVirtualization(); } );
}
2023-08-23 14:14:20 +02:00
void kernelmode::KManager::EnumerateHandleTables()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->CheckHandleTableEntries(); } );
}
void kernelmode::KManager::RequestModuleExecutableRegionsForIntegrityCheck()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->RequestModuleExecutableRegions(); } );
}