Root > Reference > All Functions > RegKeyWrite

Procedure RegKeyWrite

Previous pageReturn to chapter overviewNext page   

Writes string to registry key.

 

Unit

EConfig

 

Syntax

 

Code (Delphi)

procedure RegKeyWrite(

const ARoot: HKey;

const AKey, AName, AValue: String

); overload;

 

Parameters

ARoot

One of predefined HKEY_XYZ constants. Usually it's HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE.

 

AKey

A full absolute path to key.

 

AName

A name of value to write.

 

AValue

A value to write. Mandatory, but can be an empty string. Writing empty string will not delete value.

 

This value does not need to be encoded by EncodeConfigValue, because registry can hold exact binary copy of data itself.

 

Exceptions

System.SysUtils.EOSError

Raises this exception on failure.

 

Remarks

 

Warning

This is low-level routine. Use it only to implement your own custom high-level wrapper.

 

Use ConfigReadString or ConfigWriteString (or their equivalents) to read and write configurations.

 

 

See also




Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_econfig_regkeywrite.php