Obtains the list of named values associated with a key.
RegistryValues ( key, valuename )
Argument |
Description |
---|---|
key |
A string whose value is the key in the system registry for which you want the values of its subkeys. To uniquely identify a key, specify the list of parent keys above it in the hierarchy, starting with the root key. The keys in the list are separated by backslashes. |
valuename |
An array variable of strings in which you want to store the names. If the array is variable size, its upper bound will reflect the number of named values found. If the array is fixed size, it must be large enough to hold all the names. However, there will be no way to know how many names were actually found. |
Integer. Returns 1 if it succeeds and -1 if an error occurs.
For more information about entries in the system registry, see RegistrySet.
This example gets the value names associated with the key Fonts and stores them in the array ls_valuearray:
string ls_valuearray[]
RegistryValues( &
"HKEY_LOCAL_MACHINE\Software\MyApp.Settings\Fonts",&
ls_valuearray)