IOCTL_SERIAL_SET_TIMEOUTS - NtDoc

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

// CTL_CODE(0x001b, 0x007, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_SET_TIMEOUTS 0x001B001C

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_SERIAL_SET_TIMEOUTS IOCTL

Description

The IOCTL_SERIAL_SET_TIMEOUTS request sets the time-out values that the serial controller driver uses for read and write requests.

To get the time-out values, a client can use an IOCTL_SERIAL_GET_TIMEOUTS request.

For more information about time-outs, see Setting Read and Write Time-Outs for a Serial Device.

Parameters

Major code

Input buffer

The AssociatedIrp.SystemBuffer member points to a client-allocated SERIAL_TIMEOUTS structure that is used to input read and write time-out values.

Input buffer length

The Parameters.DeviceIoControl.InputBufferLength member is set to the size, in bytes, of a SERIAL_TIMEOUTS 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. A status of STATUS_INVALID_PARAMETER indicates that the read time-out values exceed the maximum permitted values.

See also

IOCTL_SERIAL_GET_TIMEOUTS

SERIAL_TIMEOUTS