mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-18 21:22:54 +00:00
Log process name
This commit is contained in:
parent
28dd94f2ef
commit
938d929de6
@ -5,6 +5,7 @@
|
||||
#include "exception.hpp"
|
||||
#include "hypervisor.hpp"
|
||||
#include "globals.hpp"
|
||||
#include "process.hpp"
|
||||
#include "process_callback.hpp"
|
||||
|
||||
#define DOS_DEV_NAME L"\\DosDevices\\HyperHook"
|
||||
@ -72,7 +73,11 @@ private:
|
||||
{
|
||||
if (this->hypervisor_.cleanup_process(process_id))
|
||||
{
|
||||
debug_log("Handled termination of %X\n", process_id);
|
||||
const auto proc = process::find_process_by_id(process_id);
|
||||
if(proc)
|
||||
{
|
||||
debug_log("Handled termination of %s\n", proc.get_image_filename());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user