Well, what i want to do is a simple routine that polls a serial port every 10ms for [timeout] seconds.
This is under CE btw. but it shouldn't make a difference.
Looked around and found a function-call, called GetCommMask(), and thought to myself that i could just call that and check for the EV_RXCHAR bit of the mask.
Well, thing is, this function seems to just set mask to zero, or to whatever you have set using SetCommMask().
Looked around some more, and found a function called WaitForCommEvent, nice, well, this function does never timeout?!?!
So this was no good, read the stuff at MSDN, found out some way that you could make WaitCommEvent() return directly and just set the mask if it's ?OverLapped?, but that parameter doesn't seem to be valid for CE.
Now is there anyway way to accomplish this?