RegistryKey.getBaseKey

Overview | Methods | This Package | All Packages

RegistryKey.getBaseKey

Retrieves a new RegistryKey object that represents the requested key.

Syntax

public static RegistryKey getBaseKey( int hKey )

Parameters

hKey

The HKEY_* to open.

Return Value

Returns the RegistryKey object that represents the requested key.

Remarks

Use the getBaseKey method to create a RegistryKey object based on a specific root registry key. You can also use the members of the Registry class to access a RegistryKey object for one of the root keys defined in the registry.

Valid values for hKey are: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA, HKEY_CURRENT_CONFIG, HKEY_DYN_DATA.