This is a heads-up for anyone using FileSystemChangeReaders, and possibly a bug
report too.
While browsing around, I found this warning about the filenames in change
notifications from the ReadDirectoryChangesW() Win32 function. I'm not able to
confirm that it is a real problem myself, but it might be relevant to anyone
who uses ChangeReaders.
There's a write-up here, which seems regrettably plausible:
http://blogs.msdn.com/ericgu/archive/2005/10/07/478396.aspxBasically the problem is that Windows is allowed to include either the long or
short form of filenames in the FILE_NOTIFY_INFORMATION structure, and is
apparently inconsistent in which it chooses. I can't find anything in the
ChangeReader to compensate for that, and I think it breaks the
filtering-by-filename code. It also potentially affects anyone using
"unfiltered" notifications.
-- chris