Click here to Skip to main content
15,898,987 members
Home / Discussions / C#
   

C#

 
GeneralRe: Flickering :( Pin
bouli26-Mar-04 5:22
bouli26-Mar-04 5:22 
GeneralRe: Flickering :( Pin
Heath Stewart26-Mar-04 7:38
protectorHeath Stewart26-Mar-04 7:38 
Generalimplementing 128 bit hashtable encription Pin
SapiensBwG26-Mar-04 2:58
SapiensBwG26-Mar-04 2:58 
GeneralRe: implementing 128 bit hashtable encription Pin
partyganger26-Mar-04 9:59
partyganger26-Mar-04 9:59 
GeneralAutomation Pin
naresh_pandey1326-Mar-04 1:58
naresh_pandey1326-Mar-04 1:58 
GeneralRe: Automation Pin
Judah Gabriel Himango26-Mar-04 3:54
sponsorJudah Gabriel Himango26-Mar-04 3:54 
GeneralIE index.dat retrieving info Pin
Apusnaias26-Mar-04 0:46
Apusnaias26-Mar-04 0:46 
GeneralRe: IE index.dat retrieving info Pin
Heath Stewart26-Mar-04 4:25
protectorHeath Stewart26-Mar-04 4:25 
The cookie cache's index.dat file is weakly encrypted, this straight from the mouth of Microsoft. I'm betting the web cache's index.dat is too. They do that for a reason, so I won't suggest trying to reverse engineer it. Wink | ;)

There is an "easier" way, though. Okay, it may not be easier if index.dat isn't encrypted, but it's 100% legal and more durable since Microsoft could change the format of index.dat at any time. Developers aren't supposed to be in it (and I honestly do recommend against this), so Microsoft has the right to change it whenever they want (for performance, size, whatever).

You'll have to declare the IUrlHistoryStg and IEnumSTATURL interfaces (with the proper GuidAttributes), and define the STATURL structure. Then create a class that implements IUrlHistoryStg and is attributed with the GuidAttribute with the CLSID CLSID_CUrlHistoryStg, which is {3C374A40-BAE4-11CF-BF7D-00AA006946EE}. Also be sure to use the ComImportAttribute or else the CLR will create an instance of your object that uses empty definitions instead of the actual COM instance.

Create an instance of your IUrlHistoryStg implementation class, enum the URLs and get the STATURL struct for each, which gives you the various dates (although IE doesn't track how much time was spent on each site, so I'm not sure what you're talking about there). This will give you the last access time.

Of course, since all the URL history items are actually just .url shortcuts on the file system, you could always use simple IO to enumerate the files and check their last modification date. That should also work.

 

Microsoft MVP, Visual C#
My Articles
GeneralSelectSingleNode Pin
bertcox26-Mar-04 0:24
bertcox26-Mar-04 0:24 
GeneralRe: SelectSingleNode Pin
Heath Stewart26-Mar-04 3:36
protectorHeath Stewart26-Mar-04 3:36 
GeneralRe: SelectSingleNode Pin
Philip Fitzsimons26-Mar-04 4:07
Philip Fitzsimons26-Mar-04 4:07 
GeneralGINA.dll Pin
amal_pro8325-Mar-04 23:49
amal_pro8325-Mar-04 23:49 
GeneralRe: GINA.dll Pin
Colin Angus Mackay25-Mar-04 23:55
Colin Angus Mackay25-Mar-04 23:55 
GeneralRe: GINA.dll Pin
Colin Angus Mackay26-Mar-04 0:31
Colin Angus Mackay26-Mar-04 0:31 
GeneralRe: GINA.dll Pin
Heath Stewart26-Mar-04 3:32
protectorHeath Stewart26-Mar-04 3:32 
GeneralRe: GINA.dll Pin
amal_pro8326-Mar-04 6:27
amal_pro8326-Mar-04 6:27 
GeneralKey event in VS2003 Pin
thomasa25-Mar-04 23:28
thomasa25-Mar-04 23:28 
GeneralRe: Key event in VS2003 Pin
Heath Stewart26-Mar-04 3:30
protectorHeath Stewart26-Mar-04 3:30 
GeneralRe: Key event in VS2003 Pin
thomasa14-Apr-04 3:30
thomasa14-Apr-04 3:30 
GeneralPanel AutoScroll Pin
Krinitsky25-Mar-04 15:20
Krinitsky25-Mar-04 15:20 
GeneralRe: Panel AutoScroll Pin
Heath Stewart26-Mar-04 3:24
protectorHeath Stewart26-Mar-04 3:24 
GeneralOracle Stored Procedure Returns Table Pin
jm200225-Mar-04 13:00
jm200225-Mar-04 13:00 
GeneralRe: Oracle Stored Procedure Returns Table Pin
Heath Stewart25-Mar-04 13:57
protectorHeath Stewart25-Mar-04 13:57 
GeneralRe: Oracle Stored Procedure Returns Table Pin
jm200226-Mar-04 3:37
jm200226-Mar-04 3:37 
GeneralRe: Oracle Stored Procedure Returns Table Pin
Heath Stewart26-Mar-04 4:34
protectorHeath Stewart26-Mar-04 4:34 

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.