Method System.RegGetValue()
- Method
RegGetValue
string|int|array(string) RegGetValue(inthkey,stringkey,stringindex,bool|voidno_expand)- Description
Get a single value from the register.
- Parameter
hkey One of the following:
HKEY_CLASSES_ROOTHKEY_LOCAL_MACHINEHKEY_CURRENT_USERHKEY_USERS- Parameter
key Registry key.
- Parameter
index Value name.
- Parameter
no_expand Set this to
1to not expand variables inREG_EXPAND_SZ-values.- Returns
Returns the value stored at the specified location in the register if any. Returns
UNDEFINEDon 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