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>opencomm</b> open communications device http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OpenComm             Open Communications Device

short OpenComm(lpComName, nInQueue, nOutQueue)
LPSTR lpComName; /* COM1, LPT1 etc. */
int nInQueue; /* Size of receive queue */
int nOutQueue; /* Size of transmit queue */

Returns:    ID (treat as a handle) or negative error value:

        |------------------------------------------|
        | IE_BADID     Invalid or unsupported id   |
        | IE_BAUDRATE  Unsupported BaudRate        |
        | IE_BYTESIZE  Illegal Byte Size           |
        | IE_DEFAULT   Error in default parameters |
        | IE_HARDWARE  Hardware Not Present        |
        | IE_MEMORY    Unable to allocate queues   |
        | IE_NOPEN     Device Not Open             |
        | IE_OPEN      Device Already Open         |
        +------------------------------------------+

See Also: EscapeCommFunction CloseComm WriteComm ReadComm

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