IRegistryKey.GetSubKeyNames

Syntax

GetSubKeyNames: IStringList;

Description

The GetSubKeyNames method returns the collection of subkeys names for this registry key.

Example

Sub Main;

Var

RegKey: IRegistryKey;

SubKey: IStringList;

s: String;

Begin

RegKey := RegistryClass.Users;

SubKey := RegKey.GetSubKeyNames;

For Each s In SubKey Do

Debug.WriteLine(s);

End For;

End Sub Main;

After executing the example names of all subkeys of the registry key HKEY_USERS are displayed in the console.

See also:

IRegistryKey