// ntddser.h
// CTL_CODE(0x001b, 0x01a, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SERIAL_GET_MODEMSTATUS 0x001B0068
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_SERIAL_GET_MODEMSTATUS request updates the modem status, and returns the value of the modem status register before the update.
For more information, see the definitions of the modem status register bits (SERIAL_MSR_DCTS through SERIAL_MSR_DCD) in the Serial.h header file in the Serial driver sample on GitHub.
None.
None.
The AssociatedIrp.SystemBuffer member points to a client-allocated ULONG buffer that the serial controller driver uses to output the value of the modem status register.
The Parameters.DeviceIoControl.OutputBufferLength member is set to the size, in bytes, of a ULONG.
If the request is successful, the Information member is set to the size, in bytes, of a ULONG. 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.
IOCTL_SERIAL_SET_MODEM_CONTROL