GetSubKeyNames: IStringList;
The GetSubKeyNames method returns the collection of subkeys names for this registry key.
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: