Terminating a program
[email protected] Fri, 29 Jul 2005 21:47:43 +0300
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
I have divided my system to a launcher program and the actual (full
screen) graphics application.
In some cases the laucher needs to terminate the graphics application.
I have been trying
SendMessageTimeout(hwnd,WM_CLOSE,0,0,
SMTO_NORMAL,
10000,
&res);
and
PostMessage(hwnd, WM_CLOSE, 0, 0) ;
but neither of these is fully reliable. In some cases
I get the Windows "End Program" dialogue on screen asking
the user if the program should really be terminated.
That is not ok for me.
Actually I don't really care if the program gets its chance of
getting cleanly shut down, but it is very much necessary that the
OpenGL (Nvidia) and sound drivers (Creative) are not left in a
corrupt state. And Windows (XP) itself must be able to get
all resources back etc.
Any ideas how to do this?
Eero
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555