The change includes adding or removing files in the directory, or changes of its sub-directories. Is there any windows APIs which can get thus changes? I don't have a thread or process to monitor the file system.
views:
130answers:
2
+3
Q:
How to quickly get whether a directory has changed using C++ without a monitoring thread or process?
A:
I'd try CDirectoryChangeWatcher, it wraps the windows ReadDirectoryChangesW function up so it's easier to use.
Nayruden
2009-05-31 07:28:45