Write Method in Serial Port ActiveX Control

The Write method writes data to serial port.

LONG Write(
  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).

See also

Read method, ReadStr method, WriteStr method, ReadVariant method, WriteVariant method