First thing i want to say is that English is not my natural language, but i hope You will understand what i mean.
I'm writing a piece of software that will be used to control a hardware device connected through COM port.
Computer can send commands and device send information but it can't be predicted when the informaton will be sent.
From what i've read i should use winAPI CreateFile function, but how do i know when new information is sent ???
I have to say that i haven't used winAPI before so a code sample to connect to COM port would be welcome.