none
Use ZwFileRead to receive COM port data from another driver on interrupt RRS feed

  • Question

  • Is it possible to create an interrupt whenever data is available on a COM port given that it would read using ZwFileRead?

    Is there a way to trigger an interrupt when data is available on a COM port?

    Basically I want to read data off a COM port on an interrupt. The COM port is created by another driver (FTDI specifically).

    Thanks.

    Thursday, September 7, 2017 3:14 PM

Answers

  • There is no way to "create an interrupt", interrupts are from hardware and are owned by a driver.  You can issue a ZwReadFile on a COM port for a single character, with an event handle which will be signaled when the operation completes.  


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Thursday, September 7, 2017 5:13 PM