Partager via


Serial Communications Functions (Windows CE 5.0)

Send Feedback

The following table shows the Serial Communications functions with a description of the purpose of each.

Programming element Description
ClearCommBreak This function restores character transmission for a specified communications device and places the transmission line in a nonbreak state.
ClearCommError This function retrieves information about a communications error and reports the current status of a communications device.
EscapeCommFunction This function directs a specified communication device to perform an extended function.
GetCommMask This function retrieves the event mask value for a specified communication device.
GetCommModemStatus This function retrieves modem control-register values.
GetCommProperties This function fills a buffer with communication properties data for a specified communication device.
GetCommState This function fills in a device-control block with the current control settings for a specified communication device.
GetCommTimeouts This function retrieves the time-out parameters for all read and write operations on a specified communication device.
PurgeComm This function can discard all characters from the output or input buffer of a specified communications resource.
SetCommBreak This function suspends character transmission for a specified communications device and places the transmission line in a break state until the ClearCommBreak function is called.
SetCommMask This function specifies a set of events to be monitored for a communications device.
SetCommState This function configures a communications device according to the specifications in a device-control block.
SetCommTimeouts This function sets the time-out parameters for all read and write operations on a specified communications device.
SetupComm This function initializes the communications parameters for a specified communications device.
TransmitCommChar This function transmits a specified character ahead of any pending data in the output buffer of the specified communications device.
WaitCommEvent This function waits for an event to occur for a specified communications device.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.