# How to create memory manipulation and how does it works? [closed]

How does memory manipulation works for cheats?, how does one create it, i think it must be something to do with your RAM and changed it to give a different value, but how to create it?

## closed as too broad by Eric, Kromster, Anko, Seth Battin, Nicol BolasDec 11 '15 at 15:28

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• I suggest reading stuff about Cheat Engine. It has even a tutorial describing how simple memory edits can be done especially with multi-level pointers. I am using it for example to reverse engineer structs from the memory. Just keep in mind you can't make your game 100% secure against attacks - there will always be a way to hack the game if someone is eager to do so. Just depends how difficult it is and if it is reasonable to put time and effort into anti-cheating mechanics. – Christian Ivicevic Dec 6 '15 at 14:36

In windows if you can get a HINSTANCE to the game process with access right of PROCESS_VM_WRITE or PROCESS_VM_OPERATION then you can use WriteProcessMemory to write arbitrary values into arbitrary locations of the game's virtual memory.