Article ID: 260840
This article was previously published under Q260840
MIMEfilt.exe is a sample Multipurpose Internet Mail Extensions (MIME) filter for Internet Explorer that converts incoming XML data into very simple HTML. This sample demonstrates how you can build a simple COM object that filters data of a particular MIME type before it is passed to the client of a URL moniker, such as Internet Explorer.
The following file is available for download from the Microsoft Download Center:
MIMEfilt.exeRelease Date: Jan. 3, 2001
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
(https://support.microsoft.com/kb/119591/EN-US/ )How to Obtain Microsoft Support Files from Online Services
Using MIMEfiltTo use MIMEfilt, build the enclosed sample files in Microsoft Visual C++ 6.0 or later. After the build has automatically self-registered the object, any navigation to XML data in Internet Explorer will invoke the sample and convert the XML to HTML.
NOTE: This sample will override the default XML MIME viewer that is built into Internet Explorer. To restore the default XML MIME viewer when you are done with this sample, be sure to unregister the XMLMIMEfilter.dll file. You can do this by using Regsvr32:
regsvr32 /u xmlmimefilter.dll
DesignMIMEfilt is divided into two main classes, CXMLMimeFilterPP and CStringDataBuffer.
CXMLMimeFilterPP is a simple Active Template Library (ATL)-based COM object that implements the two main MIME filter interfaces discussed in this section.
CStringDataBuffer is used by CXMLMimeFilterPP to store the data as it is read from the incoming protocol handler and converted by the MIME filter. CStringDataBuffer stores written strings in a linked-list of blocks that are coalesced when a client asks for data through ReadData. This simplifies the buffer handling and data conversion that CXMLMimeFilterPP needs to do.
Article ID: 260840 - Last Review: October 25, 2012 - Revision: 4.0
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.