Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   How to Kill AnyOther Programs with Delphi? (http://www.delphipages.com/forum/showthread.php?t=17992)

gpdsoft 01-02-2001 03:50 PM

How to Kill AnyOther Programs with Delphi?
 
How can I do to put off anyother program with Delphi? Please Help me!

douglas 01-02-2001 04:04 PM

RE: How to Kill AnyOther Programs with Delphi?
 
Find the handle of the window using FindWindow or EnumWindows and use
PostMessage(ProgramHandle, WM_CLOSE, 0, 0);

I have not tried it, but it should work fine.


All times are GMT. The time now is 08:08 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.