Small fixes

This commit is contained in:
momo5502 2022-04-17 10:26:26 +02:00
parent 30daca5444
commit 3d4145b6a4
2 changed files with 4 additions and 3 deletions

View File

@ -74,7 +74,6 @@ namespace
debug_log("Level: %d\n", static_cast<int>(KeGetCurrentIrql()));
process::scoped_process_attacher attacher{process_handle};
translation_hints = vmx::ept::generate_translation_hints(r.target_address, r.source_data_size);
});
@ -112,7 +111,6 @@ namespace
debug_log("Hello from the Driver!\n");
break;
case HOOK_DRV_IOCTL:
apply_hook(static_cast<hook_request*>(irp_sp->Parameters.DeviceIoControl.Type3InputBuffer));
break;
default:

View File

@ -1,4 +1,5 @@
#include <iostream>
#include <conio.h>
#include "std_include.hpp"
#include "finally.hpp"
@ -79,7 +80,9 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
(void)driver_device.send(HOOK_DRV_IOCTL, input);
MessageBoxA(0, "Press ok to exit!", 0, 0);
//MessageBoxA(0, "Press ok to exit!", 0, 0);
printf("Press any key to exit!\n");
_getch();
}
int main(const int argc, char* argv[])