registry-read | ![]() |
(registry-read <path> <key>)
Returns the value of the given unique Windows registry key.
(registry-read
(strcat "HKEY_CURRENT_USER\\" (registry-acad-product-key)
"\\Profiles")
"") => <name of the actual profile>
Valid <path> string arguments for every registry-xxx function should start with one of the following strings:
HKEY_CLASSES_ROOT HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS HKEY_CURRENT_CONFIG
registry-read is the same as the according Vital Lisp 3 function (vlx-registry-read) and the undocumented Visual Lisp function (vl-registry-read) - but without optional arguments.
The default key of a subtree may be given with just the name of the subtree (as in the example above) of with the string "@" as in
(registry-read (strcat "HKEY_CURRENT_USER\\" (registry-acad-product-key) "\\Profiles\\") "@")
Note
The Windows registry is a central OS database which is easily and fast accessed, but it's hard to copy entries to other systems.
path: A string naming the specific registry subtree. Case-dependant
key: A string naming the specific key in the registry path. The key does not need to exist. Case-dependant
The value of the found key, NIL otherwise.
None.
(std-require 'REGISTRY)
Defined in REGISTRY