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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,653 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,898 questions
{count} votes

Accepted answer
  1. Castorix31 85,881 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.