Top Methods
com.sun.jna.platform.win32.COM.util

public Interface IConnectionPoint

Known Direct Implementers
com.sun.jna.platform.win32.COM.util.ProxyObject
Annotations
@ComInterface
iid:{B196B284-BAB4-101A-B69C-00AA00341D07}
Imports
com.sun.jna.platform.win32.COM.COMException, com.sun.jna.platform.win32.COM.util.annotation.ComInterface

Method Summary

Modifier and TypeMethod and Description
public IComEventCallbackCookie

Returns:

- a cookie that can be used to detach (unadvise) the event callback listener throws COMException if an error occurs trying to set up the listener on the target COM object, see exception cause for details.
advise
(Class<?>
- the COM interface that the listener will receive events from
comEventCallbackInterface
,
IComEventCallbackListener
- and object that will receive the callback events
comEventCallbackListener
)

Set up the comEventCallbackListener to receive callback events from the target COM object

public void
unadvise(Class<?>
- the interface that is being listened to
comEventCallbackInterface
,
final IComEventCallbackCookie
- the cookie that was returned when advise was called
cookie
)

Stop listening for callback events

Method Detail

adviseback to summary
public IComEventCallbackCookie advise(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) throws COMException

Set up the comEventCallbackListener to receive callback events from the target COM object

Parameters
comEventCallbackInterface:Class<?>

- the COM interface that the listener will receive events from

comEventCallbackListener:IComEventCallbackListener

- and object that will receive the callback events

Returns:IComEventCallbackCookie

- a cookie that can be used to detach (unadvise) the event callback listener throws COMException if an error occurs trying to set up the listener on the target COM object, see exception cause for details.

unadviseback to summary
public void unadvise(Class<?> comEventCallbackInterface, final IComEventCallbackCookie cookie) throws COMException

Stop listening for callback events

Parameters
comEventCallbackInterface:Class<?>

- the interface that is being listened to

cookie:IComEventCallbackCookie

- the cookie that was returned when advise was called