If you don't know the processID there is a problem. I found some code on
MSDN the gist of which is:

1. FindWindow
2. if found then GetWindowThreadProcessID
2. IsWindowEnabled
3. if yes then PostMessage(WM_CLOSE...)
4. WaitForSingleObject(hprocess...)

etc.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Dennis Chuah
> Sent: Wednesday, 19 January 2000 09:01
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: FWD: Closing Other Applications

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to