Discussion:
BHO & ActiveX Component Download
(too old to reply)
Marco Isobe
2004-01-05 14:03:11 UTC
Permalink
[Reposting with my MSDN no-spam email address to elicit a
response from Microsoft.]

Is there a way to detect if a component was activated as a nomal ActiveX
control or as a Browser Helper Object (BHO) ?
Currently I have two DLLs, one that is instantiated in my HTML code,
using an OBJECT tag, and another one that is loaded with IE as an BHO.
I need, however, to merge both files in a single DLL, as a way to reduce
component download size.
The first component checks, during IObjectWithSite::SetSite, if it was
downloaded from our website and, if it wasnŽt, it warns our users, to
prevent it being used in another site, since it is part of a fraud detection
system.
The other one canŽt do this check, since it is loaded with IE. During
IObjectWithSite::SetSite I register it as an IE event sink, because it will
monitor browser activity, looking for fraudulent sites.
So, I need to know, in SetSite, if the component is beeing instantiated
as a part of our site or as a BHO.

Tks
Marco
Tian Min Huang
2004-01-06 12:25:59 UTC
Permalink
Hello Marco,

Thank you for posting MS newgroup. I am finding resource to assist you on
this issue and will update you as soon as posible.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Shahinur Rahman
2004-01-08 21:56:27 UTC
Permalink
Hi Marco,
I don't believe BHO's look for IOleObject::SetClientSite. They might be
site-ed differently.
It may be that IE prefers IOleObject::SetClientSite for ActiveX controls
and IObjectWithSite::SetSite
for BHOs.


Thanks,
Shahinur Rahman, Microsoft.

This posting is provided "AS IS" with no warranties, and confers no rights.
© 2002 Microsoft Corporation. All rights reserved.
http://www.gotdotnet.com

Continue reading on narkive:
Loading...