The Write method writes data to serial port.
|BYTE* Buffer,||// data buffer|
|LONG Count||// number of bytes to write|
Buffer [in] Pointer to the buffer containing the data to be written to the port. Count [in] Specifies the number of bytes to write to the port.
Return Values The Write method returns the number of bytes sent to serial port.
Remarks If serial port does not exist the return value is 0 (zero).