1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-05 18:51:53 +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

@ -58,14 +58,14 @@ namespace process
return KeWaitForSingleObject(this->handle_, Executive, KernelMode, FALSE, &zero_time) != STATUS_WAIT_0;
}
HANDLE process_handle::get_id() const
uint32_t process_handle::get_id() const
{
if(!this->handle_)
{
return 0;
}
PsGetProcessId(this->handle_);
return uint32_t(uint64_t(PsGetProcessId(this->handle_)));
}
const char* process_handle::get_image_filename() const