JCL Help:RegWriteBool@DelphiHKEY@string@string@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Writes a boolean key to the registry.


Pascal

 procedure RegWriteBool(const RootKey: DelphiHKEY; const Key: string; const Name: string; Value: Boolean); overload;
procedure RegWriteBool(const RootKey: DelphiHKEY; const Key: string; const Name: string; DataType: Cardinal; Value: Boolean); overload;


Parameters

Parameters Description
const RootKey: DelphiHKEY The rootkey which to write to, 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 write.
Value: Boolean Value to write.


Description

RegWriteBool writes a single boolean value to the registry. If the function fails it raises an EJclRegistryError exception. The specified Key must already exist. The value is written as REG_DWORD of either 0 or 1.


See Also

RegWriteInteger RegWriteString RegWriteBinary


About

Unit

JclRegistry


Donator

John C Molyneux


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