with-com-interface

Macro

Summary

Used to simplify invocation of several methods from a particular COM interface pointer.

Package

com

Signature

with-com-interface
disp
interface-ptr
form
* =>
values

disp
::= (
dispatch-function
interface-name
)

Arguments

disp

The names of the dispatch function and interface.

dispatch-function

A symbol which will be defined as a local macro, as if by
macrolet
. The macro can be used by the
form
s to invoke the methods on
interface-ptr
.

interface-name

A symbol which names the COM interface. It is not evaluated.

interface-ptr

A form which is evaluated to yield a COM interface pointer that implements
interface-name
.

form

A form to be evaluated.

Values

values

The values returned by the last
form
.

Description

When the macro
with-com-interface
evaluates the
form
s, the local macro
dispatch-function
can be used to invoked the methods for the COM interface
interface-name
, which should be the type or a supertype of the actual type of
interface-ptr
.