/SimpleMemory

Easy to use memory reading and writing API for C# on windows.

Primary LanguageC#

SimpleMemory

Easy to use memory reading and writing API for C# on windows.

Setup

// Get a process object of the process you want to read memory off
Process process = Process.GetProcessById(1234);

Memory memClass = new Memory(process);

Reading memory

int value = memClass.ReadMemory<int>(new IntPtr(0xDEADBEEF));

Writing memory

memClass.WriteMemory(new IntPtr(0xDEADBEEF), 17);

Notes

If you are writing to a protected area (e.g. code) then you should use the safe methods

memClass.WriteMemorySafe(new IntPtr(0xDEADBEEF), 17);