PRB: DeleteUrl() Does Not Delete the Internet Explorer History Folder Entry
This article was previously published under Q327569 On This PageSYMPTOMS
After you call the IUrlHistoryStg::DeleteUrl method for a URL, the URL entry still appears in the Internet Explorer History Shell folder.
RESOLUTION
Use the IContextMenu::InvokeCommand method to delete the items. This is similar to manually deleting the item. The disadvantage to this method is that you cannot disable the confirmation dialog box that appears. The source code that follows demonstrates the resolution by deleting the first, top-level History Shell folder. Typically, this is the oldest day in the history (for example, Tuesday). You can modify the code to delete a more specific item. STATUSThis behavior is by design. MORE INFORMATION
The IUrlHistoryStg2::ClearHistory method clears the deleted history items from the Internet Explorer History Shell folder and internally. DeleteUrl is not designed to delete the Internet Explorer History Shell folder entries. Because many internal functions rely on this method, its behavior cannot be changed.
Steps to Reproduce the Behavior
REFERENCES
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
IContextMenu Interface For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/ifaces/icontextmenu/icontextmenu.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/ifaces/icontextmenu/icontextmenu.asp) IUrlHistoryStg::DeleteUrl Method http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/urlhist/iurlhistorystg/deleteurl.asp (http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/urlhist/iurlhistorystg/deleteurl.asp) http://msdn2.microsoft.com/en-us/ie/default.aspx (http://msdn2.microsoft.com/en-us/ie/default.aspx) http://support.microsoft.com/iep (http://support.microsoft.com/iep)
| Article Translations
|
Back to the top
