1.3.2 Communication Device Functions

The communications functions have been enhanced based on feedback from applications developers.

For additional information on how to use the communications functions, see Chapter 28, “Communications.”

The communications functions include:

Function Description

BuildCommDCB Fills a device control block with control codes
ClearCommBreak Clears the communication break state from a communication device
ClearCommError Clears a comm error and reenables the device for communications.
EnableCommNotification Enables message posting for comm events.
EscapeCommFunction Directs a device to carry out an extended function
ExtendedProviderFunction Allows access to provider-specific functionality.
GetCommConfig Get the device-specific comm information.
GetCommMask Retrieves the comm event mask.
GetCommModemStatus Retrieves the status of a modem.
GetCommProperties Retrieves the properties associated with a comm device.
GetCommState Sets the state of a communications device.
GetCommTimeouts Retrieves the current timeout settings for a comm device.
PurgeComm Flushes the input and/or output queues.
SetCommBreak Sets a break state on the communication device
SetCommConfig Sets device-specific comm information.
SetCommMask Sets the mask of events of interest to the caller.
SetCommState Sets a communication device to the state specified by the device control block
SetCommTimeouts Sets the timeouts for a comm device.
SetupComm Sets the queue sizes for communications.
TransmitCommChar Places a character at the head of the transmit queue
WaitCommEvent Waits for a comm event to occur.