Method System.RegGetValue()


Method RegGetValue

string|int|array(string) RegGetValue(int hkey, string key, string index, bool|void no_expand)

Description

Get a single value 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 index

Value name.

Parameter no_expand

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

Returns

Returns the value stored at the specified location in the register if any. Returns UNDEFINED on missing keys, throws errors on other failures.

Note

This function is only available on Win32 systems.

Note

Prior to Pike 9.0 REG_EXPAND_SZ-values were always expanded.

See also

RegGetValues(), RegGetKeyNames()