1

I have followed this guide from MS and it works fine. Now I would like to ask you how to retrieve the filename of the file that was changed in the directory?

7heViking
  • 7,137
  • 11
  • 50
  • 94
  • 1
    `FindFirstChangeNotification`: *This function does not indicate the change that satisfied the wait condition. To retrieve information about the specific change as part of the notification, use the `ReadDirectoryChangesW` function.* – Alex K. Nov 06 '14 at 15:02

1 Answers1

0

Once you've been notified of a change, you use ReadDirectoryChangesW to get the actual list of changes. The result will be an array of FILE_NOTIFY_INFORMATION structures, each one holding a filename and the offset of the next structure.

Sneftel
  • 40,271
  • 12
  • 71
  • 104