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 );
hCommlpBuffernNumberOfBytesToWritelpNumberOfBytesWrittenlpOverlapped0 (zero)E_BUSYE_DISCONNECTEDE_IOE_PARAMWriteComm 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 |