INFO: Detecting Data on the Communications Port
Article ID: 118625
Article Last Modified on 3/7/2005
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows 98 Standard Edition
- Microsoft Windows 2000 Standard Edition
- Microsoft Windows Millennium Edition
- Microsoft Windows XP Professional
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