08-28-2007 06:04 AM
08-28-2007 06:40 AM
Hello Tupai,
you should use the InstallComCallback function for this.Using this function, you can define a callback function, that will be launched under the conditions that you specify, using the InstallComCallback parameters eventMask, notifyCount and eventCharacter. If you want the callback function to be launched as soon as there is a byte in the input buffer, you should use the LWRS_RXCHAR as eventMask parameter:
InstallComCallback (comport, LWRS_RXCHAR, 1, 0, ReadComPortCallback, NULL);