File Memory.hpp

Defines

WIN32_LEAN_AND_MEAN

Functions

uintptr_t GetMinecraftBaseAddress()
unsigned long GetMinecraftSize()
uintptr_t SlideAddress(uintptr_t offset)
std::optional<uintptr_t> SigScanSafe(std::string_view signature)
uintptr_t SigScan(std::string_view signature)
size_t FindOffsetOfPointer(void *_base, void *_pointer, size_t maxSearchSize)

Finds the offset of a pointer in a struct/class returns SIZE_MAX if it fails

void UnprotectMemory(uintptr_t address, size_t size, DWORD *oldProtection)

Unprotects the memory region

void ProtectMemory(uintptr_t address, size_t size, DWORD protectionData, DWORD *oldProtection = nullptr)

Reprotects the memory region

uintptr_t AddressFromLeaInstruction(uintptr_t leaInstructionAddress)
uintptr_t GetVtable(void *obj)