welll when hecking, you'd just search through the memory of the game to find all the locations that hold a certain value, like your hp. then you'd like get hurt to change your hp, then search through those results you just got to see which ones changed to the current hp etc until you're left with one value you can edit and there you go, you can change you hp.
so i think you'd need a way to stop that sort of thing, like not keeping key variables like hp etc so simple like that but as like 5.784 times higher then they should be and then like divide that by 3.2354 to get the correct value or something maybe as well as maybe some other variables that are used to make sure those key variables havent been changed when they shouldnt of been.
as just trying to detect hecking program names and then close them still seems like it would be easy to get around
i'm not sure if what i'm going on about is 100% correct and a good way to stop hackers, but i just thought i'd say that and also say, read about good, working ways to prevent hackers on the net if you havent yet
just trying to help