Hello,
I am using USB HID with mostly excellent results, but I have a few questions.
1) Looking at MSN documentation for CreateFile() & ReadFile(), it seems like there is a buffer/cache automatically created for it, at least when used for disk i/o. Is such a buffer created also for USB comm?
2) I don't see how to detect if there is a buffer overrun for the above, is there such a way?
3) I am currently polling GetOverlappedResult() while doing other tasks in the loop and I have an error that makes me suspect I might be missing some USB data. If I take out the other tasks, the error is resolved.
So I am about to put the GetOverlappedResult() in a separate thread and just use it to only load a circular buffer (that is unloaded by the main thread) with the USB data, but even in this case I would like to be able to check some overrun function to make sure even this tight loop did not miss anything. Is this the right approach?
Thanks,
dpenney