The Read method reads data from serial port input buffer.
|BYTE* Buffer ,||// data buffer|
|LONG* Count||// number of bytes to read|
Buffer [out] Pointer to the buffer that receives the data read from the serial port. Count [in] Pointer to number of bytes to be read from the port.
Return Values The Read method returns the number of bytes received from serial port.
Remarks If serial port does not exist, the return value is 0 (zero).
Write method, WriteStr method, ReadStr method, ReadVariant method, WriteVariant method