Windows XP/7 copy FILE hook

…衆ロ難τιáo~ 提交于 2019-12-24 05:46:21

问题


There's a possibility to hook folder modification operations(copy, delete, rename and so forth), but unfortunately I need hook those operations applied to files. Any thoughts?

Environment:

Delphi XE2, Windows XP/7/2008

Thanks.


回答1:


I know two options

1) You can hook the WinAPi functions like CopyFile and CopyFileEx creating a system wide hook, wrtting the hook yourself or using a API hook library like madCodeHook or Deviare API hook (I've used both libraries with great results.)

2) Writting a File System Filter Driver.



来源:https://stackoverflow.com/questions/8725110/windows-xp-7-copy-file-hook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!