Windows鼠标右键菜单和注册表对应关系

鼠标右键桌面

HKEY_CLASSES_ROOT\DesktopBackground\Shell

鼠标右键空白

HKEY_CLASSES_ROOT\Directory\Background\shell\ContextMenuHandlers
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers

鼠标右键空白,新建子项

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew

鼠标右键文件夹

HKEY_CLASSES_ROOT\Directory\shell\ContextMenuHandlers
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers

鼠标右键文件

HKEY_CLASSES_ROOT\*\shell
HKEY_CLASSES_ROOT\*\shellex

鼠标右键文件扩展选项

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell

IE浏览器右键菜单

HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\MenuExt

注册表参数

参数 描述
MUIVerb 右键时展示的文字
icon 文字描述前方图标
SubCommands 是否为多级菜单
Extended 按下shift时才显示

如何创建二级菜单

在原本的注册表项下创建shell文件夹,在下方重新按照菜单创建方式创建。

posted @ 2021-09-10 15:08  Kstsixeam  阅读(761)  评论(0)    收藏  举报