downloading?
-
Is it possible to check if something is downloding from internet? I Need to check from my MFC App if somthing is downloding from internet. Please help me someone. \Larsson
On a global scale, I'd use a proxy. Since a user can download using FTP,HTTP etc.I would need to make a proxy for each. However, an app can also copy a file using it's own "protocol". zso, there is no easy way to get notified of every type of download. Bikram Singh
-
Is it possible to check if something is downloding from internet? I Need to check from my MFC App if somthing is downloding from internet. Please help me someone. \Larsson
yes a pretty hard way: if you know api hooking you can hook urldownloadtofile function you can find it in urlmon.dll and when something downloads you can display a message box on the screen and you can allow the download by letting it return what it wants or make it return a error and thus end the download before it begins. But of course they might still be downloading throught plain winsock instead of urldownloadtofile and you should probably try to hook some functions like recv also. a even harder one wich I never did just heard about: if you don't you can write a driver with the use of the winddk that acts just like a driver but filters connections. I know no other ways but there might be lots for more info on api hooking search here on codeproject a article by a russian person and also one by a chinese person but I forgot their names sorry. One article is something about disabeling ctrl alt del and contains a very good api hooking class. you should look at that.
-
yes a pretty hard way: if you know api hooking you can hook urldownloadtofile function you can find it in urlmon.dll and when something downloads you can display a message box on the screen and you can allow the download by letting it return what it wants or make it return a error and thus end the download before it begins. But of course they might still be downloading throught plain winsock instead of urldownloadtofile and you should probably try to hook some functions like recv also. a even harder one wich I never did just heard about: if you don't you can write a driver with the use of the winddk that acts just like a driver but filters connections. I know no other ways but there might be lots for more info on api hooking search here on codeproject a article by a russian person and also one by a chinese person but I forgot their names sorry. One article is something about disabeling ctrl alt del and contains a very good api hooking class. you should look at that.