Share via


RASCOMMSETTINGS structure

The RASCOMMSETTINGS structure specifies the settings for a serial communications port.

Syntax

typedef struct tagRASCOMMSETTINGS {
  DWORD dwSize;
  BYTE  bParity;
  BYTE  bStop;
  BYTE  bByteSize;
  BYTE  bAlign;
} RASCOMMSETTINGS;

Members

  • dwSize
    Specifies the size of the structure. Set this member to sizeof(RASCOMMSETTINGS).

  • bParity
    Specifies the parity bits for the port. See the Remarks section for more information.

  • bStop
    Specifies the stop bits for the port. See the Remarks section for more information.

  • bByteSize
    Specifies the number of bits in the bytes transmitted and received.

  • bAlign
    This member is not used at this time.

Remarks

The bParity and bStop members use the same values as though used in the DCB structure when calling SetCommState. These bit values are defined in winbase.h.

The RASCOMMSETTINGS structure is used by the RasSetCommSettings function.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP2 [desktop apps only]

Header

Ras.h

See also

RasSetCommSettings

SetCommState

DCB