CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
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
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,178

    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
    5,531

    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

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width