RegReadStr function
Easy Registry utilities
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function RegReadStr(KeyName, ValueName: String; RootKey: hKey): String;  

Description
The RegReadStr function reads and returns the string from the registry, under specified KeyName and ValueName.  
 
Remarks
iiwarning If specified KeyName or ValueName is not exists in the registry, function will return empty string.  

Example (this code retrieves the location of Desktop folder for current user)
uses RegStr, acUtils;  
// ---  
Result := RegReadStr(REGSTR_PATH_EXPLORER + '\Shell Folders',  
  'Desktop', HKEY_CURRENT_USER);  

See also
RegWriteStr procedure.