If a DLL or OCX is registered by a non-administrator user and regsvr32 says it succeeds, could it still fail to be registered properly?

旧城冷巷雨未停 提交于 2019-12-24 10:18:29

问题


If a DLL or OCX is registered by a non-adminstrator user and regsvr32 says it succeeds, could it still fail to be registered properly?


回答1:


Yes. For example, if RegCreateKeyEx is supplied HKEY_CLASSES_ROOT and the user is not an administrator, it will create the key under HKCU\Classes. Otherwise, if the user is an admin, it will create the key under HKLM\Classes.

(Note the HKCU vs. HKLM distinction. For those who aren't aware:)

HKCU = HKEY_CURRENT_USER
HKLM = HKEY_LOCAL_MACHINE

The important thing is that some accesses to the registry, such as the example above with HKEY_CLASSES_ROOT are "demultiplexed" between the machine and user registry trees, according to the user's access.



来源:https://stackoverflow.com/questions/2963316/if-a-dll-or-ocx-is-registered-by-a-non-administrator-user-and-regsvr32-says-it-s

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!