_VCOMM_WriteComm
include vcomm.inc
VxDCall _VCOMM_WriteComm, <hPort, <OFFSET32 achBuffer> \
cchRequested, <OFFSET32 cchWritten>>
or eax, eax
jz error_handler
Writes characters to the transmit queue for the specified communications resource, and returns immediately. Uses the C calling convention. This is an asynchronous service.
- Returns TRUE if successful, FALSE otherwise. For extended error information, use _VCOMM_GetLastError.
- hPort
- Handle of a communications resource.
- achBuffer
- Address of an array of characters to write.
- cchRequested
- Number of characters to write.
- cchWritten
- Address of a 32-bit variable that receives the number of characters actually written. This can be less than the cchRequested parameter if the transmit queue does not contain enough free bytes, or a communications error has occurred.
See Also
_VCOMM_ClearCommError, _VCOMM_GetLastError