Whitehat wrote: > It's been a while since I've done any API programming and > I need help on this. > > My Win-9x app opens a web page using ShellExecute. Works > fine. When I close my app I want to shut down the internet > explorer as well. How do I do that?
In general, you don't. You don't know whether the user is still using the browser for other tasks as well. With Internet Explorer's shell integration, closing the Web browser may affect other parts of the user's system. You also don't know whether it was Internet Explorer that you started. With ShellExecute, all you do is tell the shell to do the default operation for URLs. If you must use Internet Explorer, and you must have control over it, then use the Internet Explorer ActiveX control and embed the browser in your program. You can use TWebBrowser for that. -- Rob __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk