IOCTL_SERIAL_GET_BAUD_RATE IOCTL

The IOCTL_SERIAL_GET_BAUD_RATE request returns the baud rate at which the serial port is currently configured to transmit and receive data.

To set the baud rate, a client can use an IOCTL_SERIAL_SET_BAUD_RATE request.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

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

Output Buffer Length

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

Status Block

If the request is successful, the Information member is set to the size in bytes of a SERIAL_BAUD_RATE 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_SET_BAUD_RATE

SERIAL_BAUD_RATE