Henk Kouwen mentioned this to Gary Weinfurther:
HK> Sorry, i was not clear enough:
HK> The program i want to shut down is an external program, NOT a Delphi
HK> programm! (i wish it was..)
The well-behaved way is to send a WM_QUIT message to the application with the
PostAppMessage API function. If you don't know the application's main window
handle, there are several ways to find it. One is with the FindWindow API
function.
...Gary
--- GoldED 2.41
---------------
* Origin: Nobody expects the Flying Circus BBS! (1:2410/905)
|