How To Get Started (C#) - erfg12/memory.dll GitHub Wiki
Add Memory.dll
-
Compile Memory.dll and add reference to it.
Project > Add Reference
. -
Add the NuGet package System.Security.Principal.Windows.
-
Make sure your project trainer matches your game's platform. If you need x64, uncheck prefer 32bit when using
Any CPU
.Example: x86 game = x86 trainer, x64 game = x64 trainer.
Building Our Trainer
Open the application's code view and add this to the very top of the code.
using Memory;
Inside your namespace
> class
brackets add the following:
public Mem MemLib = new Mem();
Now open the process for read/write using the following code in whichever function you want.
Use Task Manager
> Details (tab)
to find the specific GAME_NAME. Example: World of Warcraft is WoW.
MemLib.OpenProcess("GAME_NAME");
Now you can read or write to a specific memory pointer/offset using the external memory library.