Coding help

12/06/2005 20:12 nightmarepaladin#1
hello guys,

i took up C++ recently and i am trying to write a auto game killer. Basically it should monitor some statistics in game, once condition met it will shut down the game. Since i am new to C++, the best i can do is just make use of pointers and simple if else functions. I need help on the coding for shutting down a program.

Could any of your give me the c++ source code for shutting down a program.
thank you in advance
12/08/2005 07:18 abitofboth#2
fastest way..

sysinternals pskill.exe

execute that from your code..

OR you could iterate thorugh all open windows untill meet your game, get handle and issue a SendMessage(WM_CLOSE....) / PostMessage ..

Whats the game ?