The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GetAllRegSubkeys


Unit: SDL_filesys
Class: none
Declaration: procedure GetAllRegSubkeys (RootKey: HKEY; RegKey: string; SubKeys: TStringList): integer;

The function GetAllRegSubkeys returns all subkeys of a specific Windows registry path. The parameter RootKey defines the root key and can take one of the following values: HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA, HKEY_CURRENT_CONFIG and HKEY_DYN_DATA. The parameter RegKey specifies the key (including its path) for which the subkeys are to be retrieved. All subkey names of the specified key are returned in the string list SubKeys.

The function returns the number of keys in SubKeys as a function result.



Last Update: 2023-Feb-06