How can I detect file change?!
Hi everybody,
I want to develop module that detects file's change. I mean than your application will be notified through that module when somebody changes file outside. I found some convinient ways to do this job in Win32. I'm using FindFirstChangeNotification, FindNextChangeNotification and ReadDirectoryChangesW functions. But after using them I must look for changed file because these function doesn't give me information about which one is the changed file. Does anybody knows how to do this task? The simplest way is to check date of modification of file. But I wonder myself whether there is any more direct way.
Also does anybody knows how to do this detection on Unix/Linux?!
Regards, Alex
ReadDirectoryChangesW is not available on Win9x
I saw that ReadDirectoryChangesW function returns FILE_NOTIFY_INFORMATION structure but this function is not supported on Windows 9x according to the MSDN. This makes me to use FindFirstChangeNotification, FindNextChangeNotification functions on Windows 9x. So anybody who has some advise for the last is welcome.
Regards, Alex