how to add a shell context menu for recycle bin by sharpshell?

276 Views Asked by At

How to add a shell context menu for recycle bin by sharpshell?

Is it possible?

enter image description here

1

There are 1 best solutions below

0
NineBerry On

The class GUID of the virtual Recycle Bin Folder in Windows systems is {645FF040-5081-101B-9F08-00AA002F954E}.

You can specify a context menu handler to be registered for this class in SharpShell via the the COMServerAssociation attribute and specifying AssociationType = Class and specifying the class directly the following way:

[COMServerAssociation(AssociationType.Class, "{645FF040-5081-101B-9F08-00AA002F954E}")]
public class MyContextMenuExtension: SharpContextMenu
{
  // ...
}