0

我可以在哪里以及如何访问网络浏览器的收藏夹和历史记录?

所有浏览器都在同一个地方吗?

谢谢!

4

1 回答 1

2

这是获取 IE 历史记录的小代码:

    public List<string> PopulateUrlList()
{
    string regKey = "Software\\Microsoft\\Internet Explorer\\TypedURLs";
    RegistryKey subKey = Registry.CurrentUser.OpenSubKey(regKey);
    string url = null;
    List<string> urlList = new List<string>();
    int counter = 1;
    while (true) {
        string sValName = "url" + counter.ToString();
        url = (string)subKey.GetValue(sValName);
        if ((object)url == null) {
            break; // TODO: might not be correct. Was : Exit While
        }
        urlList.Add(url);
        counter += 1;
    }
    return urlList;
}
于 2010-09-25T14:17:40.150 回答