如何使用C#读取Microsoft Edge历史记录 [英] How to read the Microsoft Edge history using C#

查看:606
本文介绍了如何使用C#读取Microsoft Edge历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想访问Microsoft Edge的历史记录,该怎么办? 作为我的研究,我们可以通过删除%LOCALAPPDATA%\ Packages \ Microsoft.MicrosoftEdge_8wekyb3d8bbwe \ AC文件夹中以#开头的文件夹来以编程方式删除Edge的历史记录,但就我而言,我想阅读它们.

I would like to access the history of Microsoft Edge, what should I do? As my research, we can delete the history of Edge programmatically by deleting the folders starting with # in the %LOCALAPPDATA%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC folder, but in my case, I want to read them.

当我打开以#开头的文件夹(即#!001)时,那里有很多子文件夹,而且我不知道应该在哪里获取数据.在调查中,当我访问网站时,似乎在temp文件夹中创建了URLXXX.tmp,并且此文件已加密.那是我应该看的文件吗?另外,还有一些* .dat文件,是否相关?

When I open a folder starting with #, i.e #!001, there are many sub folders there and I do not know where should I look at to get the data. And in my investigation, when I visit a website, it seems create a URLXXX.tmp in the temp folder and this file is encrypted. Is that the file I should look at? Also, there are some *.dat files, are there relevant?

推荐答案

是的,历史记录存储在WebCacheV01.dat文件中.它是一个ESE数据库(以前称为Jet Blue). Microsoft提供了api来访问此数据库.查找JetOpenDatabase,JetAttachDatabase API.但是,此文件始终由名为CacheTask的任务使用(请参阅任务计划程序中的Microsoft \ Windows \ WinInet文件夹).您将需要停止此任务,然后才能访问此数据库.然后立即再次启动此任务.因为几秒钟后另一个COM代理开始启动,所以DllHost.exe(3EB3C877-1F16-487C-9050-104DBCD66683)将阻止您访问WebCacheV01.dat.因此,您需要在开始上述COM代理之前完成阅读.仅当CacheTask未运行时,COM Surrogate才会启动.因此,如果立即重新启动CacheTask,则COM Surrogate将不会启动.

Yes, the history is stored inside WebCacheV01.dat file. It is an ESE database (earlier known as Jet Blue). Microsoft provides api to access this database. Look for JetOpenDatabase, JetAttachDatabase api. However, this file is always in use by a task called CacheTask (See Microsoft\Windows\WinInet folder in Task Scheduler). You will need to stop this task before accessing this db. And then start this task again immediately. Because another COM Surrogate starts after few seconds DllHost.exe (3EB3C877-1F16-487C-9050-104DBCD66683) which will stop you from accessing WebCacheV01.dat. So you need to complete reading before the above COM Surrogate starts. The COM Surrogate starts only when CacheTask is not running. So if you re-start CacheTask immediately, then COM Surrogate will not start.

这篇关于如何使用C#读取Microsoft Edge历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆