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.
setcom
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD  setcom(lpdcb);
DCB FAR *lpdcb;
 
The setcom function sets a communication device to the state specified by
the DCB structure. USER calls this function whenever an application calls
the SetCommState function (USER.201).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lpdcb      Points to a DCB structure.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is a
negative (IE_*) value if an error occurs.
 
Comments
 
The export ordinal for this function is 2.
 
This function reinitializes all hardware and controls as defined by the
lpdcb parameter, but does not clear transmit or receive queues.
 
See Also
 
DCB