Marco Isobe
2004-01-05 14:03:11 UTC
[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
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