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?

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,223 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,982 questions
{count} votes

Accepted answer
  1. Castorix31 77,421 Reputation points

    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