DPCOMPORTADDRESS
The DPCOMPORTADDRESS structure 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
- dwComPort
- Indicates the number of the COM port to use. The value for this member can be 1, 2, 3, or 4.
- dwBaudRate
- 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 |
- dwStopBits
- Indicates the number of stop bits. The value for this member can be ONESTOPBIT, ONE5STOPBITS, or TWOSTOPBITS.
- dwParity
- Indicates the parity used on the COM port. The value for this member can be NOPARITY, ODDPARITY, EVENPARITY, or MARKPARITY.
- dwFlowControl
- Indicates the method of flow control used on the COM port. The following values can be used for this member:
- DPCPA_DTRFLOW
- Indicates hardware flow control with DTR.
- DPCPA_NOFLOW
- Indicates no flow control.
- DPCPA_RTSDTRFLOW
- Indicates hardware flow control with RTS and DTR.
- DPCPA_RTSFLOW
- Indicates hardware flow control with RTS.
- DPCPA_XONXOFFFLOW
- Indicates software flow control (xon/xoff).
Remarks
The constants that define baud, stop bits, and parity are defined in Winbase.h.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplobby.h.