1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-04 18:21:55 +00:00

Ept hooking

This commit is contained in:
momo5502
2022-04-14 18:47:17 +02:00
parent b141d43497
commit 2acac5bee2
11 changed files with 425 additions and 260 deletions

View File

@ -6,7 +6,7 @@ namespace process
{
public:
process_handle() = default;
process_handle(PEPROCESS handle);
process_handle(PEPROCESS handle, bool own = true);
~process_handle();
process_handle(process_handle&& obj) noexcept;
@ -20,13 +20,17 @@ namespace process
bool is_alive() const;
const char* get_image_filename() const;
private:
bool own_{true};
PEPROCESS handle_{nullptr};
void release();
};
process_handle find_process_by_id(uint32_t process_id);
process_handle get_current_process();
class scoped_process_attacher
{