How do I force closing of other apps from within my app
-
I want the ability to close other applications running, but I want to 'force' a close, meaning that I dont want any dialog boxes prompting me with stuff like "app is not responding" or "do you want to save changed document". Is there a way to close other apps without having these popup dialog boxes appear. Similiar to task manager but with no pop-up dialog boxes. Most appreciated, SAK
-
I want the ability to close other applications running, but I want to 'force' a close, meaning that I dont want any dialog boxes prompting me with stuff like "app is not responding" or "do you want to save changed document". Is there a way to close other apps without having these popup dialog boxes appear. Similiar to task manager but with no pop-up dialog boxes. Most appreciated, SAK
See TerminateProcess(). The calling process will need to have appropriate rights to kill processes. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
See TerminateProcess(). The calling process will need to have appropriate rights to kill processes. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
TerminateProcess may be a bit severe, particularly if it is not a child of your app's process. First, I would try sending a WM_CLOSE message to the app's main window. Only when you can't close the app by any other means would I invoke TerminateProcess. Bill Stott, Contractor