How do I grab Internet Explorer's history on Windows Mobile 5.0 in C# running on the Compac开发者_运维知识库t Framework 1.0? I only need to get the most recently visited URL. Even if you just know where this is stored, I might be able to figure out the rest from there.
It should normally be stored in '\windows\profiles\guest\History*'
It might however be better to retreive this location from the registry using:
using Microsoft.Win32;
RegistryKey foldersKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders");
string historyFolder = foldersKey.GetValue("History");
If it's stored in the registry (I'm not saying it is, but it's a reasonable place to investigate), then finding it is easy with the following steps:
- Attach the Remote Registry Editor to the device/emulator
- Export the entire registry to a file on your PC
- Use the browser on the device to generate more history
- Export the entire registry again to a file on your PC
- Use your favorite DIFF program to compare the two registry dumps
If history is stored in the registry, it will come up quickly as the only changes between the files.
精彩评论