Writes data to a communication device.
BOOLEAN WriteComm( COMMHANDLE hComm, // handle to device LPCVOID lpBuffer, // data buffer DWORD nNumberOfBytesToWrite, // number of bytes to write LPDWORD lpNumberOfBytesWritten, // number of bytes written LPVOID lpOverlapped // unused buffer );
hComm 
lpBuffer 
nNumberOfBytesToWrite 
lpNumberOfBytesWritten 
lpOverlapped 
0 (zero) 
E_BUSY 
E_DISCONNECTED 
E_IO 
E_PARAM 
WriteComm terminates if an error occurs and fAbortOnError is set to TRUE in the DCB. WriteComm does not send data after fEof in the COMSTAT structure become TRUE.
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.1 | intime/rt/include/comm.h | comm.h | comm.lib |