How to know when and which files are changed in windows filesystem with winapi

前端 未结 2 1857
悲哀的现实
悲哀的现实 2021-01-02 19:23

I make program with spyware features for education, and I need to know in the program when file system is changing file, and what file is being changed.

How can I do

2条回答
  •  一生所求
    2021-01-02 19:57

    On Windows, look at SHChangeNotifyRegister(). Not only does it tell you what kind of change occured, but it also tells you which exact file(s) were changed.

提交回复
热议问题