Enumerates the values of a registry key.
win32
enum-registry-value subkey index &key root max-name-size max-buffer-size expected-type errorp => name, data-type, data, error-code
subkey⇩ |
A string specifying the name of the key. |
index⇩ |
An integer. |
root⇩ |
A keyword or handle. |
max-name-size⇩ |
An integer. |
max-buffer-size⇩ |
An integer. |
expected-type⇩ |
A keyword or t . |
errorp⇩ |
A boolean. |
name |
A string. |
data-type⇩ |
A keyword. |
data |
A lisp object. |
error-code⇩ |
An integer error code or nil . |
The function enum-registry-value
allows the values of subkey under the key root to be enumerated.
subkey and root are interpreted as described for create-registry-key. The default value of root is :user
.
index specifies which value to return, with 0 being the first item.
max-name-size specifies the maximum length of the returned name. If the name is longer than this, an error is signaled. The default value of max-name-size is 256.
max-buffer-size specifies the maximum length in bytes of the value. The value is longer than this, an error is signaled. The default value of max-buffer-size is 1024.
If the value exists (that is, index is not too large), then the return values are the name, data type and data associated with the value in the registry. The argument expected-type controls how certain data types are converted to Lisp objects as follows:
data-type | expected-type | Description of converted data |
---|---|---|
|
| String made with read-from-string |
| Not supplied | String, exactly as in the registry |
|
| String, exactly as in the registry |
| Not supplied | String, environment variables expanded |
| Not supplied | Integer |
| Not supplied | Integer |
| Not supplied | A newly allocated foreign object, which must be freed by calling fli:free-foreign-object when you have finished with it |
|
| Vector, element type |
The default value of expected-type is t
.
If an error occurs and errorp is true, then an error is signaled. Otherwise, the return values are nil
, nil
, nil
and the Windows error-code. The default value of errorp is t
.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:09