Is there a Click Handler for Shell Extension

白昼怎懂夜的黑 提交于 2019-12-13 15:15:16

问题


After going through MSDN Shell Extensions I am not quite sure if I can extend the behaviour of Shell Click or Click Event of explorer. Any suggestion or Code Snipet, article or Walk through?


回答1:


There is no such possibility. That would make the shell too vulnerable. Imagine all the malware that exploits this functionality.

If you want to capture the click event, there is no easy way. You may SetWindowsHookEx and monitor/capture mouse messages for all windows of CabinetWClass and/or DirectUIHWND class. You may inject your code to explorer.exe's process and intercept messages from there. Here's a snippet of injecting a dll into a process.



来源:https://stackoverflow.com/questions/3476939/is-there-a-click-handler-for-shell-extension

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