Communications Functions

The following functions are used with communications resources.

FunctionDescription
BuildCommDCBFills a specified DCB structure with values specified in a device-control string.
BuildCommDCBAndTimeoutsTranslates a device-definition string into appropriate device-control block codes and places them into a device control block.
ClearCommBreakRestores character transmission for a specified communications device and places the transmission line in a nonbreak state.
ClearCommErrorRetrieves information about a communications error and reports the current status of a communications device.
CommConfigDialogDisplays a driver-supplied configuration dialog box.
EscapeCommFunctionDirects a specified communications device to perform an extended function.
GetCommConfigRetrieves the current configuration of a communications device.
GetCommMaskRetrieves the value of the event mask for a specified communications device.
GetCommModemStatusRetrieves modem control-register values.
GetCommPropertiesRetrieves information about the communications properties for a specified communications device.
GetCommStateRetrieves the current control settings for a specified communications device.
GetCommTimeoutsRetrieves the time-out parameters for all read and write operations on a specified communications device.
GetDefaultCommConfigRetrieves the default configuration for the specified communications device.
PurgeCommDiscards all characters from the output or input buffer of a specified communications resource.
SetCommBreakSuspends character transmission for a specified communications device and places the transmission line in a break state.
SetCommConfigSets the current configuration of a communications device.
SetCommMaskSpecifies a set of events to be monitored for a communications device.
SetCommStateConfigures a communications device according to the specifications in a device-control block.
SetCommTimeoutsSets the time-out parameters for all read and write operations on a specified communications device.
SetDefaultCommConfigSets the default configuration for a communications device.
SetupCommInitializes the communications parameters for a specified communications device.
TransmitCommCharTransmits a specified character ahead of any pending data in the output buffer of the specified communications device.
WaitCommEventWaits for an event to occur for a specified communications device.

 

Send comments about this topic to Microsoft

Build date: 7/30/2009

Tags :


Page view tracker