2016-10-01 85 views
3

我发现“CommandFlags”= dword:00000040会在条目下添加分隔符,但仅限于子菜单(位于“subcommands”=“ “字符串)。示例here在Windows资源管理器上下文菜单中添加分隔符

有没有办法在主菜单中添加分隔符?

我使用的例子:

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Delete With Rimraf] 
@="Delete With Rimraf" 
"CommandFlags"=dword:00000040 

这给没有分隔。

回答

2

这个例子之后和项目之前设有分离器,该条目是VirusTotal上传

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\vtuploader] 
@="Send to VirusTotal" 
"Icon"="C:\\Program Files\\VirusTotalUploader2\\VirusTotalUploader2.2.exe,0" 
"SeparatorBefore"="" 
"SeparatorAfter"="" 

对于加载了的shellex它不可能在注册表中添加分离器等应用程序,注入DLL添加/删除分离器本身,你需要再修改DLL的代码并重新编译它达到你想要的这里是记事本++ https://github.com/notepad-plus-plus/notepad-plus-plus/pull/3092/commits

InsertMenu(hMenu, nIndex, MF_STRING | MF_BYPOSITION, idCmd++, m_szMenuTitle); 
为例
相关问题