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. DeleteFile Hook

DeleteFile Hook

Scheduled Pinned Locked Moved C / C++ / MFC
jsontutorial
6 Posts 2 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.
  • G Offline
    G Offline
    gothic_coder
    wrote on last edited by
    #1

    Hello All, I need to intercept everytime user use delete,shift-delete or use DEL command from command promt, I need to know what API get called when we use DELETE, SHIFT+DELETE and DEL command, I'll be very much obliged if anyone can redirect me to how to intercept-Hook those calls.. Looking forward to see members reply, and i'm using VC 6.0 and WIN DDK 7.1. Thanks all

    E 1 Reply Last reply
    0
    • G gothic_coder

      Hello All, I need to intercept everytime user use delete,shift-delete or use DEL command from command promt, I need to know what API get called when we use DELETE, SHIFT+DELETE and DEL command, I'll be very much obliged if anyone can redirect me to how to intercept-Hook those calls.. Looking forward to see members reply, and i'm using VC 6.0 and WIN DDK 7.1. Thanks all

      E Offline
      E Offline
      elchupathingy
      wrote on last edited by
      #2

      What exactly are you working on that needs to intercept the function calls and that needs the DDK and are using VC 6.0? But, this is simple to implement if you know where to look. There are quite a few articles on how to intercept/hook a function call, especially a windows one.

      G 1 Reply Last reply
      0
      • E elchupathingy

        What exactly are you working on that needs to intercept the function calls and that needs the DDK and are using VC 6.0? But, this is simple to implement if you know where to look. There are quite a few articles on how to intercept/hook a function call, especially a windows one.

        G Offline
        G Offline
        gothic_coder
        wrote on last edited by
        #3

        I need to intercept if anyone delete the file and verify if it's authorized user to perform the action..

        elchupathingy wrote:

        and that needs the DDK and are using VC 6.0?

        What are other way to perform this apart of making driver?

        elchupathingy wrote:

        There are quite a few articles on how to intercept/hook a function call, especially a windows one.

        That's what i need, I couldn't find or i would say i couldn't find right articles, Can you post some link? Thanks for your reply..

        E 1 Reply Last reply
        0
        • G gothic_coder

          I need to intercept if anyone delete the file and verify if it's authorized user to perform the action..

          elchupathingy wrote:

          and that needs the DDK and are using VC 6.0?

          What are other way to perform this apart of making driver?

          elchupathingy wrote:

          There are quite a few articles on how to intercept/hook a function call, especially a windows one.

          That's what i need, I couldn't find or i would say i couldn't find right articles, Can you post some link? Thanks for your reply..

          E Offline
          E Offline
          elchupathingy
          wrote on last edited by
          #4

          [] [] Those should get you started.

          G 1 Reply Last reply
          0
          • E elchupathingy

            [] [] Those should get you started.

            G Offline
            G Offline
            gothic_coder
            wrote on last edited by
            #5

            Didn't get the point..

            E 1 Reply Last reply
            0
            • G gothic_coder

              Didn't get the point..

              E Offline
              E Offline
              elchupathingy
              wrote on last edited by
              #6

              Oh wow...the links didn't go through, sorry about that. http://www.codeproject.com/KB/system/hooksys.aspx http://www.codeproject.com/KB/threads/completeinject.aspx The two articles here. Also you only need to use something like Windows Detours, I personally like Detours 1.5, but the newer one can do more things, but 1.5 is easier to use personally.

              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