All Manuals > LispWorks® User Guide and Reference Manual > 49 The Windows registry API

with-registry-key Macro

Summary

Runs code with an open registry key handle.

Package

win32

Signature

with-registry-key (handle subkey &key root access errorp) &body body => values

Arguments
handle
A variable name.
subkey
A string specifying the name of the key.
root
A keyword or handle.
access
An integer or keyword.
errorp
A boolean.
body
Lisp forms.
Values
values
The values returned by body.
Description

The macro with-registry-key evaluates body with the variable handle bound to the registry key handle opened as if by calling:

(open-registry-key subkey :root root
                   :access access
                   :errorp errorp)

subkey, root and access are interpreted as described for create-registry-key.

If errorp is nil and subkey cannot be opened then body is not evaluated.

See also

create-registry-key


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:09