Click to See Complete Forum and Search --> : Temporary Internet Cache


Ali Imran
September 16th, 2007, 09:22 PM
Hello guys.


When I try to list files from Temporary Internet Cache folder it just shows me two files:

Content.IE5
desktop.ini

But when I browse that folder using Windows Explorer it shows me (too many files) all cookies and downloaded content.

where size of file Content.IE5 is 0 bytes.

Question:

Where are actually the files located, whch can be accessed/read one by one ?

regards

Boris K K
September 17th, 2007, 09:43 AM
For Internet Explorer use FindFirstUrlCacheEntry (http://msdn2.microsoft.com/en-us/library/aa384026.aspx)(Ex) and related functions or, alternatively, SHGetSpecialFolderLocation(..., CSIDL_INTERNET_CACHE, ...), SHGetDesktopFolder(...), IShellFolder::BindToObject, IShellFolder::EnumObjects.

For other browsers you need information about the format in which they store their cache.

Ali Imran
September 17th, 2007, 10:00 AM
Following example did some help for listing cache enteries
http://msdn2.microsoft.com/en-us/library/aa383928.aspx

BUT, problem is how do I read them as normal file, or use map file functions ?

regards

Boris K K
September 17th, 2007, 10:45 AM
Use RetrieveUrlCacheEntryFile(INTERNET_CACHE_ENTRY_INFO.lpszSourceUrlName, ...) and don't forget to UnlockUrlCacheEntryFile at the end.

Ali Imran
September 17th, 2007, 12:40 PM
Thanks a lot, INTERNET_CACHE_ENTRY_INFO provided the necessary info.

Stay well...