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

NextPrevUpTopContentsIndex

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.

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 and root 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 - 20 Sep 2017

NextPrevUpTopContentsIndex