@param automation the automation object that provides the event notification
@param eventSinkId the GUID of the event sink
@param eventID the id of the event
@param listener the listener
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT when listener is null</li>
</ul>
Adds the listener to receive events.
@since 3.2
@param automation the automation object that provides the event notification @param eventSinkId the GUID of the event sink @param eventID the id of the event @param listener the listener
@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT when listener is null</li> </ul>