I\'m trying to create a MIME filter to do some custom processing of resources received with web pages before passing them to the web browser control in our Windows application.
Turns out the MSDN documentation and Visual Studio 2008 disagree about default COM visibility. The MSDN documentation says that all .NET types are visible to COM by default, but the Visual Studio 2008 class library project template disables COM visibility in the AssemblyInfo.cs file.
Solution: remove the line
[assembly: ComVisible(false)]
from the AssemblyInfo.cs file.
I may have also had bad COM interface declarations. I've replaced them with the ones from this CodeProject document.
The only readable MIME filter sample code I've found is available here and (briefly) documented here.