Windows Driver Kit: Serial Devices
IOCTL_SERIAL_SET_BAUD_RATE
Operation
The IOCTL_SERIAL_SET_BAUD_RATE request sets the baud rate on a serial device. Serial verifies the specified baud rate.
To obtain the baud rate, a client can use an IOCTL_SERIAL_GET_BAUD_RATE request.
For more information about the baud rates that the driver supports, see the baud rate constants SERIAL_BAUD_075 through SERIAL_BAUD_115200, which are defined in the header file ntddser.h in the Microsoft Windows Driver Kit (WDK).
Input
The AssociatedIrp.SystemBuffer member points to a SERIAL_BAUD_RATE structure that a client allocates and sets to input the baud rate.
The Parameters.DeviceIoControl.InputBufferLength member is set to the size in bytes of a SERIAL_BAUD_RATE structure.
Output
None.
I/O 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.
Requirements
Headers: Defined in ntddser.h. Include ntddser.h.
See Also
IOCTL_SERIAL_GET_BAUD_RATE