Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. internet explorer history

internet explorer history

Scheduled Pinned Locked Moved Article Writing
questiondatabaselinux
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charlie Skilbeck
    wrote on last edited by
    #1

    Hi - How can I enumerate the internet explorer history items? Windows explorer seems to manage...? I enumerated all the objects in the shell namespace, but where the history should be, I get : e0000077:[5] History e0000077:[6] History.IE5 40400177:[7] index.dat 40400177:[7] desktop.ini 70400177:[7] MSHist012000052220000529 40400177:[8] index.dat 70400177:[7] MSHist012000052920000605 40400177:[8] index.dat 70400177:[7] MSHist012000060520000606 40400177:[8] index.dat 70400177:[7] MSHist012000060620000607 40400177:[8] index.dat 70400177:[7] MSHist012000060720000608 40400177:[8] index.dat 70400177:[7] MSHist012000060820000609 40400177:[8] index.dat 70400177:[7] MSHist012000060920000610 40400177:[8] index.dat 70400177:[7] MSHist012000061020000611 40400177:[8] index.dat 70400177:[7] MSHist012000061120000612 40400177:[8] index.dat 40400177:[6] desktop.ini Cheers, Charlie.

    M 1 Reply Last reply
    0
    • C Charlie Skilbeck

      Hi - How can I enumerate the internet explorer history items? Windows explorer seems to manage...? I enumerated all the objects in the shell namespace, but where the history should be, I get : e0000077:[5] History e0000077:[6] History.IE5 40400177:[7] index.dat 40400177:[7] desktop.ini 70400177:[7] MSHist012000052220000529 40400177:[8] index.dat 70400177:[7] MSHist012000052920000605 40400177:[8] index.dat 70400177:[7] MSHist012000060520000606 40400177:[8] index.dat 70400177:[7] MSHist012000060620000607 40400177:[8] index.dat 70400177:[7] MSHist012000060720000608 40400177:[8] index.dat 70400177:[7] MSHist012000060820000609 40400177:[8] index.dat 70400177:[7] MSHist012000060920000610 40400177:[8] index.dat 70400177:[7] MSHist012000061020000611 40400177:[8] index.dat 70400177:[7] MSHist012000061120000612 40400177:[8] index.dat 40400177:[6] desktop.ini Cheers, Charlie.

      M Offline
      M Offline
      Mike Dunn
      wrote on last edited by
      #2

      Look up FindFirstUrlCacheEntry() and the related functions. Here's some code for a console app that prints all history item to stdout. The history view you see in Explorer is generated by a namespace extension.

      #define WIN32_LEAN_AND_MEAN
      #include <afxwin.h>
      #include <tchar.h>
      #include <wininet.h>
      #include <iostream>

      using namespace std;

      int main(int argc, char* argv[])
      {
      HANDLE hFind;
      BYTE byBuffer[16384];
      INTERNET_CACHE_ENTRY_INFO* pInfo = (INTERNET_CACHE_ENTRY_INFO*) &byBuffer[0];
      DWORD dwSize = sizeof(byBuffer);

      pInfo->dwStructSize = sizeof(INTERNET\_CACHE\_ENTRY\_INFO);
      
      hFind = FindFirstUrlCacheEntry ( \_T("visited:"), pInfo, &dwSize );
      
      if ( NULL != hFind )
          {
          do
              {
              cout << "lpstrSourceUrlName = " << pInfo->lpszSourceUrlName << endl
                   << "Times visited = " << pInfo->dwHitRate << endl
                   << "Last time visited = ";
      
              CTime t ( pInfo->LastAccessTime );
      
              cout << (LPCTSTR) t.Format( "%b %d, %Y at %H:%M:%S" ) << endl << endl;
      
              dwSize = sizeof(byBuffer);
              } while ( FindNextUrlCacheEntry ( hFind, pInfo, &dwSize ));
      
          FindCloseUrlCache ( hFind );
          }
      
      return 0;
      

      }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups