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. .NET (Core and Framework)
  4. Win32 Debug API

Win32 Debug API

Scheduled Pinned Locked Moved .NET (Core and Framework)
debuggingjsontutorialquestion
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.
  • C Offline
    C Offline
    chandni_chandrakant_maheta
    wrote on last edited by
    #1

    I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?

    D 1 Reply Last reply
    0
    • C chandni_chandrakant_maheta

      I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?

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

      chandni_chandrakant_maheta wrote:

      I need to get notification when that process will write or modify any thing on the hard disk.

      There is no such notification. You'd have to inject hooks into all the I/O functions in the Win32 API to handle this, kind of like how FileMon does it.

      chandni_chandrakant_maheta wrote:

      Can any one guide me or give me any demo code for this?

      You probably won't find any specific to this application. No, I don't have any links or examples myself.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        chandni_chandrakant_maheta wrote:

        I need to get notification when that process will write or modify any thing on the hard disk.

        There is no such notification. You'd have to inject hooks into all the I/O functions in the Win32 API to handle this, kind of like how FileMon does it.

        chandni_chandrakant_maheta wrote:

        Can any one guide me or give me any demo code for this?

        You probably won't find any specific to this application. No, I don't have any links or examples myself.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        C Offline
        C Offline
        chandni_chandrakant_maheta
        wrote on last edited by
        #3

        Thanks for your reply. Dave Kreskowiak wrote: You'd have to inject hooks into all the I/O functions Can you please give me any sample code or any article from where I can know how to inject hooks for an I/O function.

        I 1 Reply Last reply
        0
        • C chandni_chandrakant_maheta

          Thanks for your reply. Dave Kreskowiak wrote: You'd have to inject hooks into all the I/O functions Can you please give me any sample code or any article from where I can know how to inject hooks for an I/O function.

          I Offline
          I Offline
          Ilya Verbitskiy
          wrote on last edited by
          #4

          Hello, You can see FileMon and RegMon sources. FileMon sources are most important for you. You can get thiers here[^]

          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