JCL Help:RegWriteString@DelphiHKEY@string@string@Cardinal@string

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Writes a string key to the registry.


Pascal

 procedure RegWriteString(const RootKey: DelphiHKEY; const Key: string; const Name: string; const Value: string); overload;
procedure RegWriteString(const RootKey: DelphiHKEY; const Key: string; const Name: string; DataType: Cardinal; const Value: string); overload;
procedure RegWriteAnsiString(const RootKey: DelphiHKEY; const Key: string; const Name: string; const Value: AnsiString); overload;
procedure RegWriteWideString(const RootKey: DelphiHKEY; const Key: string; const Name: string; DataType: Cardinal; const Value: WideString); 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.
const Value: string Value to write.


Description

RegWriteString writes a single string value to the registry. If the function fails it raises an EJclRegistryError exception. The specified Key must already exist.


See Also

RegWriteBool RegWriteInteger RegWriteBinary


About

Unit

JclRegistry


Donator

John C Molyneux


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