RegistryKeys
PowerScript function
Description
Obtains a list of the keys that are child items (subkeys) one level
below a key in the Windows system registry.
Syntax
|
1 |
RegistryKeys ( key, subkeys ) |
|
Argument |
Description |
|---|---|
|
key |
A string whose value names the key in the system To uniquely identify |
|
subkeys |
An array variable of strings in which you want to If the array is variable size, its If the array is fixed size, it must be large |
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs.
Usage
For more information about entries in the system registry, see RegistrySet.
Examples
This example obtains the subkeys associated with the key
HKEY_CLASSES_ROOTMyApp. The subkeys are stored in the variable-size array
ls_subkeylist:
|
1 2 3 4 5 6 7 |
string ls_subkeylist[] integer li_rtn li_rtn = RegistryKeys("HKEY_CLASSES_ROOTMyApp", & ls_subkeylist) IF li_rtn = -1 THEN ... // Error processing END IF |
See also