IRegistryKey.GetSubKeyNames

Syntax

GetSubKeyNames: IStringList;

Description

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

Example

Add a link to the Registry system assembly.

Sub UserProc;
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 UserProc;

After executing the example the development environment console displays names of all subkeys of the [HKEY_USERS] registry key.

See also:

IRegistryKey