_VCOMM_GetCommEventMask


include vcomm.inc

VxDcall _VCOMM_GetCommEventMask, <hPort, dwMask, <OFFSET32 dwEvents>>
or      eax, eax
jz      error_handler

Retrieves and clears the specified event flags for a port. Uses the C calling convention. This is an asynchronous service.

hPort

Handle of a communications resource.

dwMask

One or more of values specifying the events to retrieve and clear. For a list of events, see CommNotifyProc.

dwEvents

Address of a 32-bit variable that receives the combination of enabled events that were detected since the last call to this service.

See also CommNotifyProc, _VCOMM_GetLastError, _VCOMM_SetCommEventMask