HKLM è un alias per HKEY_LOCAL_MACHINE?

Sommario:

HKLM è un alias per HKEY_LOCAL_MACHINE?
HKLM è un alias per HKEY_LOCAL_MACHINE?

Video: HKLM è un alias per HKEY_LOCAL_MACHINE?

Video: HKLM è un alias per HKEY_LOCAL_MACHINE?
Video: 30 Scorciatoie da Tastiera che Ti Faranno Risparmiare un Sacco di Tempo - YouTube 2024, Aprile
Anonim
A volte quando lavori con Windows, vedi tutti i tipi di nomi, abbreviazioni e identificatori come HKLM e HKEY LOCAL MACHINE per esempio. HKLM è semplicemente un alias per HKEY LOCAL MACHINE o ci sono "differenze" tra i due? Il post di Q & A di SuperUser di oggi ha le risposte alla domanda di un lettore curioso.
A volte quando lavori con Windows, vedi tutti i tipi di nomi, abbreviazioni e identificatori come HKLM e HKEY LOCAL MACHINE per esempio. HKLM è semplicemente un alias per HKEY LOCAL MACHINE o ci sono "differenze" tra i due? Il post di Q & A di SuperUser di oggi ha le risposte alla domanda di un lettore curioso.

La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.

Schermata per gentile concessione di wandersick (Flickr).

La domanda

Il lettore SuperUser Joe Kearney vuole sapere se HKLM è solo un alias per HKEY_LOCAL_MACHINE o se ci sono davvero delle differenze tra i due, a volte:

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.

  • C:>reg query “HKLMSOFTWAREMicrosoftWindows NTCurrentVersion” /v “CurrentVersion” HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion CurrentVersion REG_SZ 6.1
  • C:>reg query “HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion” /v “CurrentVersion” HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion CurrentVersion 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?

HKLM è semplicemente un alias per HKEY_LOCAL_MACHINE o ci sono effettivamente alcune differenze tra i due?

La risposta

Contributi SuperUser Twinkles e John Smith hanno la risposta per noi. Primo, 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.

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

Seguito dalla risposta di John Smith:

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

Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.

Consigliato: