【发布时间】:2011-08-25 02:39:03
【问题描述】:
如何在 Compact Framework 1.0 上运行的 C# 中获取 Internet Explorer 在 Windows Mobile 5.0 上的历史记录?我只需要获取最近访问的 URL。即使你只知道它的存储位置,我也可以从那里找出其余部分。
【问题讨论】:
标签: c# internet-explorer windows-mobile compact-framework browser-history
如何在 Compact Framework 1.0 上运行的 C# 中获取 Internet Explorer 在 Windows Mobile 5.0 上的历史记录?我只需要获取最近访问的 URL。即使你只知道它的存储位置,我也可以从那里找出其余部分。
【问题讨论】:
标签: c# internet-explorer windows-mobile compact-framework browser-history
如果它存储在注册表中(我不是说它是,但它是一个合理的调查位置),那么通过以下步骤很容易找到它:
如果历史记录存储在注册表中,它将作为文件之间的唯一更改快速出现。
【讨论】:
它通常应该存储在 '\windows\profiles\guest\History*'
不过,最好使用以下方法从注册表中检索此位置:
using Microsoft.Win32;
RegistryKey foldersKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders");
string historyFolder = foldersKey.GetValue("History");
【讨论】: