Look carefully for tty sample in embedded VC++ x:\Windows CE Tools\wce300\MS Pocket PC\samples\win32\tty
This Windows CE application shows how to open, configure, and close a
serial communications port and perform read/write operations for a TTY
terminal emulation application.