Knowledge Base

INFO: Detecting Data on the Communications Port

Article ID: 118625

Article Last Modified on 3/7/2005


APPLIES TO


This article was previously published under Q118625

SUMMARY

To detect whether there is any data available on the communications (COM) port without calling ReadFile(), use the ClearCommError() API. The field COMSTAT.CbInQue contains the number of bytes not yet read by a call to ReadFile().

Additional query words: 3.10 3.50

Keywords: kbinfo kbapi kbcommport kbkernbase kbserial KB118625