2

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

Is it possible?

enter image description here

Dorad
  • 3,413
  • 2
  • 44
  • 71
smartiz
  • 151
  • 7

1 Answers1

1

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
{
  // ...
}
NineBerry
  • 26,306
  • 3
  • 62
  • 93