Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Ports
Serial
Reference
 IOCTL_SERIAL_GET_BAUD_RATE
Windows Driver Kit: Serial Devices
IOCTL_SERIAL_GET_BAUD_RATE

Operation

The IOCTL_SERIAL_GET_BAUD_RATE request returns the baud rate that is currently set for a serial device.

To set the baud rate, a client can use an IOCTL_SERIAL_SET_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 Parameters.DeviceIoControl.OutputBufferLength member is set to the size in bytes of a SERIAL_BAUD_RATE structure.

Output

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

I/O 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

Headers: Defined in ntddser.h. Include ntddser.h.

See Also

IOCTL_SERIAL_SET_BAUD_RATE


Send feedback on this topic
Built on November 19, 2009
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker