IOCTL_SERIAL_GET_COMMSTATUS data format

Phan Anh Dung (GAM.VN.DAP) 21 Reputation points
2021-07-09T06:54:45.727+00:00

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?

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2021-07-10T18:20:00.933+00:00

    ClearCommError calls NtDeviceIoControlFile and, from IOCTL_SERIAL_GET_COMMSTATUS, it returns a SERIAL_STATUS structure

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.