include vcomm.inc mov ebx, hPort mov cx, evmask les dx, oldmask mov ax, VCOMM_PM_API_cevtget call [_VCOMMCallAddr]
Calls the _VCOMM_GetCommEventMask service. Uses AX.
hPort
Communications resource handle.
evmask
The low word of event mask, which contains the bits that duplicate the Windows 3.1 functionality. VCOMM sets the high word to zero.
oldmask
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_GetCommEventMask