IOCTL_SERIAL_GET_BAUD_RATE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddser.h

// CTL_CODE(0x001b, 0x014, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_GET_BAUD_RATE 0x001B0050
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddser-ioctl_serial_get_baud_rate)

IOCTL_SERIAL_GET_BAUD_RATE IOCTL

Description

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.

Parameters

Major code

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.

Input/output buffer

Input/output buffer length

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.

See also

IOCTL_SERIAL_SET_BAUD_RATE

SERIAL_BAUD_RATE