Configuration Functions

When a port driver opens a communications port, it initializes it using a default configuration. A port's configuration is defined by its device control block, a _DCB structure. To enable a client to get and set the current configuration, a port driver provides the PortGetCommState and PortSetCommState functions.

The communications settings supported by a communications device are defined by a _COMMPROP structure. To enable a client to determine the available configuration settings, you must provide the PortGetProperties function.

A port driver initializes a port's receive and transmit queues to default sizes it specifies. To enable a client to override these, the port driver must provide the PortSetup function.

See Also

_COMMPROP, _DCB, PortGetCommState, PortGetProperties, PortSetCommState, PortSetup