vl-registry-read
(vl-registry-read key [ name ] )
This function returns the value for the
name value
under key registry key.
Arguments
|
key (string) the registry key to read the value
for
name (string, optional) if omitted or NIL, the
(Standard) value for key
is returned, otherwise the value string for
the name value under key
is returned
|
Return
|
(string) value for
key/name
|
Example
|
(vl-registry-read
"HKEY_CURRENT_USER\\Software\\Bricsys\\BricsCAD")
"Test"
(vl-registry-read
"HKEY_CURRENT_USER\\Software\\Bricsys\\BricsCAD" "")
"Test"
(vl-registry-read
"HKEY_CURRENT_USER\\Software\\Bricsys\\BricsCAD"
"CURVER")
"V20x64"
|
Remarks
|
to access the (Standard)
value, the name can be omitted, or specified as empty string ""
|
since V22
|
(vl-registry-read) also
supports QWord, Binary and MultiString data;
QWord : returns an
integer value, up to 64 bit range, like 1203635403395952110 or
-5903635403395952110
Binary : returns 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 : returns 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-write) function
|