View Single Post
Old 01-02-2001, 04:04 PM
douglas douglas is offline
Senior Member
Join Date: Jul 2001
Posts: 7,695
Default 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.
Reply With Quote