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. File I/O

File I/O

Scheduled Pinned Locked Moved C / C++ / MFC
question
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
    Stanciu Vlad
    wrote on last edited by
    #1

    Afther a long search over the internet and MSDN, I decided to ask someone more skilled than me that may be on this forum... Is there possible to intercept an application file operation reqest? Let's say an application is triing to open a file, can I set a hook that notifies me that? If not, how can this goal be accomplished? Writing kernel mode intermediate drivers for the i/o routines? I hope I understand...because is a rough world out there...

    N D 2 Replies Last reply
    0
    • S Stanciu Vlad

      Afther a long search over the internet and MSDN, I decided to ask someone more skilled than me that may be on this forum... Is there possible to intercept an application file operation reqest? Let's say an application is triing to open a file, can I set a hook that notifies me that? If not, how can this goal be accomplished? Writing kernel mode intermediate drivers for the i/o routines? I hope I understand...because is a rough world out there...

      N Offline
      N Offline
      Neagoe Gabriel
      wrote on last edited by
      #2

      http://www.sysinternals.com/SourceCode.html[^] and u have there the source code for AccessEnum v1.2 NG

      S 1 Reply Last reply
      0
      • N Neagoe Gabriel

        http://www.sysinternals.com/SourceCode.html[^] and u have there the source code for AccessEnum v1.2 NG

        S Offline
        S Offline
        Stanciu Vlad
        wrote on last edited by
        #3

        Thanks for you answer, but I'm tring to find a way in order to intercept some file I/O actions... Adica in timp dinamc sa imi spuna daca o aplicatie deschide o fila, citeste dintr-o fila, scrie intr-o fila, etc... Intrebarea era daca este posibli cu Hook-uri si cum, sau daca nu cum este posibil? - Mersi oricum ;) I hope you understand...because is a rough world out there...

        1 Reply Last reply
        0
        • S Stanciu Vlad

          Afther a long search over the internet and MSDN, I decided to ask someone more skilled than me that may be on this forum... Is there possible to intercept an application file operation reqest? Let's say an application is triing to open a file, can I set a hook that notifies me that? If not, how can this goal be accomplished? Writing kernel mode intermediate drivers for the i/o routines? I hope I understand...because is a rough world out there...

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Vlad Stanciu wrote: Is there possible... It's possible and, depending on your actual requirements, might not be a trivial task. You may need to create a virtual device driver, install a VxD service called IFSMGR_InstallFileSystemApiHook, or create a file system driver that "sees" all IRPs and FastIO requests directed at a drive.


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          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