Return the COM object that implements a particular COM interface pointer.
com
com-object-from-pointer pointer => object
| pointer⇩ |
A foreign pointer. |
| object |
A COM object or nil. |
The function com-object-from-pointer returns the COM object that implements pointer. The value of pointer should be a foreign pointer or COM interface pointer that was created by LispWorks itself and implemented by a subclass of com-object. If pointer is not a known COM interface pointer then nil is returned.
(com-object-from-pointer my-ptr)
COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:38