Click here to Skip to main content
15,867,141 members
Articles / Desktop Programming / ATL

How to develop Internet Explorer Object and a problem regarding to MS Windows system failure

Rate me:
Please Sign up or sign in to vote.
3.09/5 (8 votes)
18 Jun 2002CPOL2 min read 103.3K   1.9K   32   12
The article on how to use BHO dealing with Windows/Internet Explorer.

Introduction

The features

This article gives out a sample showing how to develop Browser Helper Objects/Internet Explorer Object and how to deal with IWebBrowser2.

This sample, IEGuard, has the similar functionality of Microsoft Internet Explorer's Options / Content Advisor/Approved Sites. It can real time monitor the Internet Explorer web browse activities, and only those allowed web sites can be visited and other web navigation will be stopped. A tool, IEGuardMan, is given with this sample to set up the job criteria of IEGuard.

IEGuard can easily be updated to the software for MS Internet Explorer Web activities, monitoring and tracking.

The Problem on making Windows/Internet Explorer failure.

In IEGuard, a lockout test is given to test the way to disable Windows Explorer/Internet Explorer. When lockout test is processing, all activities related to Windows Explorer and MS Internet Explorer are locked out and Windows system is functionally failed partially.

In the worst case that Lockout flag is enabled, IEGuardMan is closed and you can run the batch file restoreOS.bat or command file restoreOS.cmd, which are given within the sample code, in MS-DOS Prompt/Command Prompt to un-register the IEGuard component from system and restore Windows functionality.

Microsoft ties Windows Explorer and Internet Explorer together with IWebBrowser2, it also give a way for the potential virus to attack to Windows system by canceling all IWebBrowser2 instances when those IWebBrowser2 objects are instantiated like the Lockout test in IEguard did. It is a bad derivative of IWebBrowser2.

Reference and technical detail about BHO.

For more information about BHO, you can get it from Dino Esposito's article "Browser Helper Objects: The Browser the Way You Want It" in MSDN.

The primary purpose about this article.

IWebBrowser2 has been a key technology in MS Windows system, so

  1. I hope Microsoft can pay attention on the problem of the hole of IWebBrowser2 pointed out in this article.
  2. Or otherwise, somebody can develop a MS Windows “Predator” program (or you can say it as "Virus") to squash the Windows system by borrowing the idea in this article. That would be the best prize for this article.

License

This article has no explicit license attached to it, but may contain usage terms in the article text or the download files themselves. If in doubt, please contact the author via the discussion board below.

A list of licenses authors might use can be found here.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralSecurity Alert: MonitoringTool:Win32/Csysserv Pin
Andrew Muliar11-Aug-10 22:51
Andrew Muliar11-Aug-10 22:51 
GeneralRe: Security Alert: MonitoringTool:Win32/Csysserv Pin
firehawk31-Aug-14 9:20
firehawk31-Aug-14 9:20 
QuestionBHO Hooks Never Called ? Pin
joelparker6-Nov-08 14:55
joelparker6-Nov-08 14:55 
Generalwhere to find the original code Pin
rajeev_geom12-Mar-06 20:55
rajeev_geom12-Mar-06 20:55 
GeneralMore coments will be apreciated Pin
cata_10002-Feb-04 4:08
cata_10002-Feb-04 4:08 
GeneralHelp me! it troubled me too long........ Pin
Member 5969369-Jan-04 6:28
Member 5969369-Jan-04 6:28 
Generalfilter based on context Pin
yofnik28-May-03 3:41
yofnik28-May-03 3:41 
Generaldll compiled using the source cannot reguster in win9x system Pin
seewan12-Feb-03 15:55
seewan12-Feb-03 15:55 
I downloaded your example and compiled it in my win2k system with VS 6 using ur default project setting . The dll is ok in Win2k but failed to register in win98

however when u try the bin.zip files . the dll in it works fine .I also notices that the file size if different. what is the setting u use in the demo?

Why is there a error in the default setting?

anyone else eperience thge same problem


thanks
GeneralRe: dll compiled using the source cannot reguster in win9x system Pin
Andy Patterson21-Nov-03 1:25
Andy Patterson21-Nov-03 1:25 
Questionhow get list of users login on the LAN sever? Pin
Omar Lodhi7-Aug-02 19:31
Omar Lodhi7-Aug-02 19:31 
GeneralFlawed Pin
22-Jun-02 9:31
suss22-Jun-02 9:31 
GeneralI have no clue.. Pin
22-Mar-02 4:12
suss22-Mar-02 4:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.