COM_Open (Windows CE 5.0)
This function initializes the serial port driver.
HANDLE COM_Open(HANDLE pContext,DWORD AccessCode,DWORD ShareMode);
[in] Pointer to a handle returned by the COM_Init function.
[in] Access level requested by the caller, such as shared read or read/write.
[in] Sharing mode passed to the CreateFile function.
Returns a handle representing the serial port.
This function opens a serial device. The HANDLE returned must be used in all subsequent calls to the serial driver. This function starts the thread that handles the serial events. It is exposed to applications through CreateFile. This function should be thread-safe. The serial port upper layer implementations supplied by Microsoft are all thread-safe.
OS Versions: Windows CE 1.0 and later.
Header: Developer defined.
Send Feedback on this topic to the authors