主修改整合基本完成

This commit is contained in:
2022-03-08 12:57:35 +08:00
parent 0b2e30605a
commit 5ffa76fdef
14 changed files with 864 additions and 1301 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
constexpr int Byte_Length = 5;
constexpr int Byte_Length = 6;
class inlinehook
{
@@ -30,8 +30,9 @@ public:
int offset = self_address - (original_address + Byte_Length);
//构造跳转到我们的函数BYTE
memcpy(&m_self_byte[1], &offset, Byte_Length - 1);
memcpy(&m_self_byte[1], &offset, Byte_Length - 2);
m_self_byte[5] = '\x90';
//修改内存属性
DWORD attributes = Motify_memory_attributes(original_address);