mirror-ac/user/km/kmanager.cpp

18 lines
542 B
C++
Raw Normal View History

2023-08-17 10:45:50 +02:00
#include "kmanager.h"
2023-08-18 07:33:13 +02:00
kernelmode::KManager::KManager( LPCWSTR DriverName, std::shared_ptr<global::ThreadPool> ThreadPool, std::shared_ptr<global::Report> 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()
{
this->thread_pool->QueueJob( [ this ]() {this->RunNmiCallbacks(); } );
}
void kernelmode::KManager::VerifySystemModules()
{
this->thread_pool->QueueJob( [ this ]() {this->VerifySystemModules(); } );
}