_SERIALPERF_STATS structure

The SERIALPERF_STATS structure contains performance statistics for a serial port.

Syntax

typedef struct _SERIALPERF_STATS {
  ULONG ReceivedCount;
  ULONG TransmittedCount;
  ULONG FrameErrorCount;
  ULONG SerialOverrunErrorCount;
  ULONG BufferOverrunErrorCount;
  ULONG ParityErrorCount;
} SERIALPERF_STATS, *PSERIALPERF_STATS;

Members

        `BufferOverrunErrorCount`

        The number of buffer overrun errors detected since either the serial port was opened or the last <b>IOCTL_SERIAL_CLEAR_STATS</b> request was processed.

        `FrameErrorCount`

        The number of frame errors detected since either the serial port was opened or the last <b>IOCTL_SERIAL_CLEAR_STATS</b> request was processed.

        `ParityErrorCount`

        The number of parity errors detected since either the serial port was opened or the last <b>IOCTL_SERIAL_CLEAR_STATS</b> request was processed.

        `ReceivedCount`

        The number of characters received since either the serial port was opened or the last <a href="..\ntddser\ni-ntddser-ioctl_serial_clear_stats.md">IOCTL_SERIAL_CLEAR_STATS</a> request was processed.

        `SerialOverrunErrorCount`

        The number of serial overrun errors detected since either the serial port was opened or the last <b>IOCTL_SERIAL_CLEAR_STATS</b> request was processed.

        `TransmittedCount`

        The number of characters transmitted since either the serial port was opened or the last <b>IOCTL_SERIAL_CLEAR_STATS</b> request was processed.

## Remarks
    This structure is used by the <a href="..\ntddser\ni-ntddser-ioctl_serial_get_stats.md">IOCTL_SERIAL_GET_STATS</a> request.

To reset the performance statistics to zero, send an IOCTL_SERIAL_CLEAR_STATS request.

Requirements

   
Windows Driver kit version
Minimum KMDF version
Minimum UMDF version
Header ntddser.h
## See Also

    <dl>

IOCTL_SERIAL_CLEAR_STATS
IOCTL_SERIAL_GET_STATS

Send comments about this topic to Microsoft