rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
784 stars 91 forks source link

Abstract common Windows API into separate functions #69

Open rdbo opened 1 year ago

rdbo commented 1 year ago

Certain things done with the Windows API, like module enumeration, is duplicated across different functions. This could be abstracted for example, into a private API _LM_EnumWinModules or something, which would be reused across these functions.

rdbo commented 1 year ago

Things like copying the data of a MEMORY_BASIC_INFORMATION structure into a lm_page_t should also be abstracted.