Partager via


DeleteBrowsingHistory method

Indicates what type of browsing history to delete.

 

Syntax

HRESULT retVal = object.DeleteBrowsingHistory(dwFlags);

Parameters

dwFlags

Type: DWORD

The type of history to delete. Any combination of the following flags:

DELETE_BROWSING_HISTORY_HISTORY (0x0001)

List of visited websites.

DELETE_BROWSING_HISTORY_COOKIES (0x0002)

Files stored on the computer that save user preferences.

DELETE_BROWSING_HISTORY_TIF (0x0004)

Copies of webpages, images, and media stored in the TIF folder.

DELETE_BROWSING_HISTORY_FORMDATA (0x0008)

Information typed into forms.

DELETE_BROWSING_HISTORY_PASSWORDS (0x0010)

Saved passwords and logon information.

DELETE_BROWSING_HISTORY_PRESERVEFAVORITES (0x0020)

If specified, the extension should attempt to preserve cookies and files saved from favorite websites.

DELETE_BROWSING_HISTORY_DOWNLOADHISTORY (0x0040)

Internet Explorer 9. List of recently downloaded files.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is implemented by browser extensions. Windows 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.