Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>getcommerror</b> get comm status and clear error http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetCommError         Get Comm Status and Clear Error


short GetCommError(nCid, lpStat)
int nCid; /* from OpenComm */
COMSTAT FAR * lpStat; /* buffer to fill */


Returns:    Error code below:

        |-----------------------------------------|
        |CE_RXOVER     Receive Queue overflow     |
        |CE_OVERRUN    Receive Overrun Error      |
        |CE_RXPARITY   Receive Parity Error       |
        |CE_FRAME      Receive Framing error      |
        |CE_BREAK      Break Detected             |
        |CE_CTSTO      CTS Timeout                |
        |CE_DSRTO      DSR Timeout                |
        |CE_RLSDTO     RLSD Timeout               |
        |CE_TXFULL     TX Queue is full           |
        |CE_PTO        LPTx Timeout               |
        |CE_IOE        LPTx I/O Error             |
        |CE_DNS        LPTx Device not selected   |
        |CE_OOP        LPTx Out-Of-Paper          |
        |CE_MODE       Requested mode unsupported |
        +-----------------------------------------+

See Also: OpenComm

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson