[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WriteComm( nIdCommDev, cData )-> <nBytes>
------------------------------------------------------------------------------


 PARAMETER:

  <nIdComDev>    Identifies the communication device to be flushed. This 
                 handle is returned by OpenComm().

  <cData>        Is the data to be send to the comm port.


 RETURNS:

  <nBytes> is the number of bytes written to the port. It is less than zero
  if an error occurs, making the absolute value of the return value the
  number of bytes written. 


 DESCRIPTION:

  The WriteComm function writes data to the specified communications device.
  To determine what caused an error, use the GetCommError function to
  retrieve the error value and status. 

  For serial ports, the WriteComm function deletes data in the transmission
  queue if there is not enough room in the queue for the additional bytes.
  Before calling WriteComm(), applications should check the available space
  in the transmission queue by using GetCommError(). Also, applications
  should use OpenComm() to set the size of the transmission queue to an
  amount no smaller than the size of the largest expected output string. 


 SOURCE:

  SOURCE\WINAPI\COMM.C



See Also: BuildCommDcb GetCommError OpenComm ReadComm
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson