value = ReadRegistryKey(base, key$)
#HKEY_CLASSES_ROOT #HKEY_CURRENT_CONFIG #HKEY_LOCAL_MACHINE #HKEY_USERS #HKEY_CURRENT_USER
The return value will be a number in case the registry key contains a
number. If the registry key contains a string or binary data, you will
get a string as a return value. Hollywood strings are capable of holding
binary data because they allow
NULL characters in them.
program_files$ = ReadRegistryKey(#HKEY_LOCAL_MACHINE, "Software/Microsoft/Windows/CurrentVersion/ProgramFilesDir")The code above reads the default location of programs under Windows from the registry. On a German Windows system, this will usually return "C:/Programme".