// ntddser.h
// CTL_CODE(0x001b, 0x01c, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_XOFF_COUNTER 0x001B0070
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_SERIAL_XOFF_COUNTER request sets an XOFF counter. An XOFF counter request supports clients that use software to emulate hardware handshake flow control.
An XOFF counter request is synchronized with write requests. The driver sends a specified XOFF character, and completes the request after one of the following events occurs:
For more information about the operation of an XOFF counter, see the description of the SERIAL_XOFF_COUNTER structure in the Ntddser.h header file in the Microsoft Windows Driver Kit (WDK).
The AssociatedIrp.SystemBuffer points to a client-allocated SERIAL_XOFF_COUNTER structure that is used to input XOFF counter information.
The Parameters.DeviceIoControl.InputBufferLength is set to the size, in bytes, of a SERIAL_XOFF_COUNTER structure.
None.
None.
The Information member is set to zero.
The Status member is set to one of the Generic Status Values for Serial Device Control Requests or to one of the following request-specific values:
STATUS_INVALID_PARAMETER
The count value specified for the XOFF counter request is less than zero.
STATUS_SERIAL_COUNTER_TIMEOUT
The request timed out.
STATUS_SERIAL_MORE_WRITES
A write request was received.