Hello, I created a very simple MIME filter for text/html by referring the MSDN sample mimefltr. My filter just removes the oncontextmenu attribute of body tag. In order to do some diagnosis, the filter creates a temp file and saves downloaded content into the file. After I remove the code that creates and closes the temp file from the filter, IE simply ignores whatever my filter changed. So I put the code into the filter again, the filter just works fine and IE renders the content as expected. CAtlFile is used to operate the temp file. Could some expert explain the phenomena? It seems that CloseHandle() is somehow related. Thanks in advance, Shangwu