Oh, I missed he was using ShellExecute instead of CreateProcess. Other than that posting WM_QUIT is the same as TerminateProcess.
Regards, SZ On 5/11/07, Horváth Márton <[EMAIL PROTECTED]> wrote: > > >>fine. When I close my app I want to shut down the internet > >>explorer as well. How do I do that? > > You should use CreateProcess instead of ShellExecute. Then you will get > the ProcessInfo.hProcess which is the handle of created process. Just > put the > TerminateProcess(ProcessInfo.hProcess,0) into your Form.OnClose event. > > Regards, M. > > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://www.elists.org/mailman/listinfo/delphi-talk > __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk