I have written a program in C that opens Com Port 1 and sends characters to an LCD screen it can also read in packet responses from the LCD screen. But if I press a button on the LCD device I need my program to acknowledge the buuton press on myWinXp machine.
Do I need to rcreate a process/thread to wait/listen for a button press?
At the moment I am using ReadFile() to read in packet responses from the LCD screen and this works for most LCD commands(Reboot, ClearScreen etc.)
Does anyone have any suggestions?
Can anyone suggest any books or tutorials to get to learn about programming windows processes in C?