Click here to Skip to main content
16,015,003 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm working on an application which monitors a directory using win api ReadDirectoryChangesW() . When monitoring the directory, this api sends FILE_ACTION_MODIFIED event in case a file/sub-directory is modified in the monitored directory. It doesn't tell what specifically has changed in the file or sub-directory since the time the file/ sub-directory entry was created in the monitored directory e.g size, timestamp or attributes or am I missing something. Is there any way to get what exactly has been modified viz size/timestamp/attirbutes since the time the file entry was created?

Thanks
Raj
Posted

If you check msdn you will see that there is more information available.
http://msdn.microsoft.com/en-us/library/aa365465%28VS.85%29.aspx[^]

This example can help you out:
CDirectoryChangeWatcher - ReadDirectoryChangesW all wrapped up[^]

Good luck!
 
Share this answer
 
you can study Fwatch Sample from MSDN library
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900