Creates a value in a key with the specified data.
Reg_CreateValue (hRootKey, sPath, sValueName, sValueData)
|hRootKey||The constant from mswconst.inc for the root key. For example HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE. LONG.|
|sPath||The full path of the key that will contain the new value. STRING.|
|sValueName||The name of the new value. STRING.|
|sValueData||The data for the value. Supports string, binary, and DWORD values, using the format used by SYS_SetRegistryValue(). STRING.|
Registry functions work remotely (as well as locally).
Registry functions are shipped in the separate file Registry.inc that is not automatically included in the Use Files, as the appropriate extension .inc files are. The Registry.txt file contains the library browser content for the registry files. In order to use the Registry functions:
Reg_CreateValue (HKEY_LOCAL_MACHINE, "Software\Company\Product", "Directory", "C:\TEMP")