Hi All,
I've written an MFC application that monitors files using the
FindFirstChangeNotification Windows API. This works quite nicely for
(almost) all types of file, but seems to trip up on IIS log files. The
application loads the file initially, but any changes are not detected.
It would appear that the FindFirstChangeNotification does not get
triggered by IIS. The API parameters are:
fch = FindFirstChangeNotification (szNewPath,
FALSE,
FILE_NOTIFY_CHANGE_SIZE);
I've tried changing the last parameter for
FILE_NOTIFY_CHANGE_LAST_WRITE, but that still doesn't seem to work.
I've googled the issue and there is one mention back in 2002 of a chap
in Brazil that is having exactly the same problem, but there didn't seem
to be any update.
Many thanks for any help you can give,
Paul.
>> Stay informed about: IIS logfile monitoring - FindFirstChangeNotification does ..