Obviously TerminateProcess won't work... :)
I didn't read all the help.
Dave.
-----Original Message-----
From: David O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 September 2000 10:54
To: Multiple recipients of list delphi
Subject: [DUG]: Killing WOWExec
I know this has been covered before, but I can't find it.
I need to kill WOWExec. (Sounds simple)
Sending a WM_Close message doesn't do it, and TerminateProcess doesn't seem
to do it.
Running 2000 Pro.
I am trying:
SendMessage(FindWindow(nil, 'WOWExec'), WM_CLOSE, 0, 0) ;
or
TerminateProcess(FindWindow(nil, 'WOWExec')) ;
Is the Hwnd returned in EnumWindows the correct handle to use here?
Do I need to look at access rights?
The "Window" 'WOWExec' does exist.
any ideas?
Dave.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"