Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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)
Posted
Comments
Sergey Alexandrovich Kryukov 6-Sep-12 3:17am    
Framework 4.0? .NET? Than this is C++/CLI.
--SA

1 solution

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
 
Share this answer
 
Comments
ravijain03 6-Sep-12 3:44am    
hi,
thanks for reply

but my key entry under recycle bin is already done still the name is not reflect on context menu of recycle.
Mario Majčica 6-Sep-12 3:48am    
Did you registered your dll correctly? I'm not sure how to do it in C++, but here is the link for starting understanding shellex and a working .NET 4.0 project (as for the managed code dll, it can be done only with FW4.0 and beyond) http://geekswithblogs.net/Jialiang/archive/2010/09/16/writing-windows-shell-extension-with-.net-4---part-1.aspx

Cheers
ravijain03 6-Sep-12 3:52am    
i used same code n for all it register properly. but Recycle Bin context menu not appear.
Mario Majčica 6-Sep-12 3:53am    
Sorry but with these information only I can't do much.
ravijain03 6-Sep-12 3:57am    
thanks buddy your above information also helpful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900