vl-registry-write
(vl-registry-write key [ name [ data ] ]
)
This function writes data string to the
specified key and name registry entry.
Arguments
|
key (string) the registry key to write the value
for
name (string, optional) if omitted or NIL,
the data is
written to the (Standard) key, otherwise the data string is written to the
specified name value
data (string, optional) if the data is omitted or
NIL, an empty string is written
|
Return
|
(string) the data written to
the registry key / name
|
Example
|
(vl-registry-read
"HKEY_CURRENT_USER\\Software\\Bricsys\\BricsCAD" "CURVER"
"V20x64")
"V20x64"
|
Remarks
|
to access the (Standard)
value, the name can be omitted, or specified as empty string ""
|
since V22
|
(vl-registry-write) also
supports QWord, Binary and MultiString data;
QWord : accepts an
integer value, up to 64 bit range, like 1203635403395952110 or
-5903635403395952110
Binary : accepts a
list using the format
(3
0 16 35 69 0 16 35 70 0 16 35 71 0 16 35
72)
the first entry 3 specifies that the
subsequent list entries are of type integer (in range
0...255)
MultiString : accepts a list using the format
(7
"hello" "we have multiple lines within this
string" "%USERPROFILE%" "%APPDATA%" "should be" "an array of"
"eight single" "strings")
the first entry 7 specifies that the
subsequent list entries are of type string (can contain empty
strings)
see (vl-registry-read) function
|