简体   繁体   English

如何重载Windows资源管理器功能?

[英]How to overload the Windows Explorer functionalities?

I want to catch the event of deletion, renaming or copying a file in Windows Explorer. 我想捕捉在Windows资源管理器中删除,重命名或复制文件的事件。 For example, if a folder contains the files " test.a " and " test.b ", and that I remove " test.a ", then my program will remove the two (same for copy and rename). 例如,如果一个文件夹包含文件“ test.a ”和“ test.b ”,并且我删除了“ test.a ”,那么我的程序将删除这两个文件(与复制和重命名相同)。

I know how to add an entry to the context menu of Windows. 我知道如何向Windows的上下文菜单添加条目。 But the goal isn't to add functionality to Windows. 但是目标并不是要向Windows添加功能。 The goal is to redefine an existing function. 目标是重新定义现有功能。

You could use hook for that. 您可以为此使用钩子。 See this . 看到这个

为此使用shell通知 API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM