ClearCommError calls NtDeviceIoControlFile and, from IOCTL_SERIAL_GET_COMMSTATUS, it returns a SERIAL_STATUS structure
IOCTL_SERIAL_GET_COMMSTATUS data format
Phan Anh Dung (GAM.VN.DAP)
21
Reputation points
In the function ClearCommError from Winbase API, an IOCTL call with code IOCTL_SERIAL_GET_COMMSTATUS is sent to the device (the COM port) driver and a pointer Request is passed as a parameter. What exactly is expected to be returned to the function by this pointer from the driver side? What is the format of the thing the pointer points to after the call? If it is a struct then what struct?