Can I intercept the process. I want manually feed some ActiveX to Webbrowser instead of the original one in OBJECT tag.
"susan" <none> wrote in message news:B3FF542A-8E4A-4D74-A2A9-C6BDEE3135CB@microsoft.com > Can I intercept the process. > I want manually feed some ActiveX to Webbrowser instead of the > original one in OBJECT tag. If you want to intercept a specific control (as opposed to just any control), you can do the following. Write a COM object implementing IClassFactory, use CoRegisterClassObject(CLSCTX_INPROC_SERVER) to register it within the process for the CLSID you want to intercept. Now when the browser wants to create an instance of this object, it will call your implementation of IClassFactory::CreateInstance. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925