Re: Preventing the display of specific content while downloading...
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 17 Feb 2006 12:23:18 -0500
Bassam <bj_private@xxxxxxxxx> wrote:
I'm new to this group and I have a question. I hope someone can answer
it if possible.
I have a program in which I'm hosting a webbrowser control and I need
to stop the browser from displaying flash. Is this possible. I'm aware
of the fact that you can prevent all ActiveX's from being downloaded
and/or executed but this will stop all activeX's not only the flash.
Create a COM object implementing IClassFactory that always returns an
error from CreateInstance. Use
CoRegisterClassObject(CLSCTX_INPROC_SERVER) to register this class
factory in your process for the CLSID normally referring to Flash. Now
every time WebBrowser tries to create an instance of Flash control, it
will call your factory and get a failure.
--
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
.
- Follow-Ups:
- References:
- Prev by Date: Preventing the display of specific content while downloading...
- Next by Date: Re: Preventing the display of specific content while downloading...
- Previous by thread: Preventing the display of specific content while downloading...
- Next by thread: Re: Preventing the display of specific content while downloading...
- Index(es):
Relevant Pages
|
|