Handling COM port under NT service
Posted on 1998-03-23
I've got a big problem. I wrote a service under WINNT which
asks the SERIAL Port, and put the characters into a file.
The problem is, I don't know when is data in the input buffer. My program contains a loop which never ends and the CP usage is nearly 100%. As far as I know, the sender sends a signal which indicates that the data is valid. How can I mask it?
Is there any solution?
Thanks in advance