The InCount property returns information about number of bytes received by the virtual serial port but not yet read by a Read operation.

LONG InCount;

 

Note: If the virtual serial port was not created, the return value is zero.