Nat*_*han 5 windows registry contextmenu
我发现 "CommandFlags"=dword:00000040 将在条目下方添加一个分隔符,但仅添加到子菜单(在“subcommands”="" 字符串下)。示例在这里。
有没有办法在主上下文菜单中添加分隔符?
我正在使用的示例:
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Delete With Rimraf]
@="Delete With Rimraf"
"CommandFlags"=dword:00000040
Run Code Online (Sandbox Code Playgroud)
这没有分隔符。
此示例在项目前后使用分隔符,此条目用于 VirusTotal Uploader
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"=""
Run Code Online (Sandbox Code Playgroud)
对于通过 shellex 加载的其他应用程序,无法在注册表上添加分隔符,注入的 dll 添加/删除分隔符本身,然后您需要更改 dll 代码并重新编译它以实现您想要的效果,这里是使用 notepad++ https://的示例 github.com/notepad-plus-plus/notepad-plus-plus/pull/3092/commits
InsertMenu(hMenu, nIndex, MF_STRING | MF_BYPOSITION, idCmd++, m_szMenuTitle);
Run Code Online (Sandbox Code Playgroud)