[Top]
System
|
Method System.RegGetKeyNames()
- Method
RegGetKeyNames
-
array(string) System.RegGetKeyNames(int hkey, string key)
- Description
-
Get a list of value key names from the register.
- Parameter hkey
-
One of the following:
HKEY_CLASSES_ROOT |
HKEY_LOCAL_MACHINE |
HKEY_CURRENT_USER |
HKEY_USERS |
|
- Parameter key
-
A registry key.
- Returns
-
Returns an array of value keys stored at the specified location if any.
Throws errors on failure.
- Example
-
> RegGetKeyNames(HKEY_CURRENT_USER, "Keyboard Layout");
(1) Result: ({
"IMEtoggle",
"Preload",
"Substitutes",
"Toggle"
})
- Note
-
This function is only available on Win32 systems.
- See also
-
RegGetValue() , RegGetValues()
|