views:

72

answers:

3

how do I detect download in progress (in any application such as download in IE or firefox or download manager ) using c#?

+3  A: 

That's pretty much impossible IMHO.

RageZ
A: 

The best you could hope for is some sort of packet monitor that ties the packets to a particular process 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).

Nathan Taylor
yeah, and that would bring the problem what traffic to consider to be a download + doing some kind of hooking in c# of `winsock` is some kind of `high flight` code, it's more easy to mess with that in C
RageZ
A: 
MSIL
i have a desktop application which logs out user automatiocally after 15 min of in activity. if any download in progress during the idle period my application logs out automatically without considering download
JKS