1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-08-31 05:57:27 +00:00

More experiments

This commit is contained in:
momo5502
2022-04-14 21:19:06 +02:00
parent e2f73e0aeb
commit 00e31a84f5
4 changed files with 14 additions and 15 deletions

View File

@@ -44,24 +44,21 @@ namespace
debug_log("Pid: %d | Address: %p\n", request->process_id, request->target_address);
auto current_proc = process::get_current_process();
if (current_proc)
{
debug_log("Current: %p\n", current_proc.get_id());
}
//debug_log("Current: %lld\n",PsGetCurrentProcessId());
/*const auto process_handle = process::find_process_by_id(request->process_id);
if(process_handle && process_handle.is_alive())
const auto process_handle = process::find_process_by_id(request->process_id);
if (!process_handle || !process_handle.is_alive())
{
debug_log("Bad process\n");
return;
}
process::scoped_process_attacher attacher{process_handle};
const auto name = process_handle.get_image_filename();
if (name)
{
debug_log("Attaching to %s\n", name);
}
debug_log("Original: %s\n", request->target_address);*/
//process::scoped_process_attacher attacher{process_handle};
//debug_log("Original: %s\n", request->target_address);
}
_Function_class_(DRIVER_DISPATCH) NTSTATUS io_ctl_handler(