仅为单个用户编辑 windows 资源管理器上下文菜单

Edit the windows explorer context menu for only a single user

我有一个要求,我必须通过向注册表的 HKEY_CLASSES_ROOT\Drive\shellHKEY_CLASSES_ROOT/Directory/shell 路径添加键来生成新的上下文菜单,但这会改变所有用户的上下文菜单(因为 HKEY_CLASSES_ROOT 被编辑)。我目前正在寻找一种方法来仅为特定(或更准确地说,当前)用户更改上下文菜单。

提前致谢。

写入HKEY_CURRENT_USER\Software\Classes\Drive\shell

Class registration and file name extension information is stored under both the HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER keys. The HKEY_LOCAL_MACHINE\Software\Classes key contains default settings that can apply to all users on the local computer. The HKEY_CURRENT_USER\Software\Classes key contains settings that apply only to the interactive user. The HKEY_CLASSES_ROOT key provides a view of the registry that merges the information from these two sources. HKEY_CLASSES_ROOT also provides this merged view for applications designed for previous versions of Windows.