注册表添加多级菜单

案例:添加.EXE文件右键菜单父菜单项【DC编程助手】,子菜单项【PEiD】【OllyDbg】

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTexefileshellDC]
"SubCommands"="PEiD;OllyDbg"
"MUIVerb"="DC编程助手"
"icon"=""D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE""
"Position"="1"

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellPEiD]
"icon"="D:\Program Files\PEiD0.95\PEiD.exe"
@="PEiD"

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellPEiDcommand]
@="D:\Program Files\PEiD0.95\PEiD.exe %1"

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellOllyDbg]
"icon"="D:\Program Files\OllyDbg\ollydbg.exe"
@="OllyDbg"

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellOllyDbgcommand]
@="D:\Program Files\OllyDbg\ollydbg.exe %1"

原文地址:https://www.cnblogs.com/doudongchun/p/3699754.html