This topic has not yet been rated - Rate this topic

IDeleteBrowsingHistory::DeleteBrowsingHistory Method

Indicates what type of browsing history to delete.

Syntax


HRESULT DeleteBrowsingHistory(
    DWORD dwFlags
);

Parameters

dwFlags
The type of history to delete. Any combination of the following flags:
DELETE_BROWSING_HISTORY_HISTORY
List of visited websites.
DELETE_BROWSING_HISTORY_COOKIES
Files stored on the computer that save user preferences.
DELETE_BROWSING_HISTORY_TIF
Copies of webpages, images, and media stored in the Temporary Internet Files (TIF) folder.
DELETE_BROWSING_HISTORY_FORMDATA
Information typed into forms.
DELETE_BROWSING_HISTORY_PASSWORDS
Saved passwords and logon information.
DELETE_BROWSING_HISTORY_PRESERVEFAVORITES
If specified, the extension should attempt to preserve cookies and files saved from favorite websites.
DELETE_BROWSING_HISTORY_DOWNLOADHISTORY New for Windows Internet Explorer 9 
Internet Explorer 9. List of recently downloaded files.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method is implemented by browser extensions. Internet Explorer invokes this method with the user selections from the Delete Browsing History dialog box. Extensions that implement this interface should securely remove their own data when instructed to do so.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
IDeleteBrowsingHistory at Medium Integrity?
I have a BHO that implements IDeleteBrowsingHistory and I notice that it gets called in the context of rundll32.exe running in Low Integrity.  Is there something I am missing? If not then any way to make that implementation invoked from Medium Integrity rundll32.exe?
  • 8/17/2010
  • z03
User Preferences?
The documentation says: "DELETE_BROWSING_HISTORY_COOKIES: Files stored on the computer and user preferences." What is meant by "user preferences" here? We're not talking about, for example, user-agent preferences such as would be set in the Internet Options control panel, right? The word "preferences" applies to web sites, not the user-agent?

EricLawMSFT: Basically, yes, this is meant to reflect cookies and anything that is very cookie-like in nature. For instance, UserData, HTML5 DOM Storage, Silverlight's IsolatedStorage, Adobe Flash Storage, etc.