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. Preventing a file from copying.?

Preventing a file from copying.?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 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.
  • Z Offline
    Z Offline
    ZarrinPour
    wrote on last edited by
    #1

    Hi all, Is it possible to MONITORING system activity such as file copying.? I want to know what happens when a file is copied from one place to another place.How windows Copy or Cut a file from one place to another place.is it possible to HOOK this process.? Thanks.

    P A 2 Replies Last reply
    0
    • Z ZarrinPour

      Hi all, Is it possible to MONITORING system activity such as file copying.? I want to know what happens when a file is copied from one place to another place.How windows Copy or Cut a file from one place to another place.is it possible to HOOK this process.? Thanks.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      I think there is something called ICopyHook interface if you implement the interface and register the component the right way you can monitor the copying process.


      MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

      M 1 Reply Last reply
      0
      • P Prakash Nadar

        I think there is something called ICopyHook interface if you implement the interface and register the component the right way you can monitor the copying process.


        MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

        M Offline
        M Offline
        Monty2
        wrote on last edited by
        #3

        ICopyHook is only for folders not for files for files one will have to write a system driver C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

        P 1 Reply Last reply
        0
        • M Monty2

          ICopyHook is only for folders not for files for files one will have to write a system driver C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          no wonder it didnt work for me when i was doing file copy operation. mailMonty wrote: files one will have to write a system driver how bout api hooking?


          MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

          1 Reply Last reply
          0
          • Z ZarrinPour

            Hi all, Is it possible to MONITORING system activity such as file copying.? I want to know what happens when a file is copied from one place to another place.How windows Copy or Cut a file from one place to another place.is it possible to HOOK this process.? Thanks.

            A Offline
            A Offline
            Alexander M
            wrote on last edited by
            #5

            where is the problem guys?! just open the file with no share rights, then no other app can open/copy/delete/move/.. it. Don't try it, just do it! ;-)

            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