Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Closing Internet Explorer

Posted on 2003-03-22
2
Medium Priority
?
153 Views
Last Modified: 2010-05-01
Greetings! I need some reliable code that will close any open Internet Explorer windows. I need it to work on Windows 95/98/ME/NT/2000/XP and not produce any error messages. Should be a pretty simple task.

Thanks!
Eric
0
Comment
Question by:ericl1st
2 Comments
 

Accepted Solution

by:
Chimo earned 285 total points
ID: 8188001
Here a link with code and explanation on how to kill an application gently:

Full code:
http://msdn.microsoft.com/librarylibrary/en-us/dnvsm01/html/dd0109list3.asp

Theory behind the code:
http://msdn.microsoft.com/library/en-us/dnvsm01/html/dt0109.asp

That closing process method need a process id (PID).  You have to give the pid of every internet explorer app runing.  It seem that the process is always named iexplorer.exe.

To find each process running, you can use that code (will not work on NT):
http://www.mvps.org/vbnet/index.html?code/system/toolhelpprocesses.htm
0
 

Expert Comment

by:CleanupPing
ID: 8531819
Hi ericl1st,
This old question (QID 20559798) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question