You can try to decompile Game Guardian, and at the same time try to find and figure out the realization.
I walso decompile it but its very compilcated the source So i think they should be an library or else wich can do this but i dont know what did i habe to search for