Core Function RegKeyList

From Sputnik Wiki
Jump to: navigation, search
RegKeyList( <key> )

Contents

Description

Return an array of all the keys at this location in the registry.

Parameters

key

The registry key to open and return a list of keys inside it.

Return Value

Success: Returns array containing all the found keys.

Failure: Returns empty array.

Remarks

A registry key must start with:

"HKEY_LOCAL_MACHINE" or "HKLM"

"HKEY_USERS" or "HKU"

"HKEY_CURRENT_USER" or "HKCU"

"HKEY_CLASSES_ROOT" or "HKCR"

"HKEY_CURRENT_CONFIG" or "HKCC"

Example

$keys = RegKeyList(@"HKCU\SOFTWARE");
foreach($keys as $key)
{
	println("Key: $key");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox