[英]how do I detect download in progress using c#?
如何使用c#检测进行中的下载(在任何应用程序中,例如IE或firefox或下载管理器中的下载)?
恕我直言,这几乎是不可能的。
The best you could hope for is some sort of packet monitor that ties the packets to a particular process ID. 您可能希望的最好的办法是将数据包与特定进程ID绑定在一起的某种数据包监视器。 Even given that, you wouldn't be very well able to track an individual download, but rather the entire throughput of a single process (each packet of data coming in or out).
即使这样,您也无法很好地跟踪单个下载,而无法跟踪单个进程的整个吞吐量(每个数据包进出)。
Using HTTPAnalyzer, you should be able to infer this to certain extent - but this will be a manual process. 使用HTTPAnalyzer,您应该能够在一定程度上进行推断-但这将是一个手动过程。 May be u can use some some of its exposed API to automate.
也许您可以使用其某些公开的API来实现自动化。
BTW why do you need this - is there a practical scenario where this is really required? 顺便说一句,为什么您需要这样做-是否有实际需要的实际情况?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.