INtime SDK Help
ResetCommEvent (Serial Communications)
INtime SDK v7.1 > About INtime > Networking and I/O > Serial Communications (COMM) > ResetCommEvent (Serial Communications)

Sets the specified communication event to the nonsignaled state.

BOOLEAN ResetCommEvent(
  COMMHANDLE hCom,  // handle to device
  DWORD dwEvents      // handle to event
);

Parameters

hCom
[in] Handle to the communications device. OpenComm returns this handle.
dwEvents
[in] Event flags as specified in WaitCommEvent.

Return Values

Non-zero
Success.
0 (zero)
Failure. To determine the status, call GetLastRtError.

Status

E_DISCONNECTED
COMM channel is closed.
E_PARAM
Invalid parameter.

Remarks

Once signaled, an event is not signaled again until cleared by ResetCommEvent.

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/rt/include/comm.h comm.h comm.lib
See Also