DWORD CComm::Len() { COMSTAT ComStat; DWORD dwErrorFlags; ClearCommError(m_hFile, &dwErrorFlags, &ComStat); return ComStat.cbInQue; }