Virtual Serial Port ActiveX Control - Write Method

The Write method writes data to virtual serial port.  

LONG Write(
  BYTE* Buffer, // data buffer
  LONG Count // number of bytes to write
);


Parameters
  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 function returns the number of bytes sent to virtual serial port.
Remarks   If virtual serial port was not created, the return value is 0 (zero).


See also

Read method , ReadStr method WriteStr method, WriteArray method.