What the...?

Something bad happened

We're not sure what, but we have a few guesses.

Problem: Object reference not set to an instance of an object.
Ticket: 7864825
Server: Web02
Exploring the URL Cache - CodeProject Click here to Skip to main content
11,715,043 members (70,812 online)
Click here to Skip to main content

Exploring the URL Cache

, 8 Jun 2003 66.1K 2.4K 30
Rate this:
Please Sign up or sign in to vote.
Explore the URL Cache using the WinInet library
<!-- Article image -->

Sample Image - UrlExplr.jpg

<!-- Add the rest of your HTML here -->

Introduction

My desire to create a one button solution to blow away all files left on my machine from my browser lead me down the path of the URL Cache. This seems to be the place where all internet related files are managed. Of course this journey turned into a full-blown application to look into the cache and view the details of what's actually kept there.

All methods to manipulate the URL cache are part of the WinInet library. This library is fairly low-level (not quite at the socket level, but it's pretty far down there). In addition to the cache, the library also provides http, ftp, and gopher file transfer functionality.

Walking the URL cache is very similar to using the Win32 file related functions. FindFirst (with some parameters) returns a handle, FindNext (until there are no more), that sort of thing. I developed a set of classes to deal with the nitty-gritty. You'll find these in the UrlCacheUtil.h/.cpp files.

The application is fairly self documenting (famous last words). I'll leave it to you to get out of it what you want. The detail dialog is modeless, so it can be left up as you scroll through the cache entries.

Some interesting notes:

  • There are definitely some undocumented CacheEntryType's being used. I suspect IE creates some for it's own internal use.
  • The Groups are somewhat a mystery to me. I haven't come across one with a name yet. I suspect all entries go into an unnamed group by default.

History

06/09/2003 - submitted article. <!------------------------------- That's it! --------------------------->

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

Share

About the Author

bwengert79
Web Developer
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralAbout error \UrlExplr.rc(10): Could not find the file atlres.h., \UrlExplr.rc(10) : fatal error RC1015: cannot open include file 'atlres.h'. Pin
krishnakumartm22-Oct-08 10:05
memberkrishnakumartm22-Oct-08 10:05 
QuestionUnable to compile program. Pin
jamesw200325-Nov-05 13:28
memberjamesw200325-Nov-05 13:28 
AnswerRe: Unable to compile program. Pin
DJDoctor25-Mar-09 1:42
memberDJDoctor25-Mar-09 1:42 
GeneralThanks! Pin
Floottan19-Feb-05 17:07
memberFloottan19-Feb-05 17:07 
GeneralGood Job Pin
krskumar15-Sep-03 23:45
memberkrskumar15-Sep-03 23:45 
GeneralRe: Good Job Pin
DJDoctor25-Mar-09 1:40
memberDJDoctor25-Mar-09 1:40 
QuestionIE History For ALL users? Pin
JeffLoh11-Sep-03 17:30
sussJeffLoh11-Sep-03 17:30 
QuestionWhat about Content.IE5? Pin
nkirkes23-Jul-03 7:44
membernkirkes23-Jul-03 7:44 
GeneralGood app Pin
Celta687-Jul-03 18:27
memberCelta687-Jul-03 18:27 
GeneralGood app but article could be better Pin
Paul Watson9-Jun-03 22:01
sitebuilderPaul Watson9-Jun-03 22:01 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150901.1 | Last Updated 9 Jun 2003
Article Copyright 2003 by bwengert79
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid