Name
WriteRegistryKey -- write a key to the registry (V4.5)
Synopsis
WriteRegistryKey(base, key$, value)
Platforms
Microsoft Windows only

Function
This function can be used to write a key to the Windows registry. You have to specify the base tree, the key, and the value which shall be written in the specified key. If the specified key does not exist, it will be created by this function. The base tree can be one of the following constants:

 
#HKEY_CLASSES_ROOT
#HKEY_CURRENT_CONFIG
#HKEY_LOCAL_MACHINE
#HKEY_USERS
#HKEY_CURRENT_USER

The value for the key can be a either number or a string. You can also write binary data to the registry by passing a string. Hollywood strings are capable of holding arbitrary binary data because they allow NULL characters in them. Under normal circumstances, however, writing numbers or normal strings to the registry should be sufficient.

Inputs
base
one of the base tree constants from above
key$
the registry key to create/modify
value
value to set the key to; can be either a number or a string

Show TOC