mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
lolz
This commit is contained in:
parent
222191ffea
commit
32f19e0ec2
1 changed files with 15 additions and 0 deletions
|
@ -6,6 +6,18 @@ kernelmode::Driver::Driver(LPCWSTR DriverName, std::shared_ptr<global::Report> R
|
|||
{
|
||||
this->driver_name = DriverName;
|
||||
this->report_interface = ReportInterface;
|
||||
this->driver_handle = CreateFileW(
|
||||
DriverName,
|
||||
GENERIC_WRITE | GENERIC_READ | GENERIC_EXECUTE,
|
||||
0,
|
||||
0,
|
||||
OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED,
|
||||
0
|
||||
);
|
||||
|
||||
if ( this->driver_handle == INVALID_HANDLE_VALUE )
|
||||
LOG_ERROR( "Failed to open handle to driver with status 0x%x", GetLastError() );
|
||||
}
|
||||
|
||||
void kernelmode::Driver::RunNmiCallbacks()
|
||||
|
@ -64,6 +76,9 @@ void kernelmode::Driver::VerifySystemModules()
|
|||
|
||||
buffer = malloc( buffer_size );
|
||||
|
||||
if ( !buffer )
|
||||
return;
|
||||
|
||||
status = DeviceIoControl(
|
||||
this->driver_handle,
|
||||
IOCTL_VALIDATE_DRIVER_OBJECTS,
|
||||
|
|
Loading…
Reference in a new issue