IOCTL_SERIAL_GET_STATS control code

The IOCTL_SERIAL_GET_STATS request returns information about the performance of a serial controller. The statistics include the number of characters transmitted, the number of characters received, and useful error statistics. The driver continuously increments performance values.

To reset the accumulated performance values to zero, a client can use an IOCTL_SERIAL_CLEAR_STATS request.

Input Parameters

The Parameters.DeviceIoControl.OutputBufferLength member is set to the size, in bytes, of a SERIALPERF_STATS structure.

Output Parameters

The AssociatedIrp.SystemBuffer member points to a client-allocated SERIALPERF_STATS structure that the serial controller driver uses to output performance information.

I/O Status Block

If the request succeeds, the Information member is set to the size, in bytes, of a SERIALPERF_STATS structure. Otherwise, the Information member is set to zero.

The Status member is set to one of the Generic Status Values for Serial Device Control Requests.

Requirements

Header

Ntddser.h (include Ntddser.h)

See also

IOCTL_SERIAL_CLEAR_STATS
SERIALPERF_STATS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft