Serial Communications Functions

Windows Mobile 6.5
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 ClearCommBreak function 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.

Community Additions

Show: