Please enable JavaScript to view this site.

ESL Documentation

ESLREG Subroutine

Store the character array from an ESL string in the specified Windows Registry entry.

 

WriteRegString(integer:RegID_IV, 

string:ValueName_SV, 

string:Source_SV)

Parameters

RegID_IV

An integer variable that holds the handle to the currently open registry key, as opened by OpenReg.

 

ValueName_SV

The name of the registry entry used to store the value. If a null string is used, the default value for the key is set.

 

Source_SV

A string variable that holds character array to be stored.

Returns

One of the following codes will be returned in the pseudo variable, "errorlevel":

REG_E_ERRORFREE

Operation was successful.

REG_E_BADHANDLE

The Key Handle being passed is invalid.

Description

This routines stores a binary array in the specified Windows registry entry. The entry will be created, if not present, and the type will be set to REG_SZ. Microsoft recommends that a maximum of 2048 bytes can be store in a registry entry, otherwise performance could be affected. If you need to store longer strings, you should create a file and store the file name in the registry.