Need a notification on deletion of a file/directory
- From: uday.sen@xxxxxxxxx
- Date: 19 Jan 2006 07:12:20 -0800
Hi,
I am using CreateIoCompletionPort(), ReadDirectoryChangesW() and
GetQueuedCompletionStatus() APIs to get notification of file/folder
deletion. However, I need to determine whether the entity deleted is a
file or folder and accordingly perform an appropriate action.
I have noticed that ReadDirectoryChangesW() has a filter criteria
FILE_NOTIFY_CHANGE_DIR_NAME to get notification of folder
creation/deletion/rename. However AFAIK, this filter will not notify my
application about deletion of file. I am currently using
"FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME |
FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE |
FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_CREATION |
FILE_NOTIFY_CHANGE_SECURITY" filter criteria.
Any help is highly regarded.
Thanks in advance,
- Uday
.
- Prev by Date: Re: Disabling Serial Ballpoint Mouse when GPS connected
- Next by Date: Re: Disabling Serial Ballpoint Mouse when GPS connected
- Previous by thread: InitialzeSecurityContext() returns error when DNS domain name is different from AD domain name.
- Next by thread: Re: Need a notification on deletion of a file/directory
- Index(es):