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



RegValueExists


Unit: SDL_filesys
Class: none
Declaration: function RegValueExists (RootKey: HKEY; SubKey, ValueID: string): boolean;

The function RegValueExists checks whether the specified value 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 and the parameter ValueID specifies the value to be checked.

The function returns TRUE if the specified value exists.



Last Update: 2023-Feb-06