Stores a value in the registry.
win32
set-registry-value data subkey name &key root expected-type errorp => error-code
| data⇩ |
A Lisp object. |
| subkey⇩ |
A string specifying the name of the key. |
| name⇩ |
A string specifying the name of the value. |
| root⇩ |
A keyword or handle. |
| expected-type⇩ |
A keyword or t. |
| errorp⇩ |
A boolean. |
| error-code |
An integer error code or nil. |
The function set-registry-value sets the value associated with name in subkey under the key root.
subkey and root are interpreted as described for create-registry-key. The default value of root is :user.
The stored value is derived from data, converted according to expected-type as follows:
| Lisp data | expected-type | Registry type |
|---|---|---|
A string |
| |
Lisp value |
|
|
An integer |
| |
A foreign pointer |
|
|
An array |
|
|
The default value of expected-type is t.
If an error occurs and errorp is true then an error is signaled. The default value of errorp is t.
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:53