有壳扩展的点击处理程序 [英] Is there a Click Handler for Shell Extension

查看:198
本文介绍了有壳扩展的点击处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过 MSDN Shell扩展 a>我不太确定如果我可以扩展Shell单击或单击事件的资源管理器的行为。任何建议或代码Snipet,文章或通过?

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?

推荐答案

没有这样的可能性。这将使shell太脆弱。想象一下,利用此功能的所有恶意软件。

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

如果你想捕获点击事件,没有简单的方法。您可以 SetWindowsHookEx 和监视器/捕获鼠标消息为CabinetWClass和/或DirectUIHWND类的所有窗口。你可以注入你的代码到explorer.exe的进程和拦截消息。以下是在流程中注入dll的代码段

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.

这篇关于有壳扩展的点击处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆