Hi all,
I am writting a program for a game club. When a client's time is over, the program must terminate a programs and to disable game icons. In my source i use TerminateProcess function. The problem is that sometime a programs using DirectX mode don't stop normally, i mean the screen show the moitionless picture of game.

Thanks in advance
Posted on 2003-11-04 16:00:43 by martidim
Hi, martidim
Using TerminateProcess is a bad idea, you are supposed to kill apps like that if there is no other choice. Try closing the main window, sending WM_QUIT to it's threads, and if all fails then TerminateProcess. That way your program would trty to close apps gracefully first.
Cheers. :)
Posted on 2003-11-04 16:12:40 by QvasiModo
Yes you are right QvasiModo.
Thank you
Posted on 2003-11-04 16:37:35 by martidim