2

如何通过sharpshell为回收站添加shell上下文菜单?

可能吗?

在此处输入图像描述

4

1 回答 1

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
{
  // ...
}
于 2017-01-10T15:41:38.103 回答