在注册表中创建一个修改后的自己的Com对象
我想修改注册表中的 Internet Explorer CLSID 元素: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} )
可以复制此条目并替换 GUID 并创建新别名吗? 在哪里可以定义新的别名? (后来我想在PowerShell中打开这个Com对象)
I want to modified the Internet Explorer CLSID element in the registry: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} )
It is possible to copy this entry and replace the GUID and create a new alias?
Where can I defined a new alias?
(Later I want to open this Com Object in PowerShell)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
注册表项不存在“别名”之类的东西。不过,您可以在 HKCU\Software\Classes\CLSID 中创建一个条目,COM 首先会在那里查找。这也将限制你对机器造成的损坏,并且你实际上能够写入密钥的可能性也有一半。
There is no such thing as an 'alias' for registry keys. You can however create an entry in HKCU\Software\Classes\CLSID, COM looks there first. This would also limit the amount of damage you do to the machine and you'll have halfway decent odds of actually being able to write the key.