IOCTL_SERIAL_GET_BAUD_RATE IOCTL (ntddser.h)
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
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
Requirement | Value |
---|---|
Header | ntddser.h (include Ntddser.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for