I am using multiple identical devices and i would like to be able to read from them simultaneously. So the Product and Vendor ID are the same for all devices. I am wondering if i will be able to read from them in parallel.
In my opinion i would think that it should be possible because for specific device path, you create a unique winusb handle as well as a unique createfile handle.
However in practice, i realized that it didn't work. I didn't use overlapped structure as i though they were completely separate due to unique createfile handles. The data read from the devices isn't read in parallel, instead it just reads the first device, second, third etc...
I wrote the code in c++ and i would like some advice, thank you.
Would using overlapped structure fix the problem?
Or is winusb not meant to be used this way?
Here is the link to my code,
https://drive.google.com/drive/folders/1qvcGwNLxzJ0oRrFZbtyZ7g0zCU0XUG1n?usp=sharing
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…