Detect File Read in C#

前端 未结 6 883
眼角桃花
眼角桃花 2020-12-03 22:22

I\'m using FileSystemWatcher to check when a file is modified or deleted, but I\'m wondering if there is any way to check when a file is read by another application.

6条回答
  •  没有蜡笔的小新
    2020-12-03 22:57

    Yes, using file system filter driver you can catch all read requests, analyze them and even substitute the data being read. Development of such driver yourself is possible, but very time-consuming and complicated. We offer a product called CallbackFilter, which includes a ready to use driver and lets you implement your filtering business logic in user-mode.

提交回复
热议问题