Delete files in windows

I want to create an application that will save deleted files from a flash drive to a part of a flash drive that will work as a recycle bin. I want to capture a window deletion event so that I can copy files marked as deleted.

Is there a library that will notify my application if the delete event is executed?

When using the FileSystemWatcher component, I cannot delete files, because it will be notified only after the file is deleted.

+3
source share
1 answer

You need to write a file system or minifilter file driver using callback retraining procedures

as indicated in

http://msdn.microsoft.com/en-us/library/ms793697.aspx

+3

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


All Articles