Skip to main content

1E SDK

NativeServices.RegistryEnumerateValues

Method

RegistryEnumerateValues

Module

NativeServices

Library

Core

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 Name

Short Name

HKEY_CLASSES_ROOT

HKCR

HKEY_CURRENT_CONFIG

HKCC

HKEY_CURRENT_USER

HKCU

HKEY_LOCAL_MACHINE

HKLM

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

REG_MULTI_SZ values are displayed with a '|' between each string.

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

REG_NONE keys are not supported.