Detecting Data on the Communications Port

ID: Q118625

3.10 3.50 3.51 4.00 | 4.00

WINDOWS NT          | WINDOWS
kbprg

The information in this article applies to:

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 reference words: 3.10 3.50 3.51 4.00 95 KBCategory: kbprg KBSubcategory: BseCommapi

Keywords          : kbAPI kbKernBase kbGrpKernBase 
Version           : 3.10 3.50 3.51 4.00 | 4.00
Platform          : NT WINDOWS

Last Reviewed: December 18, 1996