Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. downloading?

downloading?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larsson
    wrote on last edited by
    #1

    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

    B S 2 Replies Last reply
    0
    • L Larsson

      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

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • L Larsson

        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

        S Offline
        S Offline
        Spiritofamerica
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • S Spiritofamerica

          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.

          L Offline
          L Offline
          Larsson
          wrote on last edited by
          #4

          Thanks, I will look in to this and I hope it will work, If you have any more information please feel free to help me.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups