Intercept FIleSytemCall for Deletion

后端 未结 3 1871
长发绾君心
长发绾君心 2020-12-12 06:34

Is there a way to detect deletion of a file before windows performs the deletion? I found FileSystemWatcher class but the event is raised only after the delete action is per

3条回答
  •  佛祖请我去吃肉
    2020-12-12 06:55

    You need a filesystem filter driver. However I strongly suggest that if you don't know the answer you probably shouldn't be doing it.

    http://msdn.microsoft.com/en-us/library/windows/hardware/gg462968.aspx

提交回复
热议问题