使用VC ++回收站上下文菜单项 [英] Recycle Bin Context Menu entry using VC++

查看:258
本文介绍了使用VC ++回收站上下文菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个外壳扩展处理程序,将我的dll注册到注册表中,为我的应用程序添加Windows 7 64位上下文菜单项.它完成了文件和目录,但现在我想在回收站上下文菜单上添加条目.

我已经用VC ++(框架4.0)编写了代码.

I have write one shell extension handler which register my dll into registry to add Windows 7 64 bit Context Menu entry for my application. It done for file and directory but now i want to add entry on Recycle Bin context menu.

I have write the code in VC++ (framework 4.0)

推荐答案

要添加命名空间图标(我的电脑",回收站"等)的上下文菜单项,请检查以下项:

[HKCR \ Folder \ Shell \]
[HKCR \ Folder \ ShellEx \ ContextMenuHandlers \]
[HKCR \ CLSID \ {Namespace-CLSID} \ shell \]
[HKCR \ CLSID \ {Namespace-CLSID} \ shellex \ ContextMenuHandlers \]
示例-对于我的电脑",密钥为:

[HKCR \ CLSID \ {20D04FE0-3AEA-1069-A2D8-08002B30309D} \ shellex \ ContextMenuHandlers \]


您可以在此处找到有关shell扩展的更多信息(以及几个很好的示例):

http://1code.codeplex.com/wikipage?title=WinShell [
To add the context-menu entries for Namespace icons (My Computer, Recycle Bin etc), check these keys:

[HKCR\Folder\Shell\]
[HKCR\Folder\ShellEx\ContextMenuHandlers\]
[HKCR\CLSID\{Namespace-CLSID}\shell\]
[HKCR\CLSID\{Namespace-CLSID}\ shellex \ ContextMenuHandlers\]
Example - For My Computer the key would be:

[HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shellex\ContextMenuHandlers\]


More infos about shell extensions you can find here (together with several good examples):

http://1code.codeplex.com/wikipage?title=WinShell[^]

Download will probably not work as they removed the examples from the last source. You will need to get an old changeset, as 60353.


Cheers


这篇关于使用VC ++回收站上下文菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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