ComReset

This call resets the specified port's buffers or modem. ComReset is used to flush transmit or receive buffers, reset the transmitter flow control state (useful when the port received an XOFF, but no corresponding XON), or reset the modem connected to the port.