收听Internet Explorer下载事件 [英] listen to the Internet Explorer download event
问题描述
我需要用C#和VS2010编写一个应用程序,该应用程序可以侦听Internet Explorer的下载事件并捕获文件URL并将其添加到某个数据库中.
我唯一的问题是如何实现一个实际捕获该事件的接口.
构建或实现此类功能需要什么?
要寻找免费下载管理器或FDM软件"的功能,每次在Internet Explorer上开始下载时,都会弹出一个"FDM"窗口,其中包含下载的URL.
您需要一个浏览器帮助对象.这些是COM组件,因此您可以使用C#开发它们,但需要将它们公开给COM.
此处是C#中COM编程的入门. /p>
更新
这似乎是唯一的方法,可以用C ++编写浏览器帮助程序对象.在此处.>
I need to write an application in C# and VS2010 that can listen to the download event from Internet Explorer and capture the file URL to add it to a certain database.
My only problem is on how to implement an interface that actually captures that event.
What would I need in order to build or implement such functionality?
Looking for functionality as the "Free download manager or FDM software", each time you start a download on Internet Explorer, a "FDM" window pops up containing the URL of the download.
You need a browser helper object. These are COM components so you can develop them using C# but you need to expose them to COM.
Here is a primer to the COM programming in C#.
UPDATE
It seems the only way it is possible to write browser helper object in C++. Have a look here.
这篇关于收听Internet Explorer下载事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!