禁止自动登陆hklm_HKLM是HKEY_LOCAL_MACHINE的别名吗?

禁止自动登陆hklm

禁止自动登陆hklm

is-hklm-an-alias-for-hkey-local-machine-00

Sometimes when working with Windows, you see all manner of names, abbreviations, and identifiers such as HKLM and HKEY_LOCAL_MACHINE for example. Is HKLM simply an alias for HKEY_LOCAL_MACHINE or are there ‘differences’ between the two? Today’s SuperUser Q&A post has the answers to a curious reader’s question.

有时,在使用Windows时,您会看到各种名称,缩写和标识符,例如HKLM和HKEY_LOCAL_MACHINE。 HKLM是HKEY_LOCAL_MACHINE的简单别名还是两者之间存在“差异”? 今天的“超级用户问答”帖子回答了一个好奇的读者的问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of wandersick (Flickr).

屏幕截图由wandersick(Flickr)提供

问题 (The Question)

SuperUser reader Joe Kearney wants to know if HKLM is just an alias for HKEY_LOCAL_MACHINE or if there really are differences between the two at times:

超级用户读者Joe Kearney想知道HKLM是否只是HKEY_LOCAL_MACHINE的别名,或者有时两者之间是否确实存在差异:

HKLM is often used as an abbreviation for HKEY_LOCAL_MACHINE, but unexpectedly, this also appears to be true when I ask the Reg. for a value.

HKLM通常用作HKEY_LOCAL_MACHINE的缩写,但是出乎意料的是,当我询问Reg时,这似乎也是正确的。 值。

  • C:\>reg query “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v “CurrentVersion”

    C:\> reg查询“ HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion” / v“ CurrentVersion”

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

    HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion

    CurrentVersion    REG_SZ    6.1

    当前版本REG_SZ 6.1

  • C:\>reg query “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v “CurrentVersion”

    C:\> reg查询“ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion” / v“ CurrentVersion”

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

    HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion

    CurrentVersion    REG_SZ    6.1

    当前版本REG_SZ 6.1

Are there any references asserting that they are equivalent or that one is an alias for the other? Or are there, in fact, cases where they are not the same thing?

是否有任何引用断言它们是等效的或一个是另一个的别名? 还是事实上,它们不是同一件事?

Is HKLM simply an alias for HKEY_LOCAL_MACHINE or are there actually some differences between the two?

HKLM仅仅是HKEY_LOCAL_MACHINE的别名还是两者之间实际上有一些区别?

答案 (The Answer)

SuperUser contributors Twinkles and john smith have the answer for us. First up, Twinkles:

超级用户贡献者Twinkles和john smith为我们找到了答案。 首先,Twinkles:

No, although HKLM is an abbreviation for HKEY_LOCAL_MACHINE, there is no official statement from Microsoft that it is always equivalent. In fact, it explicitly states that the availability of these shortcuts depend on the software being used and they are generally referred to as commonly used abbreviations.

不可以,尽管HKLM是HKEY_LOCAL_MACHINE的缩写,但是Microsoft没有官方声明它总是等效的。 实际上,它明确指出这些快捷方式的可用性取决于所使用的软件,它们通常被称为常用缩写

There are cases where abbreviating HKEY_LOCAL_MACHINE to HKLM is not permitted, for instance when defining a policy.

在某些情况下,例如在定义策略时,不允许将HKEY_LOCAL_MACHINE缩写为HKLM。

Followed by the answer from john smith:

随后是约翰·史密斯的回答:

You also cannot use these abbreviations in .reg files, you have to write the full name inside the square scopes there.

您也不能在.reg文件中使用这些缩写,您必须在该正方形作用域内写全名。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/198335/is-hklm-an-alias-for-hkey_local_machine/

禁止自动登陆hklm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值