Share via


SERIAL_DEV_STATUS

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This structure stores the type of error and the communication status. Executing IOCTL_SERIAL_GET_COMMSTATUS populates this structure.

Syntax

typedef struct _SERIAL_DEV_STATUS {
  DWORD Errors;
  COMSTAT ComStat;
} SERIAL_DEV_STATUS, *PSERIAL_DEV_STATUS;

Members

  • Errors
    Bitmask containing the types of errors.

    The following table shows this bitmask.

    Bit Description

    CE_BREAK

    Hardware detected a break condition.

    CE_FRAME

    Hardware detected a framing error.

    CE_IOE

    I/O error occurred during communications with the device.

    CE_MODE

    Requested mode is not supported, or the hCommDev parameter is invalid. If this value is specified, it is the only valid error.

    CE_OVERRUN

    Character-buffer overrun. The next character is lost.

    CE_RXOVER

    Input-buffer overrun. There is either no room in the input buffer or a character was received after the end-of-file (EOF) character.

    CE_RXPARITY

    Hardware detected a parity error.

    CE_TXFULL

    Application tried to transmit a character, but the output buffer was full.

    CE_DNS

    Parallel device is not selected.

    CE_PTO

    Time-out event occurred on a parallel device.

    CE_OOP

    Parallel device signaled that it is out of paper.

Requirements

Header pegdser.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

IOCTL_SERIAL_GET_COMMSTATUS

Other Resources

COMSTAT