Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the serial communications functions with a description of the purpose of each.

Function Description

ClearCommBreak

Restores character transmission for a specified communications device and places the transmission line in a nonbreak state.

ClearCommError

Retrieves information about a communications error and reports the current status of a communications device.

EscapeCommFunction

Directs a specified communication device to perform an extended function.

GetCommMask

Retrieves the event mask value for a specified communication device.

GetCommModemStatus

Retrieves modem control register values.

GetCommProperties

Fills a buffer with communication properties data for a specified communication device.

GetCommState

Fills in a device-control block with the current control settings for a specified communication device.

GetCommTimeouts

Retrieves the time-out parameters for all read and write operations on a specified communication device.

PurgeComm

Discards characters from the output or input buffer of a specified communications resource.

SetCommBreak

Suspends character transmission for a specified communications device and places the transmission line in a break state until the ClearCommBreakfunction is called.

SetCommMask

Specifies a set of events to be monitored for a communications device.

SetCommState

Configures a communications device according to the specifications in a device-control block.

SetCommTimeouts

Sets the timeout parameters for all read and write operations on a specified communications device.

SetupComm

Initializes the communications parameters for a specified communications device.

TransmitCommChar

Transmits a specified character ahead of any pending data in the output buffer of the specified communications device.

WaitCommEvent

Waits for an event to occur for a specified communications device.

See Also