DirWatcher

This tool will read directory changes.
Download

DirWatcher Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Wes Jones
  • Publisher web site:
  • http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=12096
  • Operating Systems:
  • Windows All
  • File Size:
  • 33 KB

DirWatcher Tags


DirWatcher Description

The DirWatcher application was derveloped to be a small tool that will detect any changes made to a folder. The ClassesThere are two classes that must be used together to watch a directory, they are: CDirectoryChangeWatcher and CDirectoryChangeHandler.About CDirectoryChangeWatcher:The class CDirectoryChangeWatcher does all the grunt work of watching a directory. It creates a worker thread that is waiting for directory changes to take place via its use of the ReadDirectoryChangesW Win32 API function. Multiple directories can be watched with a single instance of CDirectoryChangeWatcher, and directories can be added and removed from the watch at any time. When file change notifications are received, CDirectoryChangeWatcher 'dispatches' these notifications to your application via the the class CDirectoryChangeHandler(see below).About CDirectoryChangeHandler:The class CDirectoryChangeHandler receives notifications about file changes from CDirectoryChangeHandler. You need to derive a class from CDirectoryChangeHandler in order for your application to handle the file change notifications. A single instance of a CDirectoryChangeHandler derived class can be used to handle notifications for multiple directory watches at the same time, or you may specify different CDirectoryChangeHandler derived classes for each watched directory.


DirWatcher Related Software