I used the below to create virtual port
And I could use application to polling data from this virtual port,
However, because Application also can be use interrupt mode to get virtual port data, but this simple code looks can not support this.
I have see below "PostEvent" and "wdfdevicepostevent", it looks can be solve problem. but I don't know how to use them, does anyone know how to add below to support application interrupt mode, eg, C# serial port component use event handle to get virtual port notify from Virtual serial driver, thanks!
][1]