API for providing notifications when adding or deleting a file in a folder

Is there any window or shell API that will provide a notification when a file is added or deleted to a folder

+3
source share
6 answers

These APIs can help you. and you can find a good tutorial here

FindFirstChangeNotification

FindCloseChangeNotification

FindNextChangeNotification

+2
source

FindFirstChangeNotification will notify you when something changes.

ReadDirectoryChangesW can give you accurate information about what has changed.

+4
source

. , FindFirstChangeNotification.

+3
0

API , . - - .

0

Source: https://habr.com/ru/post/1719359/


All Articles