CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    2

    How can I use API to detect registry or file changes, file opening, or app execution?

    Hi guys!


    I am trying to write my own code to monitor and detect any registry or file changes. I would also like to detect when a file is being open or when an application is going to be executed.

    I am using VB language.

    Can anyone give me a hand here?


    Regards,

    Frank

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How can I use API to detect registry or file changes, file opening, or app execut

    Files/Directories:
    FindFirstChangeNotification/FindNextChangeNotification/FindCloseChangeNotification
    or ReadDirectoryChangesW
    Regisry:
    RegNotifyChangeKeyValue
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How can I use API to detect registry or file changes, file opening, or app execut

    I would also like to detect when a file is being open or when an application is going to be executed.
    There's no API for spying like that, and the task requires for above-average programming skills, sorry, and you must be aware of kernel mode programming as well. The idea could be borrowed from Russinovich's FileMon.
    Best regards,
    Igor

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured