nothings / single_file_libs

List of single-file C/C++ libraries.
8.88k stars 584 forks source link

Adding single .h file for memory address editing #72

Closed Kevin-Duarte closed 7 years ago

Kevin-Duarte commented 7 years ago

The rules state that the .h file must work on all OS, but memory address editing is a VERY OS specific process. Therefore, I was only able to make a .h file for Windows, but if the library gains attention, I will look forward into creating a Linux OS library for memory address editing.

Reason for this library: Memory address editing is very undocumented in many areas such as multi-level pointers and module base addresses. Furthermore, there was no documentation on how to use memory address for 64 bit programs. Therefore, I sought out to create a 32-bit and 64-bit compatible .h file that edits memory addresses.

Specifications: one single .h file 64-bit and 32-bit compatible Works on Windows OS Public domain license library is about 200 lines of code total

nothings commented 7 years ago

Sorry, I know this shows as merged but I actually backed it out after I looked closer at the library. I know this is a bit arbitrary, but it just seemed like what it was doing was too simple (basically just ReadProcessMemory), which in combination with not being cross-platform and being C++-only API just didn't seem right.