Please enable JavaScript to view this site.

ESL Documentation

ESLREG Subroutine

Store the numeric value of an ESL integer in the specified Windows Registry entry.

 

WriteRegNumber(integer:RegID_IV, 

string:ValueName_SV, 

integer:Source_IV)

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_IV

An integer variable that holds numeric value 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 numeric value in the specified Windows registry entry. The entry will be created, if not present, and the type will be set to REG_DWORD.