mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-05 18:51:53 +00:00
Support multiple instances
This commit is contained in:
@ -6,6 +6,9 @@
|
||||
|
||||
#include "resource.hpp"
|
||||
|
||||
extern "C" __declspec(dllimport)
|
||||
int hyperhook_initialize();
|
||||
|
||||
extern "C" __declspec(dllimport)
|
||||
int hyperhook_write(unsigned int process_id, unsigned long long address, const void* data,
|
||||
unsigned long long size);
|
||||
@ -99,6 +102,11 @@ void try_patch_t6()
|
||||
|
||||
int safe_main(const int /*argc*/, char* /*argv*/[])
|
||||
{
|
||||
if (hyperhook_initialize() == 0)
|
||||
{
|
||||
throw std::runtime_error("Failed to initialize HyperHook");
|
||||
}
|
||||
|
||||
while (true)
|
||||
{
|
||||
try_patch_iw5();
|
||||
|
Reference in New Issue
Block a user