Method System.RegGetValues()


Method RegGetValues

mapping(string:string|int|array(string)) RegGetValues(int hkey, string key, bool|void no_expand)

Description

Get multiple values from the register.

Parameter hkey

One of the following:

HKEY_CLASSES_ROOT
HKEY_LOCAL_MACHINE
HKEY_CURRENT_USER
HKEY_USERS
Parameter key

Registry key.

Parameter no_expand

Set this to 1 to not expand variables in REG_EXPAND_SZ-values.

Returns

Returns a mapping with all the values stored at the specified location in the register if any. Returns UNDEFINED on missing key. Throws errors on other failures.

Example

> RegGetValues(HKEY_CURRENT_USER, "Keyboard Layout\\Preload"); (5) Result: ([ "1":"0000041d" ])

Note

This function is only available on Win32 systems.

Note

Prior to Pike 9.0 REG_EXPAND_SZ-values were always expanded.

See also

RegGetValue(), RegGetKeyNames()