简体   繁体   English

Shell注册表中的Shell和ShellEx有什么区别?

[英]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.

相关问题 Microsoft Windows上的DisabledByDefault和Enabled SSL / TLS注册表项之间有什么区别? - What is the difference between the DisabledByDefault and Enabled SSL/TLS registry keys on Microsoft Windows? 在 Windows 上 Git Bash vs Windows Power Shell vs 命令提示符有什么区别 - On Windows what is the difference between Git Bash vs Windows Power Shell vs Command prompt Windows Shell和Shell API之间有什么关系? - What is the relationship between Windows Shell and the Shell API? 在Windows中,2 &lt;&1和2&gt;&1之间有什么区别? - In Windows, what's the difference between 2<&1 and 2>&1? Windows服务和Windows进程之间有什么区别? - What the difference between a Windows service and a Windows process? Shell 脚本读取 windows 注册表 - Shell script reading windows registry Windows中的socket和HANDLE有什么区别? - What's the difference between socket and HANDLE in Windows? GNUPLOT:wxt和Windows终端有什么区别? - GNUPLOT: what is difference between wxt and windows terminal? Windows批处理中!call和call有什么区别 - What is the difference between !call and call in windows batch windows中的_chdir和SetCurrentDirectory有什么区别? - What is the difference between _chdir and SetCurrentDirectory in windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM