ashar5 0 Newbie Poster

Hi,

I am using ReadDirectoryChangesW to get file added/modified/deleted notifications. In the dwNotifyFilter argument, I gave the following filters.

FILE_NOTIFY_CHANGE_CREATION|FILE_NOTIFY_CHANGE_LAST_WRITE|FILE_NOTIFY_CHANGE_SIZE|FILE_NOTIFY_CHANGE_ATTRIBUTES|FILE_NOTIFY_CHANGE_DIR_NAME|FILE_NOTIFY_CHANGE_FILE_NAME

Normally the process has been waited in GetQueuedCompletionStatus function and return notifications whenever a file is added/modified/deleted.

The issue I am facing is, when a file is added/modified one time (say a.txt is modified) then I receive multiple modify notifications instead of one.

Is there any way to avoid it. or can have a single add/modify notification.

Thanks in Advance.

Regards,
Ashar