ESLREG Subroutine
Store the binary value of an ESL string in the specified Windows Registry entry.
WriteRegBinary(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 binary 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 binary array in the specified Windows registry entry. The entry will be created, if not present, and the type will be set to REG_BINARY. 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 larger amount of binary data, you should create a file and store the file name in the registry using WriteRegString.