Contains information about the configuration of the COM port.
typedef struct DPCOMPORTADDRESS{
DWORD dwComPort;
DWORD dwBaudRate;
DWORD dwStopBits;
DWORD dwParity;
DWORD dwFlowControl;
} DPCOMPORTADDRESS;
typedef DPCOMPORTADDRESS FAR* LPDPCOMPORTADDRESS;
Members
Indicates the number of the COM port to use. The value for this member can be 1, 2, 3, or 4.
Indicates the baud of the COM port. The value for this member can be one of the following:
CBR_110 | CBR_300 | CBR_600 |
CBR_1200 | CBR_2400 | CBR_4800 |
CBR_9600 | CBR_14400 | CBR_19200 |
CBR_38400 | CBR_56000 | CBR_57600 |
CBR_115200 | CBR_128000 | CBR_256000 |
Indicates the number of stop bits. The value for this member can be ONESTOPBIT, ONE5STOPBITS, or TWOSTOPBITS.
Indicates the parity used on the COM port. The value for this member can be NOPARITY, ODDPARITY, EVENPARITY, or MARKPARITY.
Indicates the method of flow control used on the COM port. The following values can be used for this member:
Indicates hardware flow control with DTR.
Indicates no flow control.
Indicates hardware flow control with RTS and DTR.
Indicates hardware flow control with RTS.
Indicates software flow control (xon/xoff).
Remarks
The constants that define baud, stop bits, and parity are defined in Winbase.h.