I am create driver (KMDF) read a serial port in a loop, while a device is connected to port COM.
So I googled and found about use WdfIoQueueCreate.
https://docs.microsoft.com/en-us/windows-hardware/drivers/wdf/framework-queue-objects
There are many examples but they are not so understandable. Do you know any simple example?