A convenience function which combines create-instance and set-i-dispatch-event-handler.
create-instance-with-events clsid event-handler &rest args &key event-object => interface, list
A string or a refguid giving a CLSID to create.
A function of four arguments.
A Lisp object.
The function create-instance-with-events
is a convenience function which starts an i-dispatch
interface and sets an event handler.
It first calls create-instance with clsid and all the keyword arguments except the event-object. It defaults the create-instance argument riid to the value i-dispatch
.
It then calls set-i-dispatch-event-handler on the resulting interface, passing event-handler, event-object and clsid (as the coclass).
interface is the interface started, and sinks is the result of set-i-dispatch-event-handler.
LispWorks COM/Automation User Guide and Reference Manual - 23 Mar 2017