diff options
author | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-27 22:09:57 +0100 |
---|---|---|
committer | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-27 22:09:57 +0100 |
commit | 78ddf8f82467c64d8653cea199e1f435afe41b76 (patch) | |
tree | 39d6eb7d140d19efa572e63fdd1006f047a2e3ad /Patcher.h | |
parent | e95f90c028b40f39a41f18533f7cc921f4f37dd3 (diff) |
Added: Custom Loading Screen
Fixed: Minimaphook now works in release/debug
Diffstat (limited to 'Patcher.h')
-rw-r--r-- | Patcher.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Patcher.h b/Patcher.h new file mode 100644 index 0000000..706c9ba --- /dev/null +++ b/Patcher.h @@ -0,0 +1,20 @@ +#pragma once + +#include <Windows.h> +#include <cstdint> + +class Patcher +{ +public: + + void PatchBytes(BYTE* address, BYTE* shellcode, const int shellCodeSize, bool modifyPageProtection = true, DWORD newPageProtection = PAGE_EXECUTE_READWRITE, bool restorePageProtection = true); + + void NOPBytes(BYTE* address, const int amount, bool modifyPageProtection = true, DWORD newPageProtection = PAGE_EXECUTE_READWRITE, bool restorePageProtection = true); + + + //TODO: template? + void Patch(BYTE* address, int8_t value); + void Patch(BYTE* address, int16_t value); + void Patch(BYTE* address, int32_t value); + void Patch(BYTE* address, int64_t value); +}; |