如何在C#中使用Windows窗体应用程序获取浏览器历史记录 [英] How to get browser history with help of windows form application in C#..
本文介绍了如何在C#中使用Windows窗体应用程序获取浏览器历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
..如何在C#中使用Windows窗体应用程序获取浏览器历史记录..
..How to get browser history with help of windows form application in C#..
推荐答案
如果您愿意,可以参考下面的网站获取参考文献< br $> b $ b
https://social.msdn.microsoft.com/Forums/en-US/713c81a7-0eba-4200-958a- 8e5c400b9df1 / get-internet-history-all-browsers?forum = csharplanguage [ ^ ]
http://forums.codeguru。 com / showthread.php?519215-C-Web-Browser-History-help [ ^ ]
& http://stackoverflow.com/questions/2562092/how- to-access-google-chrome-browser-history-programically-on-local-machine [ ^ ]
You can refer the bellow sites for the references if you wish
https://social.msdn.microsoft.com/Forums/en-US/713c81a7-0eba-4200-958a-8e5c400b9df1/get-internet-history-of-all-browsers?forum=csharplanguage[^]
http://forums.codeguru.com/showthread.php?519215-C-Web-Browser-History-help[^]
&http://stackoverflow.com/questions/2562092/how-to-access-google-chrome-browser-history-programmatically-on-local-machine[^]
请查看以下链接以了解更多信息g浏览器历史记录。
http://hardcodedblog.blogspot.in/2009/10/obtaining-browser-visited-url-history.html [ ^ ]
C#中URL历史记录界面的微小包装类 [ ^ ]
Please check the below link for reading browser history.
http://hardcodedblog.blogspot.in/2009/10/obtaining-browser-visited-url-history.html[^]
The Tiny Wrapper Class for URL History Interface in C#[^]
试试这个
Try this
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;
}
这篇关于如何在C#中使用Windows窗体应用程序获取浏览器历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文