_VCOMM_SetCommEventMask

include vcomm.inc

VxDCall _VCOMM_SetCommEventMask, <hPort, dwMask, <OFFSET32 dwEvents>>
or      eax, eax
jz      error_handler
 

Sets the event mask and the location of the event variable.

hPort
Handle of a communications resource.
dwMask
The event mask for the communications resource. For a list of events, see CommNotifyProc.
dwEvents
Address of the event variable. Because the port driver updates the event variable at interrupt time, it must be in locked memory. If this parameter is NULL, the location of the event variable is not changed.

See Also

CommNotifyProc, _VCOMM_GetCommEventMask, _VCOMM_GetLastError