WORD GetCommEventMask(nCid,nEvtMask)
This function retrieves the value of the current event mask, and then clears the mask. This function must be used to prevent loss of an event.
Parameter | Type/Description |
nCid | int Specifies the communication device to be examined. The OpenComm function returns this value. | |
nEvtMask | int Specifies which events are to be enabled. For a list of the event values, see the SetCommEventMask function, later in this chapter. |
The return value specifies the current event-mask value. Each bit in the event mask specifies whether a given event has occurred. A bit is set to 1 if the event has occurred.