mirror-ac/user/km/kmanager.cpp
lhodges1 c0a1bd4f75 eee
2023-08-21 14:45:33 +10:00

22 lines
735 B
C++

#include "kmanager.h"
kernelmode::KManager::KManager( LPCWSTR DriverName, std::shared_ptr<global::ThreadPool> ThreadPool, std::shared_ptr<global::Report> ReportInterface)
{
this->driver_interface = std::make_unique<Driver>(DriverName, ReportInterface);
this->thread_pool = ThreadPool;
}
void kernelmode::KManager::RunNmiCallbacks()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->RunNmiCallbacks(); } );
}
void kernelmode::KManager::VerifySystemModules()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->VerifySystemModules(); } );
}
void kernelmode::KManager::MonitorCallbackReports()
{
this->thread_pool->QueueJob( [ this ]() { this->driver_interface->RunCallbackReportQueue(); } );
}