+ Reply to Thread
Results 1 to 2 of 2

Thread: How to get file change notification in application?

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    46

    How to get file change notification in application?

    Hi All,I need to get file change notification in an directory.How can I do this? Do I need thread programming here?

  2. #2
    There are APIs available for this.

    a. You can use FindFirstChangeNotification, FindNextChangeNotification and FindCloseChangeNotification APIs.
    b. Alternative is, you can use ReadDirectoryChanges API.

    For getting file/directory change notification:1
    You will need to create a background thread to get file notification.
    Then you can send/post mesage to Main thread as per your requirement.

    Hope this helps.

+ 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