Click here to Skip to main content
11,805,316 members (62,794 online)
Click here to Skip to main content

Access Internet Explorer's History in MFC

, 14 Aug 2004 CPOL 39.3K 1.8K 22
Rate this:
Please Sign up or sign in to vote.
Getting the History from Internet Explorer in MFC.

Sample Image - iehistory.gif


I just wanted to access the history of Internet Explorer. I found no code anywhere to get it directly, but somehow I managed to combine some of the code and get this working application. The code isn't very great, but it is somewhat useful, you can say. I am not a great writer, so don't expect a good explanation. My coding style is self-explanatory. If you open the IEHistory.h file, you will get to see everything.

  #include <atlbase.h>
  #include <comdef.h>
  #include <mshtml.h>
  #include <UrlHist.h>
  #include <afxtempl.h>

  BOOL  GetHistory(CStringList & list)
    STATURL url;
    CString strUrl;
    ULONG uFetched;
    IUrlHistoryStg2Ptr history;
    IEnumSTATURLPtr enumPtr;

          ( void**)&history)))
            return false ;

      return false;

      strUrl = url.pwcsUrl;
    return true;

More about me.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Akash Kava
Web Developer
United States United States
Programmer with WILL

You may also be interested in...

Comments and Discussions

QuestionHow can I compile ..... Pin
junyoungkyun21-Jun-05 6:31
memberjunyoungkyun21-Jun-05 6:31 
AnswerRe: How can I compile ..... Pin
cydst27-Nov-07 17:09
membercydst27-Nov-07 17:09 
GeneralFreeing the returned strings Pin
Robert Hastings28-Oct-04 7:25
memberRobert Hastings28-Oct-04 7:25 

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
Web01 | 2.8.151002.1 | Last Updated 15 Aug 2004
Article Copyright 2004 by Akash Kava
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid