Condividi tramite


Hardware Profiles\Current

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

HKLM\SYSTEM\CurrentControlSet\Hardware Profiles

Description

The Current subkey in the Hardware Profiles subkey displays configuration data for the hardware profile currently in use on the system.

The Current subkey does not actually contain any data. Instead, it contains a pointer to the Profile-number subkey in Hardware Profiles, which contains the current hardware profile. As such, the contents of the selected subkey appear in the Current subkey.

Also, the contents of the Current subkey appear in the HKEY_CURRENT_CONFIG subtree of the registry. Because the Current subkey and HKEY_CURRENT_CONFIG merely store pointers to the content of the numbered Hardware Profiles subkey currently in use, you can view and edit the data in any of the three locations.

The system always designates one profile as the current one.

  • If the system does not have any hardware profiles that are appropriate to the current hardware configuration, then the system creates one automatically, and that profile becomes the current hardware profile.

  • If the system includes only one hardware profile that is appropriate to the current hardware configuration, then that profile is automatically chosen to be the current hardware profile.

  • If the system includes more than one hardware profile that is appropriate to the current hardware configuration, then when the system starts, it prompts the user to select from among the appropriate hardware profiles. The chosen profile becomes the current profile.

The current hardware profile remains current until the system stops or the hardware configuration changes, such as when an ACPI-capable (Advanced Configuration and Power Interface) portable computer docks or undocks.

Tip

  • To determine which numbered subkey in Hardware Profiles represents the current hardware profile, see the CurrentConfig entry in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\IDConfigDB. The value of CurrentConfig corresponds to the number of the subkey that contains the current hardware profile.

See Also

Concepts

CurrentControlSet\Hardware Profiles
HKEY_CURRENT_CONFIG
CurrentConfig