如果DLL或OCX由非管理员用户注册,并且regsvr32表示成功,则仍然无法正确注册吗? [英] 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?
问题描述
如果非管理员用户注册了DLL或OCX,并且regsvr32说成功,则仍然无法正确注册吗?
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?
推荐答案
是.例如,如果提供RegCreateKeyEx
到RegCreateKeyEx
并且用户不是管理员,它将在HKCU\Classes
下创建密钥.否则,如果用户是管理员,它将在HKLM\Classes
下创建密钥.
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
.
(请注意HKCU与HKLM的区别.对于那些不知道的人:)
(Note the HKCU vs. HKLM distinction. For those who aren't aware:)
HKCU = HKEY_CURRENT_USER
HKLM = HKEY_LOCAL_MACHINE
重要的是,根据用户的访问权限,某些对注册表的访问(例如上面带有HKEY_CLASSES_ROOT
的示例)在计算机和用户注册表树之间多路分离".
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.
这篇关于如果DLL或OCX由非管理员用户注册,并且regsvr32表示成功,则仍然无法正确注册吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!