[英]What is the difference between Shell and ShellEx in Windows Registry?
I'm trying to add a custom context menu in windows registry, I found a shell key and shellex key that seems to both work the same thing? 我正在尝试在Windows注册表中添加自定义上下文菜单,我发现一个shell密钥和shellex密钥似乎都工作相同的东西? Why is there 2 and what are they for?
为什么有2个,它们用于什么?
The Shell
key is for static verbs used by ShellExecute
and file-type context menus. Shell
键用于ShellExecute
和文件类型上下文菜单使用的静态谓词 。 They are simple to implement because they are just a string that specifies the command. 它们很容易实现,因为它们只是一个指定命令的字符串。 They can be extended with optional COM objects (DropTarget etc.) if required.
如果需要,可以使用可选的COM对象(DropTarget等)扩展它们。
The ShellEx
key is for shell extensions, these are COM objects and there are various extension points in the shell and each type is a subkey of ShellEx. ShellEx
密钥用于shell扩展,这些是COM对象,shell中有各种扩展点,每种类型都是ShellEx的子项。 ShellEx\\ContextMenuHandlers
is the shell extension version of the plain Shell key. ShellEx\\ContextMenuHandlers
是纯Shell密钥的shell扩展版本。 The different types of shell extensions are listed here . 这里列出了不同类型的shell扩展。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.