One of the strengths of an H/PC is its ability to connect to and communicate with other computers and peripherals. This section discusses how to write applications that take advantage of these capabilities.
Some manufacturers supply only one universal asynchronous receiver-transmitter (UART) to control the built-in serial port and the IR port. To access the IR port on an H/PC with a shared UART, you must redirect communications by using the EscapeComm function.
The SETIR flag indicates that the serial port is to be set to IR mode. EscapeCommFunction returns TRUE if an IR-capable port has been selected.
Windows CE supports Windows Sockets (Winsock) and the IR extensions to Winsock (IrSock) for developing communications applications.
Note The Windows CE CreateFile function requires a colon appended to the device name. In most cases, COM1: designates the built-in serial port on an H/PC.