Click here to Skip to main content
15,880,469 members
Articles / Desktop Programming / MFC
Article

AntiHisto

Rate me:
Please Sign up or sign in to vote.
4.20/5 (2 votes)
5 Apr 20022 min read 74.1K   1.2K   23   10
A utility to edit IE URL history

Introduction

Do you share a computer with someone? Have you ever visited a URL that you're not exactly proud of? Wish you could delete it from the Internet Explorer history list? Well sit back and crack open a beer, because let me tell you, your troubles are over! This amazing application allows you to edit and remove those tell-tale Internet Explorer history items!

As powerful and amazing as this might sound, you do not need to be a blackbelt MSCE to do this. In reality, this application is basically a viewer into a very small part of the registry. While beginners might find it useful to see how the list control editing and sneaky key interception is done, the code itself is very simple; there are no advanced or ground-breaking techniques here. I just thought I'd share this amazing utility with the world - free of charge!

How it works

It reads the HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs registry key. This is where the IE history list for the current user is stored. Note that this is the IE drop-down history, not the auto-complete history (I couldn't find the auto-complete history anywhere in the registry). After reading them, the strings are placed into a list control (CListCtrl) and the user is allowed to edit the strings and mark them as deleted. When the user quits, it writes the new list back to the registry. Apparently, IE only reads this list from the registry when it starts, and writes this list when it exits; so you will have to shut down IE to use this (or this and IE will overwrite each other's URL list).

Interesting bits

The list control is the most interesting part of this app. It allows in-place editing, icons and multi-select. If you're new to list controls, this might be informative.

The code to handle the delete and backspace keys (to mark URLs as "deleted") is accomplished by overriding PreTranslateMessage and watching for the appropriate messages. This might be nice to look at, if you've never done this before.

The registry class is from Robert Pittenger. This will let you see it in action.

That's about it.

IE Versions

This was written with IE v6.0. I don't know if other IE versions keep their history in the same place. If not, oh well. What do you expect for free?

Name

It was Antihistamine, (anti-hista-mine → anti-history, mine → get it?) but I thought was a bit too subtle. AntiHisto is easier to figure out.

Enjoy

You'll have to figure this out on your own.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
United States United States
Chris Losinger was the president of Smaller Animals Software, Inc. (which no longer exists).

Comments and Discussions

 
GeneralNice article, but... Pin
Tom Archer8-Apr-02 15:24
Tom Archer8-Apr-02 15:24 
GeneralRe: Nice article, but... Pin
Chris Losinger8-Apr-02 15:29
professionalChris Losinger8-Apr-02 15:29 
GeneralRe: Nice article, but... Pin
Tom Archer8-Apr-02 15:33
Tom Archer8-Apr-02 15:33 
GeneralPC Magazine has this utility Pin
Rashid Thadha6-Apr-02 10:38
Rashid Thadha6-Apr-02 10:38 
GeneralRe: PC Magazine has this utility Pin
Chris Losinger6-Apr-02 10:35
professionalChris Losinger6-Apr-02 10:35 
GeneralRe: PC Magazine has this utility Pin
Nish Nishant11-Jul-02 22:57
sitebuilderNish Nishant11-Jul-02 22:57 
GeneralRe: PC Magazine has this utility Pin
Tom Archer8-Apr-02 15:26
Tom Archer8-Apr-02 15:26 
QuestionBut history then? Pin
5-Apr-02 23:03
suss5-Apr-02 23:03 
GeneralPerfect crime... Pin
Jörgen Sigvardsson5-Apr-02 7:50
Jörgen Sigvardsson5-Apr-02 7:50 
GeneralRe: Perfect crime... Pin
29-Apr-02 5:33
suss29-Apr-02 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.