JCL Help:RegReadIntegerDef

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Reads an integer key from the registry.


Pascal

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


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: Integer The value to return in case of failure.


Return Value

The value of the specified key, or the specified default value in case of failure.


Description

RegReadInteger reads a single integer value from the registry. If the function fails it returns the specified default value. The function accepts only key values of type REG_DWORD.


See Also

RegReadBoolDef RegReadStringDef 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