All Manuals > LispWorks User Guide and Reference Manual > 50 Miscellaneous WIN32 symbols

NextPrevUpTopContentsIndex

with-windows-event-log-event-source

Macro
Summary

Provides an open event log handle for a body of code.

Package

win32

Signature

with-windows-event-log-event-source (handle source-name &optional unc-server-name) &body body => values

Arguments

handle

A symbol.

source-name

nil or a string.

unc-server-name

nil or a string.

Values

values

The values returned by body

Description

The macro with-windows-event-log-event-source provides an open event log handle for a body of code.

The macro with-windows-event-log-event-source binds handle to an open event log handle, evaluates the forms of body and closes handle. The values of the last form in body are returned.

source-name is used as the name of the event source for recording events. If source-name is nil then the name of the Lisp executable is used.

If unc-server-name is non-nil, then it specifies the UNC name of a server which records the events.

See also

record-message-in-windows-event-log


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex