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#
  4. How to log files downloaded

How to log files downloaded

Scheduled Pinned Locked Moved C#
csharptutorial
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.
  • S Offline
    S Offline
    Stuggo
    wrote on last edited by
    #1

    Hi, I'd like to write a stealth windows application that logs what files a user downloads. I would like to use the application to perform trend analysis, what files(jpegs, gifs or mpegs etc) a user downloads the most. Using C# I would like to know the logic behind it! eg. User clicks on a button or href to download file. My app logs user downloading file from site Any ideas will be much appreciate it..!:-D

    D H 3 Replies Last reply
    0
    • S Stuggo

      Hi, I'd like to write a stealth windows application that logs what files a user downloads. I would like to use the application to perform trend analysis, what files(jpegs, gifs or mpegs etc) a user downloads the most. Using C# I would like to know the logic behind it! eg. User clicks on a button or href to download file. My app logs user downloading file from site Any ideas will be much appreciate it..!:-D

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You would essentially be writting a firewall. A low-level application that the .NET Framework is NOT suited for. You'll be P/Invoking ALOT of Win32 API calls yourself. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      • S Stuggo

        Hi, I'd like to write a stealth windows application that logs what files a user downloads. I would like to use the application to perform trend analysis, what files(jpegs, gifs or mpegs etc) a user downloads the most. Using C# I would like to know the logic behind it! eg. User clicks on a button or href to download file. My app logs user downloading file from site Any ideas will be much appreciate it..!:-D

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        You could also write a Browser Helpfer Object (BHO). It's an ActiveX control that can sink the connection points in Internet Explorer, similar to how IE toolbars and desk bands work (though no GUI is required). See Browser Helper Objects: The Browser the Way You Want It[^] for more information. While you could create a BHO using C# and exposing a CCW (COM-Callable Wrapper), it would be pretty slow with the extra marshaling overhead. I suggest writing one in C/C++ if you know it - it's really not too hard.

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        • S Stuggo

          Hi, I'd like to write a stealth windows application that logs what files a user downloads. I would like to use the application to perform trend analysis, what files(jpegs, gifs or mpegs etc) a user downloads the most. Using C# I would like to know the logic behind it! eg. User clicks on a button or href to download file. My app logs user downloading file from site Any ideas will be much appreciate it..!:-D

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          BHO's will work only with IE and Windows Explorer. They will not work with Netscape Navigator, or Mozilla, ... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          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