JCL Help:RegReadStringDef

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Reads a string key from the registry.


Pascal

 function RegReadStringDef(const RootKey: DelphiHKEY; const Key: string; const Name: string; Def: string): string;


Parameters

Parameters Description
const RootKey: DelphiHKEY The rootkey from which to read, one of the HKEY_XXX constants.
const Key: string The key (path) where the desired value is located, relative to RootKey.
const Name: string Name of the value to read.
Def: string Value to return in case of failure.


Return Value

The value of the specified key, or the specified default value on failure.


Description

RegReadStringDef reads a single string value from the registry. If the function fails it returns the value specified by Def. The function accepts only key values of type REG_SZ and REG_EXPAND_SZ.


See Also

RegReadBoolDef RegReadIntegerDef RegReadBinaryDef


About

Unit

JclRegistry


Donator

Marcel van Brakel


Contributors

Anonymous


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page