You can try .dll. Let me copypaste another forum:
if you use Read and Write process memory you dont have to use findwindow(blah,blah);
Im making a trainer for a game, the process of this game hides when begin the game, i can get his PId but i cant get his phandle(processhandle).
im using this code
phandle = OpenProcess(PROCESS_ALL_ACCESS......
I get the phandle till the process game hide, please if some body knows how can i do it, please help me, after the process hide , the phandle is every 0.
You can try .dll. Let me copypaste another forum:
if you use Read and Write process memory you dont have to use findwindow(blah,blah);