Главная страница | назад





Article #16301: Programmatically closing another application

 Question and Answer Database
FAQ1301D.txt Programmatically closing another application
Category :Windows API
Platform :All
Product :All 32 bit
Question:
How do I programmatically close another application?
Answer:
You can send the application a WM_QUIT message;
Example:
PostMessage(FindWindow(Nil, 'window caption'), WM_QUIT, 0, 0);
Where "window caption" is the caption of the window that you
are sending the message to.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99