Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CommWriteString
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
int CommWriteString(cid, pbuf, size)
int cid;
LPSTR pbuf;
int size;
 
The CommWriteString function transmits a string of characters using the
specified communications device. USER calls this function whenever an
application calls the WriteComm function (USER.205).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
cid        Identifies the communication device.
 
pbuf       Points to the buffer containing the bytes to write.
 
size       Specifies the number of bytes to write.
 
Return Value
 
The return value is the number of bytes actually written.
 
Comments
 
The export ordinal for this function is 19.
 
During initialization, USER checks for this function to determine whether
the driver supports the extended functions new to Windows 3.1. If the
function is not present, Windows assumes that the driver is a Windows 3.0
driver and makes sure that all interaction with the driver is compatible
with Windows 3.0.
 
                                      ♦