我想在桌面背景中右键单击一个条目。
我尝试过编辑注册表值。当我用谷歌搜索时,我想到我们必须将条目放在“HKEY_CLASSES_ROOT\Directory\Background\shell”
因此,我在注册表中创建了以下键:
- 'HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad' 值为 'Notepad'
- 'HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad\command' 值为 'C:\WINDOWS\system32\notepad.exe'
当我在 windows7 中尝试时,它工作正常。
但它在 windows xp 中不起作用
谁能帮我解决这个问题?
提前致谢
最佳答案
您必须为此创建一个 shell 扩展处理程序,然后将其添加到 HKEY_CLASSES_ROOT\Directory\Background。 查看 MSDN 上的这篇文章 http://msdn.microsoft.com/en-us/library/cc144067%28VS.85%29.aspx
您编写的扩展应该是一个快捷菜单处理程序。
关于c# - 如何在 Windows XP 的桌面右键菜单中添加项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8005281/