vl-registry-write

(vl-registry-write key [entry [value]] )

The vl-registry-write function creates a registry key or makes an entry with its value.

Arguments

key specifies a registry key (as text string). Note: The function cannot write datea to registry keys starting with the HKEY_USERS or KEY_LOCAL_MACHINE name.

entry specifies the name of the registry entry (as text string). If no value is supplied or the argument is nil, the default for the specified key is written.

value specifies the data value to assign to the entry (as text string). If no value is specified, an empty string is assigned to the specified entry.

Return Value

The function returns the specified data value, if it succeeds, otherwise it returns nil.

Examples

: (vl-registry-write "HKEY_CURRENT_USER\\TestKey" "myentry" "test data")

"test data"

Related Functions

vl-registry-delete, vl-registry-descendents, vl-registry-read