Please enable JavaScript to view this site.

ESL Documentation

ESLREG Subroutine

Open a specified Windows Registry key.

 

CloseReg(integer:RegID_IV)

Parameters

RegID_IV

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

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 closes the Windows registry key using the handle returned by a call to OpenReg. Microsoft recommends that Key handles should not be left open any longer than necessary. Note. The call to close routine does not necessarily write information to the hard disk before returning; it can take as much as several seconds for the cache to be flushed to the hard disk.