Contents

Method

RegistryEnumerateValues

ModuleNativeServices
LibraryCore
Action

Enumerate the values under a registry hive and key.

Parameters

Hive (string): The registry hive which has to match one of the following long or short names, ignoring case:

Long NameShort Name
HKEY_CLASSES_ROOTHKCR
HKEY_CURRENT_CONFIGHKCC
HKEY_CURRENT_USERHKCU
HKEY_LOCAL_MACHINEHKLM

Subkey (string): The registry key to look for.

Recursive (boolean; optional, default false): Whether to descend recursively or not.

Return values

For each value found:

    • Name (string): The name of the value.
    • ValueType (string): "REG_DWORD" etc. as appropriate.
    • Value (string): The actual value of an appropriate type, converted to a string if not one already.
Example
 NativeServices.RegistryEnumerateValues(Hive:"HKLM", Subkey:"software\\vendor");
Platforms
  • Windows
Notes

From v4.1, REG_MULTI_SZ values are displayed with a '|' between each string; up to v4.0 only the first string was displayed.

There is a limit of 8192 values being returned. This is currently not changeable.

REG_NONE keys are not supported.