IOCTL_SERIAL_SET_BAUD_RATE - NtDoc

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

// CTL_CODE(0x001b, 0x001, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_SET_BAUD_RATE 0x001B0004
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_SERIAL_SET_BAUD_RATE IOCTL

Description

The IOCTL_SERIAL_SET_BAUD_RATE request sets the baud rate on a serial controller device. The serial controller driver verifies the specified baud rate.

To obtain the baud rate, a client can use an IOCTL_SERIAL_GET_BAUD_RATE request.

Parameters

Major code

Input buffer

The AssociatedIrp.SystemBuffer member points to a SERIAL_BAUD_RATE structure that a client allocates and sets to input the baud rate.

Input buffer length

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

Output buffer

None.

Output buffer length

None.

Input/output buffer

Input/output buffer length

Status block

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_GET_BAUD_RATE

SERIAL_BAUD_RATE