cCall [pPortSetEventMask], <hPort, dwMask, <OFFSET32 dwEvents>> or eax, eax jz error_handler
Called by the _VCOMM_SetCommEventMask service to set the value of the event mask and the location of the event variable.
hPort
Address of a _PORTINFORMATION structure returned by the PortOpen function.
dwMask
The event mask for the communications resource. The event mask is a combination of values specifying enabled events. For a list of events, see _VCOMM_GetCommEventMask. If notification is enabled, an enabled event triggers a call to the notification function.
dwEvents
Address of the event variable. Can be NULL, in which case the location of the event variable is unchanged.
See also _PORTINFORMATION, PortOpen, _VCOMM_GetCommEventMask, _VCOMM_SetCommEventMask