Close Application
-
If pressing CTRL+ALT+DEL in Win9x a box appears, which displays all runing applications. You can select an application an click on 'Close Task'. Everybody knows that. The Problem: If I select, for example Windows Explorer, and click on 'close task' the Windows Explorer will be closed at once. If I select my application and click on 'close task' a dialog appears after 30 seconds or so, which tells me 'task is not responding, blah, blah 'end task' 'wait' '. (My application is not crashed!) The Question: Can anybody tell me what messages are send to an application from the 'close task'-box or which messages do I have to handle? Or is there another solution for this problem? thanks for your help!
-
If pressing CTRL+ALT+DEL in Win9x a box appears, which displays all runing applications. You can select an application an click on 'Close Task'. Everybody knows that. The Problem: If I select, for example Windows Explorer, and click on 'close task' the Windows Explorer will be closed at once. If I select my application and click on 'close task' a dialog appears after 30 seconds or so, which tells me 'task is not responding, blah, blah 'end task' 'wait' '. (My application is not crashed!) The Question: Can anybody tell me what messages are send to an application from the 'close task'-box or which messages do I have to handle? Or is there another solution for this problem? thanks for your help!
I would send WM_QUIT message to the main window of a running application if I wanted to close it. WM_CLOSE message might be a good choice as well. These are two messages that could be used to kill an application nicely. If application is still running then it is highly probable that some overkill solution like TerminateProcess() function is used. Regards, Andrei Zenkovitch Dundas Software