gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:36:07 25 4
gpt4 key购买 nike

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

这可能吗?

enter image description here

最佳答案

Windows 系统中虚拟回收站文件夹的类 GUID 是 {645FF040-5081-101B-9F08-00AA002F954E}

您可以通过 COMServerAssociation 属性和指定 AssociationType = Class 指定要在 SharpShell 中为此类注册的上下文菜单处理程序,并通过以下方式直接指定类:

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

关于c# - 如何通过 sharpshell 为回收站添加 shell 上下文菜单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40954298/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com