


The library routines that follow enable you to create and query Windows Registry keys. (If the routines are called from a non-Windows platform, they will return an error status code of "-1".)
The Windows Registry contains the hardware, software, and user preferences that determine the configuration of a particular PC. When a user makes changes to the desktop, file structure, system configuration or software, the changes are reflected in the Registry. This information used to be contained in files like config.sys, autoexec.bat, win.ini, system.ini and control.ini, but the Registry provides a single source for accessing all of a computer's settings.
Each setting in in the Registry has a handle or Key. Only two Registry keys are actually stored on the hard disk : HKEY_LOCAL_MACHINE and HKEY_USERS. All other Registry keys are aliases or branches of these two principal keys, or are created dynamically by Windows. For example, HKEY_CLASSES_ROOT is an alias of the branch HKEY_LOCAL_MACHINE\Software\Classes. In order to interact with these Registry keys,The Windows Application Programmer's Interface (API) provides a series of functions that call the Registry. ACUCOBOL has created the library routines listed above to operate Registry functions from within your COBOL program.