A customer used the
to monitor a directory for changes, asking for
notifications only for changes directly in the directory
bWatchSubtree = false).
But they found that the
reported a change even
when they created a file in
rather than in the directory being monitored.
For example, if they asked to monitor the directory
and a file was created at
reported a change, even though the file was created in
a subdirectory, and the request was for a non-recursive monitor.
some time ago
that the purpose of the
is to allow you to maintain a local copy of the contents
of a directory:
The idea is that you make an initial pass over the directory with
and then you use the notifications from
to make incremental updates to your local copy.
And what happened here is that the contents of an enumeration of
C:\dir1 directory did in fact change.
What changed is the last-modified date on