This function enables an application to receive characters from the serial port.
ULONG COM_Read( HANDLE pContext, PUCHAR pTargetBuffer,
ULONG BufferLength );
The number of bytes read indicates success. A value of -1 indicates failure.
This function sets the buffer and buffer length requested by the caller. It writes the number of bytes transacted and returns the status of the call.
This function is exported to users through the ReadFile function.
This function must obey time-out values set for the serial port.
This function is defined in the Mdd.c file.