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....



RegKeyExists


Unit: SDL_filesys
Class: none
Declaration: function RegKeyExists (RootKey: HKEY; SubKey: string): boolean;

The function RegKeyExists checks whether the specified key of the Windows registry exists. 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 SubKey specifies the key (including its path) within the branch of the root key.

The function returns TRUE if the specified key exists.



Last Update: 2023-Feb-06