HKLM est-il un alias pour HKEY_LOCAL_MACHINE?

Table des matières:

HKLM est-il un alias pour HKEY_LOCAL_MACHINE?
HKLM est-il un alias pour HKEY_LOCAL_MACHINE?

Vidéo: HKLM est-il un alias pour HKEY_LOCAL_MACHINE?

Vidéo: HKLM est-il un alias pour HKEY_LOCAL_MACHINE?
Vidéo: 32 raccourcis clavier sous windows 10 à connaître - YouTube 2024, Avril
Anonim
Parfois, lorsque vous travaillez avec Windows, vous voyez toutes sortes de noms, abréviations et identificateurs tels que HKLM et HKEY LOCAL MACHINE par exemple. HKLM est-il simplement un alias pour HKEY LOCAL MACHINE ou existe-t-il des "différences" entre les deux? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.
Parfois, lorsque vous travaillez avec Windows, vous voyez toutes sortes de noms, abréviations et identificateurs tels que HKLM et HKEY LOCAL MACHINE par exemple. HKLM est-il simplement un alias pour HKEY LOCAL MACHINE ou existe-t-il des "différences" entre les deux? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

Capture d'écran fournie par wandersick (Flickr).

La question

Le lecteur de superutilisateur Joe Kearney souhaite savoir si HKLM n’est qu’un alias pour HKEY_LOCAL_MACHINE ou s’il existe vraiment des différences entre les deux:

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 est-il simplement un alias pour HKEY_LOCAL_MACHINE ou existe-t-il des différences entre les deux?

La réponse

Les contributeurs de SuperUser Twinkles et John Smith ont la solution pour nous. D'abord, 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.

Suivi de la réponse de John Smith:

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

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Conseillé: